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: 0a62d183b8b2e4599579ad0e42880406
10 URL: http://bcache.evilpiepirate.org/
11 BuildRequires: libblkid-devel
12 BuildRequires: libuuid-devel
13 BuildRequires: openssl-devel
14 BuildRequires: pkgconfig
15 Requires: uname(release) >= 3.10
16 Requires: util-linux >= 2.24
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define dracutlibdir %{_prefix}/lib/dracut
22 These are the userspace tools required for bcache.
24 Bcache is a patch for the Linux kernel to use SSDs to cache other
27 %description -l pl.UTF-8
28 Ten pakiet zawiera narzędzia przestrzeni użytkownika wymagane przez
31 Bcache to łata na jądro Linuksa, pozwalająca wykorzystywać dyski SSD
32 jako pamięć podręczną dla innych urządzeń blokowych.
34 %package -n dracut-bcache
35 Summary: bcache support for Dracut
36 Summary(pl.UTF-8): Obsługa bcache dla Dracuta
37 Group: Applications/System
38 Requires: %{name} = %{version}-%{release}
39 Requires: dracut >= 0.31
41 %description -n dracut-bcache
42 bcache support for Dracut.
44 %description -n dracut-bcache -l pl.UTF-8
45 Obsługa bcache dla Dracuta.
52 CFLAGS="%{rpmcflags}" \
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/udev/rules.d,%{_mandir}/man8}
60 DRACUTLIBDIR=%{dracutlibdir} \
61 DESTDIR=$RPM_BUILD_ROOT
63 # not supported in pld
64 # initramfs-tools subpackage?
65 %{__rm} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/bcache
67 # not supported in pld
68 %{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/initcpio/install/bcache
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_sbindir}/bcache-super-show
77 %attr(755,root,root) %{_sbindir}/make-bcache
78 %attr(755,root,root) /lib/udev/bcache-register
79 %attr(755,root,root) /lib/udev/probe-bcache
80 /lib/udev/rules.d/69-bcache.rules
81 %{_mandir}/man8/bcache-super-show.8*
82 %{_mandir}/man8/make-bcache.8*
83 %{_mandir}/man8/probe-bcache.8*
85 %files -n dracut-bcache
86 %defattr(644,root,root,755)
87 %dir %{dracutlibdir}/modules.d/90bcache
88 %attr(755,root,root) %{dracutlibdir}/modules.d/90bcache/module-setup.sh