1 Summary: Userspace tools for bcache
2 Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do bcache
7 Group: Applications/System
8 Source0: https://github.com/g2p/bcache-tools/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: d1632a7c37214e0aa38f3cf95624fa46
10 Patch0: %{name}-inline.patch
11 URL: http://bcache.evilpiepirate.org/
12 BuildRequires: libblkid-devel
13 BuildRequires: libuuid-devel
14 BuildRequires: openssl-devel
15 BuildRequires: pkgconfig
16 Requires: uname(release) >= 3.10
17 Requires: util-linux >= 2.24
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define dracutlibdir %{_prefix}/lib/dracut
23 These are the userspace tools required for bcache.
25 Bcache is a patch for the Linux kernel to use SSDs to cache other
28 %description -l pl.UTF-8
29 Ten pakiet zawiera narzędzia przestrzeni użytkownika wymagane przez
32 Bcache to łata na jądro Linuksa, pozwalająca wykorzystywać dyski SSD
33 jako pamięć podręczną dla innych urządzeń blokowych.
35 %package -n dracut-bcache
36 Summary: bcache support for Dracut
37 Summary(pl.UTF-8): Obsługa bcache dla Dracuta
38 Group: Applications/System
39 Requires: %{name} = %{version}-%{release}
40 Requires: dracut >= 0.31
42 %description -n dracut-bcache
43 bcache support for Dracut.
45 %description -n dracut-bcache -l pl.UTF-8
46 Obsługa bcache dla Dracuta.
54 CFLAGS="%{rpmcflags}" \
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/udev/rules.d,%{_mandir}/man8}
62 DRACUTLIBDIR=%{dracutlibdir} \
63 DESTDIR=$RPM_BUILD_ROOT
65 # not supported in pld
66 # initramfs-tools subpackage?
67 %{__rm} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/bcache
69 # not supported in pld
70 %{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/initcpio/install/bcache
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_sbindir}/bcache-super-show
79 %attr(755,root,root) %{_sbindir}/make-bcache
80 %attr(755,root,root) /lib/udev/bcache-register
81 %attr(755,root,root) /lib/udev/probe-bcache
82 /lib/udev/rules.d/69-bcache.rules
83 %{_mandir}/man8/bcache-super-show.8*
84 %{_mandir}/man8/make-bcache.8*
85 %{_mandir}/man8/probe-bcache.8*
87 %files -n dracut-bcache
88 %defattr(644,root,root,755)
89 %dir %{dracutlibdir}/modules.d/90bcache
90 %attr(755,root,root) %{dracutlibdir}/modules.d/90bcache/module-setup.sh