]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without python # Python bindings for libbtrfsutil | |
4 | %bcond_without tests # libbtrfsutil tests (requires python) | |
5 | ||
6 | %if %{without python} | |
7 | %undefine with_tests | |
8 | %endif | |
9 | Summary: Utilities belonging to the btrfs filesystem | |
10 | Summary(pl.UTF-8): Narzędzia należące do systemu plików btrfs | |
11 | Name: btrfs-progs | |
12 | Version: 5.1 | |
13 | Release: 1 | |
14 | License: GPL v2 | |
15 | Group: Applications/System | |
16 | Source0: https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/%{name}-v%{version}.tar.xz | |
17 | # Source0-md5: ccdba8ad14bbf97df666460576507bd9 | |
18 | Patch0: %{name}-sh.patch | |
19 | URL: http://btrfs.wiki.kernel.org/ | |
20 | BuildRequires: acl-devel | |
21 | BuildRequires: asciidoc | |
22 | BuildRequires: autoconf >= 2.60 | |
23 | BuildRequires: automake | |
24 | BuildRequires: e2fsprogs-devel >= 1.42.0 | |
25 | BuildRequires: libblkid-devel | |
26 | BuildRequires: libcom_err-devel | |
27 | BuildRequires: libuuid-devel | |
28 | BuildRequires: lzo-devel >= 2 | |
29 | BuildRequires: pkgconfig >= 0.9.0 | |
30 | %{?with_python:BuildRequires: python3-devel >= 1:3.4} | |
31 | BuildRequires: reiserfsprogs-devel >= 3.6.27 | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: udev-devel >= 1:190 | |
34 | BuildRequires: xmlto | |
35 | BuildRequires: xz | |
36 | BuildRequires: zlib-devel | |
37 | BuildRequires: zstd-devel >= 1.0.0 | |
38 | Requires: e2fsprogs-libs >= 1.42.0 | |
39 | Requires: reiserfsprogs-libs >= 1:3.6.27 | |
40 | Requires: %{name}-libs = %{version}-%{release} | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %define _sbindir /sbin | |
44 | ||
45 | %description | |
46 | Btrfs is a new copy on write filesystem for Linux aimed at | |
47 | implementing advanced features while focusing on fault tolerance, | |
48 | repair and easy administration. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Btrfs to nowy system plików dla Linuksa oparty na zasadzie kopiowania | |
52 | przy zapisie (copy-on-write), którego celem jest zaimplementowanie | |
53 | zaawansowanych możliwości ze szczególnym naciskiem na odporność na | |
54 | awarie, naprawę i łatwe administrowanie. | |
55 | ||
56 | %package libs | |
57 | Summary: Shared btrfs library | |
58 | Summary(pl.UTF-8): Biblioteka współdzielona btrfs | |
59 | Group: Libraries | |
60 | ||
61 | %description libs | |
62 | Shared btrfs library. | |
63 | ||
64 | %description libs -l pl.UTF-8 | |
65 | Biblioteka współdzielona btrfs. | |
66 | ||
67 | %package devel | |
68 | Summary: Header files for btrfs filesystem-specific library | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla systemu plików btrfs | |
70 | Group: Development/Libraries | |
71 | Requires: %{name}-libs = %{version}-%{release} | |
72 | ||
73 | %description devel | |
74 | This package contains the header files needed to develop btrfs | |
75 | filesystem-specific programs. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Ten pakiet zawiera pliki nagłówkowe potrzebne przy tworzeniu programów | |
79 | przeznaczonych dla systemu plików btrfs. | |
80 | ||
81 | %package static | |
82 | Summary: Static btrfs filesystem library | |
83 | Summary(pl.UTF-8): Statyczna biblioteka dla systemu plików btrfs | |
84 | Group: Development/Libraries | |
85 | Requires: %{name}-devel = %{version}-%{release} | |
86 | ||
87 | %description static | |
88 | Static btrfs filesystem library. | |
89 | ||
90 | %description static -l pl.UTF-8 | |
91 | Statyczna biblioteka dla systemu plików btrfs. | |
92 | ||
93 | %package -n libbtrfsutil | |
94 | Summary: Library for managing Btrfs filesystems | |
95 | Summary(pl.UTF-8): Biblioteka do zarządzania systemami plików Btrfs | |
96 | License: LGPL v3 | |
97 | Group: Libraries | |
98 | ||
99 | %description -n libbtrfsutil | |
100 | libbtrfsutil is a library for managing Btrfs filesystems. It is | |
101 | licensed under the LGPL. libbtrfsutil provides interfaces for a subset | |
102 | of the operations offered by the btrfs command line utility. It also | |
103 | has official Python bindings (Python 3 only). | |
104 | ||
105 | %description -n libbtrfsutil -l pl.UTF-8 | |
106 | libbtrfsutil to biblioteka do zarządzania systemami plików Btrfs. Jest | |
107 | dostępna na licencji LGPL. Udostępnia interfejsy do podzbioru operacji | |
108 | oferowanych przez narzędzie linii poleceń btrfs. Ma także oficjalne | |
109 | wiązania do Pythona (tylko Pythona 3). | |
110 | ||
111 | %package -n libbtrfsutil-devel | |
112 | Summary: Header file for libbtrfsutil library | |
113 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libbtrfsutil | |
114 | License: LGPL v3 | |
115 | Group: Development/Libraries | |
116 | Requires: libbtrfsutil = %{version}-%{release} | |
117 | ||
118 | %description -n libbtrfsutil-devel | |
119 | Header file for libbtrfsutil library. | |
120 | ||
121 | %description -n libbtrfsutil-devel -l pl.UTF-8 | |
122 | Plik nagłówkowy biblioteki libbtrfsutil. | |
123 | ||
124 | %package -n libbtrfsutil-static | |
125 | Summary: Static libbtrfsutil library | |
126 | Summary(pl.UTF-8): Statyczna biblioteka libbtrfsutil | |
127 | License: LGPL v3 | |
128 | Group: Development/Libraries | |
129 | Requires: libbtrfsutil-devel = %{version}-%{release} | |
130 | ||
131 | %description -n libbtrfsutil-static | |
132 | Static libbtrfsutil library. | |
133 | ||
134 | %description -n libbtrfsutil-static -l pl.UTF-8 | |
135 | Statyczna biblioteka libbtrfsutil. | |
136 | ||
137 | %package -n python3-btrfsutil | |
138 | Summary: Python library for managing Btrfs filesystems | |
139 | Summary(pl.UTF-8): Biblioteka Pythona do zarządzania systemami plików Btrfs | |
140 | Group: Libraries/Python | |
141 | License: LGPL v3 | |
142 | Requires: libbtrfsutil = %{version}-%{release} | |
143 | ||
144 | %description -n python3-btrfsutil | |
145 | Python library for managing Btrfs filesystems. | |
146 | ||
147 | %description -n python3-btrfsutil -l pl.UTF-8 | |
148 | Biblioteka Pythona do zarządzania systemami plików Btrfs. | |
149 | ||
150 | %prep | |
151 | %setup -q -n %{name}-v%{version} | |
152 | %patch0 -p1 | |
153 | ||
154 | %build | |
155 | %{__aclocal} -I m4 | |
156 | %{__autoconf} | |
157 | %{__autoheader} | |
158 | %configure \ | |
159 | %{!?with_python:--disable-python} | |
160 | %{__make} \ | |
161 | V=1 | |
162 | ||
163 | %if %{with tests} | |
164 | %{__make} test-libbtrfsutil | |
165 | %endif | |
166 | ||
167 | %install | |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
170 | %{__make} install \ | |
171 | prefix=%{_prefix} \ | |
172 | bindir=%{_sbindir} \ | |
173 | mandir=%{_mandir} \ | |
174 | libdir=%{_libdir} \ | |
175 | DESTDIR=$RPM_BUILD_ROOT | |
176 | ||
177 | %if %{with python} | |
178 | %{__make} install_python \ | |
179 | prefix=%{_prefix} \ | |
180 | DESTDIR=$RPM_BUILD_ROOT | |
181 | %endif | |
182 | ||
183 | %clean | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %post libs -p /sbin/ldconfig | |
187 | %postun libs -p /sbin/ldconfig | |
188 | ||
189 | %post -n libbtrfsutil -p /sbin/ldconfig | |
190 | %postun -n libbtrfsutil -p /sbin/ldconfig | |
191 | ||
192 | %files | |
193 | %defattr(644,root,root,755) | |
194 | %doc CHANGES README.md | |
195 | %attr(755,root,root) %{_sbindir}/btrfs | |
196 | %attr(755,root,root) %{_sbindir}/btrfs-convert | |
197 | %attr(755,root,root) %{_sbindir}/btrfs-find-root | |
198 | %attr(755,root,root) %{_sbindir}/btrfs-image | |
199 | %attr(755,root,root) %{_sbindir}/btrfs-map-logical | |
200 | %attr(755,root,root) %{_sbindir}/btrfs-select-super | |
201 | %attr(755,root,root) %{_sbindir}/btrfsck | |
202 | %attr(755,root,root) %{_sbindir}/btrfstune | |
203 | %attr(755,root,root) %{_sbindir}/fsck.btrfs | |
204 | %attr(755,root,root) %{_sbindir}/mkfs.btrfs | |
205 | /lib/udev/rules.d/64-btrfs-dm.rules | |
206 | %{_mandir}/man5/btrfs.5* | |
207 | %{_mandir}/man8/btrfs.8* | |
208 | %{_mandir}/man8/btrfs-*.8* | |
209 | %{_mandir}/man8/btrfsck.8* | |
210 | %{_mandir}/man8/btrfstune.8* | |
211 | %{_mandir}/man8/fsck.btrfs.8* | |
212 | %{_mandir}/man8/mkfs.btrfs.8* | |
213 | ||
214 | %files libs | |
215 | %defattr(644,root,root,755) | |
216 | %attr(755,root,root) %{_libdir}/libbtrfs.so.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libbtrfs.so.0 | |
218 | ||
219 | %files devel | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_libdir}/libbtrfs.so | |
222 | %{_includedir}/btrfs | |
223 | ||
224 | %files static | |
225 | %defattr(644,root,root,755) | |
226 | %{_libdir}/libbtrfs.a | |
227 | ||
228 | %files -n libbtrfsutil | |
229 | %defattr(644,root,root,755) | |
230 | %doc libbtrfsutil/README.md | |
231 | %attr(755,root,root) %{_libdir}/libbtrfsutil.so.*.*.* | |
232 | %attr(755,root,root) %ghost %{_libdir}/libbtrfsutil.so.1 | |
233 | ||
234 | %files -n libbtrfsutil-devel | |
235 | %defattr(644,root,root,755) | |
236 | %attr(755,root,root) %{_libdir}/libbtrfsutil.so | |
237 | %{_includedir}/btrfsutil.h | |
238 | ||
239 | %files -n libbtrfsutil-static | |
240 | %defattr(644,root,root,755) | |
241 | %{_libdir}/libbtrfsutil.a | |
242 | ||
243 | %if %{with python} | |
244 | %files -n python3-btrfsutil | |
245 | %attr(755,root,root) %{py3_sitedir}/btrfsutil.cpython-*.so | |
246 | %{py3_sitedir}/btrfsutil-1.1.1-py*.egg-info | |
247 | %endif |