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