%global git 0b57e1 %global date 20130815 Summary: User space tools required for bcache Name: bcache-tools Version: 0.0 Release: 0.1.%{date}git%{git}%{?dist} License: GPLv2 URL: http://bcache.evilpiepirate.org/ # git clone http://evilpiepirate.org/git/bcache-tools.git # git archive --format=tar --prefix=bcache-tools-%{version}/ %{git} | \ # xz > bcache-tools-%{version}-%{date}git%{git}.tar.xz Source0: bcache-tools-%{version}-%{date}git%{git}.tar.xz Patch0: bcache-tools-13df67-install.patch BuildRequires: libuuid-devel %description bcache is a feature added to the Linux kernel to use SSDs to cache other block devices. This package include user space tools required for bcache. %prep %setup -q %patch0 -p1 %build make CFLAGS="%optflags" PREFIX="%{_prefix}" %{?_smp_mflags} %install %make_install %files %doc README COPYING %{_sbindir}/make-bcache %{_sbindir}/probe-bcache %{_sbindir}/bcache-super-show %{_mandir}/man8/make-bcache.8* %{_mandir}/man8/probe-bcache.8* %{_mandir}/man8/bcache-super-show.8* /lib/udev/bcache-register /lib/udev/rules.d/61-bcache.rules %changelog * Sun May 12 2013 Terje Røsten - 0.0-0.1.20130512git13df67 - initial package