]> git.pld-linux.org Git - SPECS.git/blob - bcache-tools.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.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 Source0:        https://github.com/g2p/bcache-tools/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  d1632a7c37214e0aa38f3cf95624fa46
10 Patch0:         %{name}-inline.patch
11 URL:            http://bcache.evilpiepirate.org/
12 BuildRequires:  libblkid-devel
13 BuildRequires:  libuuid-devel
14 BuildRequires:  openssl-devel
15 BuildRequires:  pkgconfig
16 Requires:       uname(release) >= 3.10
17 Requires:       util-linux >= 2.24
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         dracutlibdir    %{_prefix}/lib/dracut
21
22 %description
23 These are the userspace tools required for bcache.
24
25 Bcache is a patch for the Linux kernel to use SSDs to cache other
26 block devices.
27
28 %description -l pl.UTF-8
29 Ten pakiet zawiera narzędzia przestrzeni użytkownika wymagane przez
30 mechanizm bcache.
31
32 Bcache to łata na jądro Linuksa, pozwalająca wykorzystywać dyski SSD
33 jako pamięć podręczną dla innych urządzeń blokowych.
34
35 %package -n dracut-bcache
36 Summary:        bcache support for Dracut
37 Summary(pl.UTF-8):      Obsługa bcache dla Dracuta
38 Group:          Applications/System
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       dracut >= 0.31
41
42 %description -n dracut-bcache
43 bcache support for Dracut.
44
45 %description -n dracut-bcache -l pl.UTF-8
46 Obsługa bcache dla Dracuta.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51
52 %build
53 CC="%{__cc}" \
54 CFLAGS="%{rpmcflags}" \
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/udev/rules.d,%{_mandir}/man8}
60
61 %{__make} install \
62         DRACUTLIBDIR=%{dracutlibdir} \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 # not supported in pld
66 # initramfs-tools subpackage?
67 %{__rm} $RPM_BUILD_ROOT%{_datadir}/initramfs-tools/hooks/bcache
68
69 # not supported in pld
70 %{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/initcpio/install/bcache
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc README
78 %attr(755,root,root) %{_sbindir}/bcache-super-show
79 %attr(755,root,root) %{_sbindir}/make-bcache
80 %attr(755,root,root) /lib/udev/bcache-register
81 %attr(755,root,root) /lib/udev/probe-bcache
82 /lib/udev/rules.d/69-bcache.rules
83 %{_mandir}/man8/bcache-super-show.8*
84 %{_mandir}/man8/make-bcache.8*
85 %{_mandir}/man8/probe-bcache.8*
86
87 %files -n dracut-bcache
88 %defattr(644,root,root,755)
89 %dir %{dracutlibdir}/modules.d/90bcache
90 %attr(755,root,root) %{dracutlibdir}/modules.d/90bcache/module-setup.sh
This page took 0.205861 seconds and 3 git commands to generate.