]> git.pld-linux.org Git - packages/bcache-tools.git/blob - bcache-tools.spec
8156eca0e04c7d5bd2dd801c212028c2a9b764dc
[packages/bcache-tools.git] / bcache-tools.spec
1 Summary:        Userspace tools for bcache
2 Summary(pl.UTF-8):      Narzędzia przestrzeni użytkownika do bcache
3 Name:           bcache-tools
4 Version:        1.0.5
5 Release:        1
6 License:        GPL v2
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)
18
19 %description
20 These are the userspace tools required for bcache.
21
22 Bcache is a patch for the Linux kernel to use SSDs to cache other
23 block devices.
24
25 %description -l pl.UTF-8
26 Ten pakiet zawiera narzędzia przestrzeni użytkownika wymagane przez
27 mechanizm bcache.
28
29 Bcache to łata na jądro Linuksa, pozwalająca wykorzystywać dyski SSD
30 jako pamięć podręczną dla innych urządzeń blokowych.
31
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}
37 Requires:       dracut
38
39 %description -n dracut-bcache
40 bcache support for Dracut.
41
42 %description -n dracut-bcache -l pl.UTF-8
43 Obsługa bcache dla Dracuta.
44
45 %prep
46 %setup -q
47
48 %build
49 CC="%{__cc}" \
50 CFLAGS="%{rpmcflags}" \
51 %{__make}
52
53 %install
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}
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 # not supported in pld
61 # initramfs-tools subpackage?
62 %{__rm} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/bcache
63
64 # not supported in pld
65 %{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/initcpio/install/bcache
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc README
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*
81
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
This page took 0.04121 seconds and 2 git commands to generate.