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