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: 5f013fa499d1923a5bf282b59fbcf7ba
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)
20 These are the userspace tools required for bcache.
22 Bcache is a patch for the Linux kernel to use SSDs to cache other
25 %description -l pl.UTF-8
26 Ten pakiet zawiera narzędzia przestrzeni użytkownika wymagane przez
29 Bcache to łata na jądro Linuksa, pozwalająca wykorzystywać dyski SSD
30 jako pamięć podręczną dla innych urządzeń blokowych.
32 %package -n dracut-bcache
33 Summary: bcache support for Dracut
34 Summary(pl.UTF-8): Obsługa bcache dla Dracuta
35 Group: Applications/System
36 Requires: %{name} = %{version}-%{release}
39 %description -n dracut-bcache
40 bcache support for Dracut.
42 %description -n dracut-bcache -l pl.UTF-8
43 Obsługa bcache dla Dracuta.
50 CFLAGS="%{rpmcflags}" \
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/udev/rules.d,%{_datadir}/initramfs-tools/hooks,/lib/dracut/modules.d,%{_mandir}/man8}
58 DESTDIR=$RPM_BUILD_ROOT
60 # not supported in pld
61 # initramfs-tools subpackage?
62 %{__rm} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/bcache
64 # not supported in pld
65 %{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/initcpio/install/bcache
68 rm -rf $RPM_BUILD_ROOT
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_sbindir}/bcache-super-show
74 %attr(755,root,root) %{_sbindir}/make-bcache
75 %attr(755,root,root) /lib/udev/bcache-register
76 %attr(755,root,root) /lib/udev/probe-bcache
77 /lib/udev/rules.d/69-bcache.rules
78 %{_mandir}/man8/bcache-super-show.8*
79 %{_mandir}/man8/make-bcache.8*
80 %{_mandir}/man8/probe-bcache.8*
82 %files -n dracut-bcache
83 %defattr(644,root,root,755)
84 %dir /lib/dracut/modules.d/90bcache
85 %attr(755,root,root) /lib/dracut/modules.d/90bcache/module-setup.sh