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