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