]> git.pld-linux.org Git - packages/bcache-tools.git/blame - bcache-tools.spec
- updated URL, added download URL
[packages/bcache-tools.git] / bcache-tools.spec
CommitLineData
aa797fcf
JB
1Summary: Userspace tools for bcache
2Summary(pl.UTF-8): Narzędzia przestrzeni użytkownika do bcache
3Name: bcache-tools
7426bb2d 4Version: 1.0.8
7f54c53f 5Release: 1
aa797fcf
JB
6License: GPL v2
7Group: Applications/System
28758132 8#Source0Download: https://github.com/g2p/bcache-tools/tags
aa797fcf 9Source0: https://github.com/g2p/bcache-tools/archive/v%{version}/%{name}-%{version}.tar.gz
7426bb2d
AG
10# Source0-md5: d1632a7c37214e0aa38f3cf95624fa46
11Patch0: %{name}-inline.patch
28758132 12URL: https://bcache.evilpiepirate.org/
aa797fcf
JB
13BuildRequires: libblkid-devel
14BuildRequires: libuuid-devel
15BuildRequires: openssl-devel
16BuildRequires: pkgconfig
12364da6 17Requires: uname(release) >= 3.10
0da02813 18Requires: util-linux >= 2.24
aa797fcf
JB
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
8f9f23ed
ER
21%define dracutlibdir %{_prefix}/lib/dracut
22
aa797fcf
JB
23%description
24These are the userspace tools required for bcache.
25
26Bcache is a patch for the Linux kernel to use SSDs to cache other
27block devices.
28
29%description -l pl.UTF-8
30Ten pakiet zawiera narzędzia przestrzeni użytkownika wymagane przez
31mechanizm bcache.
32
33Bcache to łata na jądro Linuksa, pozwalająca wykorzystywać dyski SSD
34jako pamięć podręczną dla innych urządzeń blokowych.
35
f20dd951
ER
36%package -n dracut-bcache
37Summary: bcache support for Dracut
38Summary(pl.UTF-8): Obsługa bcache dla Dracuta
39Group: Applications/System
40Requires: %{name} = %{version}-%{release}
64a037cb 41Requires: dracut >= 0.31
f20dd951
ER
42
43%description -n dracut-bcache
44bcache support for Dracut.
45
46%description -n dracut-bcache -l pl.UTF-8
47Obsługa bcache dla Dracuta.
48
aa797fcf
JB
49%prep
50%setup -q
7426bb2d 51%patch0 -p1
aa797fcf
JB
52
53%build
54CC="%{__cc}" \
55CFLAGS="%{rpmcflags}" \
56%{__make}
57
58%install
59rm -rf $RPM_BUILD_ROOT
8f9f23ed 60install -d $RPM_BUILD_ROOT{%{_sbindir},/lib/udev/rules.d,%{_mandir}/man8}
aa797fcf
JB
61
62%{__make} install \
8f9f23ed 63 DRACUTLIBDIR=%{dracutlibdir} \
aa797fcf
JB
64 DESTDIR=$RPM_BUILD_ROOT
65
f20dd951
ER
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
aa797fcf
JB
73%clean
74rm -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*
f20dd951
ER
87
88%files -n dracut-bcache
89%defattr(644,root,root,755)
8f9f23ed
ER
90%dir %{dracutlibdir}/modules.d/90bcache
91%attr(755,root,root) %{dracutlibdir}/modules.d/90bcache/module-setup.sh
This page took 0.111863 seconds and 4 git commands to generate.