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