]>
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 |
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 JB |
30 | %{?with_python:BuildRequires: python3-devel >= 1:3.4} |
31 | BuildRequires: reiserfsprogs-devel >= 3.6.27 | |
7172bf1c | 32 | BuildRequires: tar >= 1:1.22 |
6d4283bb | 33 | BuildRequires: udev-devel >= 1:190 |
82ef4e43 | 34 | BuildRequires: xmlto |
7172bf1c | 35 | BuildRequires: xz |
1d46f4d5 | 36 | BuildRequires: zlib-devel |
6d4283bb JB |
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} | |
e3346250 AM |
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 | ||
bc661915 JB |
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 | ||
6d4283bb JB |
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 | ||
7172bf1c | 67 | %package devel |
bc661915 JB |
68 | Summary: Header files for btrfs filesystem-specific library |
69 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dla systemu plików btrfs | |
7172bf1c | 70 | Group: Development/Libraries |
6d4283bb | 71 | Requires: %{name}-libs = %{version}-%{release} |
7172bf1c ER |
72 | |
73 | %description devel | |
bc661915 | 74 | This package contains the header files needed to develop btrfs |
7172bf1c ER |
75 | filesystem-specific programs. |
76 | ||
bc661915 JB |
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 | ||
6d4283bb JB |
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 | ||
7172bf1c ER |
150 | %prep |
151 | %setup -q -n %{name}-v%{version} | |
ada6dcaf | 152 | %patch0 -p1 |
e3346250 AM |
153 | |
154 | %build | |
6d4283bb | 155 | %{__aclocal} -I m4 |
82ef4e43 | 156 | %{__autoconf} |
31d6d0a4 | 157 | %{__autoheader} |
6d4283bb JB |
158 | %configure \ |
159 | %{!?with_python:--disable-python} | |
e3346250 | 160 | %{__make} \ |
82ef4e43 | 161 | V=1 |
e3346250 | 162 | |
6d4283bb JB |
163 | %if %{with tests} |
164 | %{__make} test-libbtrfsutil | |
165 | %endif | |
166 | ||
e3346250 AM |
167 | %install |
168 | rm -rf $RPM_BUILD_ROOT | |
169 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
e3346250 | 170 | %{__make} install \ |
1295fb7d | 171 | prefix=%{_prefix} \ |
e3346250 | 172 | bindir=%{_sbindir} \ |
1295fb7d | 173 | mandir=%{_mandir} \ |
7172bf1c | 174 | libdir=%{_libdir} \ |
e3346250 AM |
175 | DESTDIR=$RPM_BUILD_ROOT |
176 | ||
6d4283bb JB |
177 | %if %{with python} |
178 | %{__make} install_python \ | |
179 | prefix=%{_prefix} \ | |
180 | DESTDIR=$RPM_BUILD_ROOT | |
181 | %endif | |
182 | ||
e3346250 AM |
183 | %clean |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
6d4283bb JB |
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 | ||
e3346250 AM |
192 | %files |
193 | %defattr(644,root,root,755) | |
35aaeb32 TP |
194 | %doc CHANGES README.md |
195 | %attr(755,root,root) %{_sbindir}/btrfs | |
196 | %attr(755,root,root) %{_sbindir}/btrfs-convert | |
35aaeb32 | 197 | %attr(755,root,root) %{_sbindir}/btrfs-find-root |
7172bf1c | 198 | %attr(755,root,root) %{_sbindir}/btrfs-image |
7172bf1c | 199 | %attr(755,root,root) %{_sbindir}/btrfs-map-logical |
82ef4e43 | 200 | %attr(755,root,root) %{_sbindir}/btrfs-select-super |
35aaeb32 TP |
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 | |
ca4b502a | 205 | /lib/udev/rules.d/64-btrfs-dm.rules |
c3aff9a4 | 206 | %{_mandir}/man5/btrfs.5* |
7172bf1c | 207 | %{_mandir}/man8/btrfs.8* |
7b8b71e8 JB |
208 | %{_mandir}/man8/btrfs-*.8* |
209 | %{_mandir}/man8/btrfsck.8* | |
7172bf1c | 210 | %{_mandir}/man8/btrfstune.8* |
ada6dcaf | 211 | %{_mandir}/man8/fsck.btrfs.8* |
7b8b71e8 | 212 | %{_mandir}/man8/mkfs.btrfs.8* |
7172bf1c | 213 | |
6d4283bb JB |
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 | ||
7172bf1c ER |
219 | %files devel |
220 | %defattr(644,root,root,755) | |
bc661915 | 221 | %attr(755,root,root) %{_libdir}/libbtrfs.so |
7172bf1c | 222 | %{_includedir}/btrfs |
bc661915 JB |
223 | |
224 | %files static | |
225 | %defattr(644,root,root,755) | |
226 | %{_libdir}/libbtrfs.a | |
6d4283bb JB |
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 | |
6fb75e47 | 246 | %{py3_sitedir}/btrfsutil-1.1.1-py*.egg-info |
6d4283bb | 247 | %endif |