]>
Commit | Line | Data |
---|---|---|
771cd1b7 | 1 | # |
6602659b | 2 | # Conditional build: |
771cd1b7 | 3 | %bcond_without apidocs # gtk-doc based API documentation |
1b848f1f | 4 | %bcond_without python3 # CPython 3.x support |
6602659b MB |
5 | # |
6 | Summary: A library for low-level manipulation with block devices | |
771cd1b7 | 7 | Summary(pl.UTF-8): Biblioteka do niskopoziomowych operacji na urządzeniach blokowych |
6602659b | 8 | Name: libblockdev |
d664700d | 9 | Version: 3.0.3 |
336e438f | 10 | Release: 1 |
6602659b MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
13 | Source0: https://github.com/storaged-project/libblockdev/releases/download/%{version}-1/%{name}-%{version}.tar.gz | |
d664700d | 14 | # Source0-md5: fb4cd3812b7b5a8f2bd950799fbd37f6 |
6602659b | 15 | URL: https://github.com/storaged-project/libblockdev |
771cd1b7 | 16 | BuildRequires: autoconf >= 2.50 |
6602659b | 17 | BuildRequires: automake |
d4cdc74d | 18 | BuildRequires: cryptsetup-devel >= 2.6.0 |
6602659b | 19 | BuildRequires: device-mapper-devel >= 1.02.93 |
d4cdc74d | 20 | BuildRequires: e2fsprogs-devel |
6602659b MB |
21 | BuildRequires: glib2-devel >= 1:2.42.2 |
22 | BuildRequires: gobject-introspection-devel >= 1.3.0 | |
23 | BuildRequires: gtk-doc | |
24 | BuildRequires: kmod-devel >= 19 | |
d4cdc74d | 25 | BuildRequires: keyutils-devel |
1b848f1f | 26 | BuildRequires: libblkid-devel >= 2.27.0 |
6602659b | 27 | BuildRequires: libbytesize-devel >= 0.1 |
d4cdc74d | 28 | BuildRequires: libfdisk-devel >= 2.31.0 |
6602659b | 29 | BuildRequires: libmount-devel >= 2.23.0 |
d4cdc74d | 30 | BuildRequires: libnvme-devel >= 1.4 |
771cd1b7 JB |
31 | BuildRequires: libtool >= 2:2 |
32 | BuildRequires: libuuid-devel | |
1b848f1f JB |
33 | BuildRequires: ndctl-devel >= 60 |
34 | BuildRequires: nss-devel >= 3.18.1 | |
6602659b MB |
35 | BuildRequires: parted-devel >= 3.1 |
36 | BuildRequires: pkgconfig | |
9570ce9e JP |
37 | %if %{with python3} |
38 | BuildRequires: python3-devel >= 1:3.2 | |
39 | BuildRequires: python3-modules >= 1:3.2 | |
40 | %endif | |
397844a4 | 41 | BuildRequires: rpm-build >= 4.6 |
771cd1b7 | 42 | BuildRequires: udev-devel >= 1:216 |
6602659b | 43 | BuildRequires: volume_key-devel |
771cd1b7 | 44 | BuildRequires: yaml-devel >= 0.1 |
6602659b | 45 | Requires: glib2 >= 1:2.42.2 |
771cd1b7 JB |
46 | Requires: kmod-libs >= 19 |
47 | Requires: udev-libs >= 1:216 | |
d4cdc74d JP |
48 | Obsoletes: libblockdev-kbd < 3.0 |
49 | Obsoletes: libblockdev-part-err < 3.0 | |
50 | Obsoletes: libblockdev-vdo < 3.0 | |
6602659b MB |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
53 | %description | |
54 | The libblockdev is a C library with GObject introspection support that | |
55 | can be used for doing low-level operations with block devices like | |
56 | setting up LVM, BTRFS, LUKS or MD RAID. The library uses plugins (LVM, | |
57 | BTRFS,...) and serves as a thin wrapper around its plugins' | |
58 | functionality. All the plugins, however, can be used as standalone | |
59 | libraries. One of the core principles of libblockdev is that it is | |
60 | stateless from the storage configuration's perspective (e.g. it has no | |
61 | information about VGs when creating an LV). | |
62 | ||
771cd1b7 JB |
63 | %description -l pl.UTF-8 |
64 | libblockdev to biblioteka C z obsługą GObject introspection. Można ją | |
65 | wykorzystywać do wykonywania niskopoziomowych operacji na urządzeniach | |
66 | blokowaych, w tym konfigurowania LVM, BTRFS, LUKS czy MD RAID. | |
67 | Biblioteka wykorzystuje wtyczki (LVM, BTRFS...) oraz służy jako cienka | |
68 | warstwa pośrednia do funkcjonalności tych wtyczek. Wszystkie wtyczki | |
69 | mogą być także wykorzystywane jako samodzielne biblioteki. Jedną z | |
70 | głównych zasad libblockdev jest to, że jest bezstanowa z punktu | |
71 | widzenia konfiguracji urządzenia (np. nie ma informacji o VG podczas | |
72 | tworzenia LV). | |
73 | ||
6602659b MB |
74 | %package devel |
75 | Summary: Header files for libblockdev library | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libblockdec | |
77 | Group: Development/Libraries | |
78 | Requires: %{name} = %{version}-%{release} | |
6602659b | 79 | Requires: glib2-devel >= 1:2.42.2 |
d4cdc74d JP |
80 | Obsoletes: libblockdev-kbd-devel < 3.0 |
81 | Obsoletes: libblockdev-part-err-devel < 3.0 | |
82 | Obsoletes: libblockdev-vdo-devel < 3.0 | |
6602659b MB |
83 | |
84 | %description devel | |
85 | Header files for libblockdev library. | |
86 | ||
87 | %description devel -l pl.UTF-8 | |
88 | Pliki nagłówkowe biblioteki libblockdev. | |
89 | ||
90 | %package apidocs | |
91 | Summary: libblockdev API documentation | |
92 | Summary(pl.UTF-8): Dokumentacja API biblioteki libblockdev | |
93 | Group: Documentation | |
94 | Requires: gtk-doc-common | |
397844a4 | 95 | BuildArch: noarch |
6602659b MB |
96 | |
97 | %description apidocs | |
98 | API documentation for libblockdev library. | |
99 | ||
100 | %description apidocs -l pl.UTF-8 | |
101 | Dokumentacja API biblioteki libblockdev. | |
102 | ||
103 | %package btrfs | |
104 | Summary: The BTRFS plugin for the libblockdev library | |
771cd1b7 | 105 | Summary(pl.UTF-8): Wtyczka BTRFS do biblioteki libblockdev |
6602659b MB |
106 | Group: Libraries |
107 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
108 | # btrfs command |
109 | Requires: btrfs-progs >= 3.18.2 | |
771cd1b7 | 110 | Requires: libbytesize >= 0.1 |
6602659b MB |
111 | |
112 | %description btrfs | |
113 | The libblockdev library plugin providing the BTRFS-related | |
114 | functionality. | |
115 | ||
771cd1b7 JB |
116 | %description btrfs -l pl.UTF-8 |
117 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
118 | związaną z BTRFS. | |
119 | ||
911bb753 JB |
120 | %package btrfs-devel |
121 | Summary: Header file for libblockdev BTRFS plugin | |
122 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki BTRFS do biblioteki libblockdev | |
123 | Group: Development/Libraries | |
124 | Requires: %{name}-btrfs = %{version}-%{release} | |
125 | Requires: %{name}-devel = %{version}-%{release} | |
126 | ||
127 | %description btrfs-devel | |
128 | Header file for libblockdev BTRFS plugin. | |
129 | ||
130 | %description btrfs-devel -l pl.UTF-8 | |
131 | Plik nagłówkowy wtyczki BTRFS do biblioteki libblockdev. | |
132 | ||
6602659b MB |
133 | %package crypto |
134 | Summary: The crypto plugin for the libblockdev library | |
771cd1b7 | 135 | Summary(pl.UTF-8): Wtyczka crypto do biblioteki libblockdev |
6602659b MB |
136 | Group: Libraries |
137 | Requires: %{name} = %{version}-%{release} | |
d4cdc74d | 138 | Requires: cryptsetup >= 2.6.0 |
1b848f1f | 139 | Requires: libblkid >= 2.27.0 |
771cd1b7 | 140 | Requires: nss >= 3.18.1 |
6602659b MB |
141 | |
142 | %description crypto | |
143 | The libblockdev library plugin providing the functionality related to | |
144 | encrypted devices (LUKS). | |
145 | ||
771cd1b7 JB |
146 | %description crypto -l pl.UTF-8 |
147 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
148 | związaną z urządzeniami szyfrowanymi (LUKS). | |
149 | ||
911bb753 JB |
150 | %package crypto-devel |
151 | Summary: Header file for libblockdev crypto plugin | |
152 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki crypto do biblioteki libblockdev | |
153 | Group: Development/Libraries | |
154 | Requires: %{name}-crypto = %{version}-%{release} | |
155 | Requires: %{name}-devel = %{version}-%{release} | |
156 | ||
157 | %description crypto-devel | |
158 | Header file for libblockdev crypto plugin. | |
159 | ||
160 | %description crypto-devel -l pl.UTF-8 | |
161 | Plik nagłówkowy wtyczki crypto do biblioteki libblockdev. | |
162 | ||
6602659b MB |
163 | %package dm |
164 | Summary: The Device Mapper plugin for the libblockdev library | |
771cd1b7 | 165 | Summary(pl.UTF-8): Wtyczka Device Mapper do biblioteki libblockdev |
6602659b MB |
166 | Group: Libraries |
167 | Requires: %{name} = %{version}-%{release} | |
911bb753 | 168 | # dmsetup command |
771cd1b7 | 169 | Requires: device-mapper >= 1.02.93 |
6602659b MB |
170 | |
171 | %description dm | |
172 | The libblockdev library plugin providing the functionality related to | |
173 | Device Mapper. | |
174 | ||
771cd1b7 JB |
175 | %description dm -l pl.UTF-8 |
176 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
177 | związaną z Device Mapperem. | |
178 | ||
911bb753 JB |
179 | %package dm-devel |
180 | Summary: Header file for libblockdev Device Mapper plugin | |
181 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki Device Mapper do biblioteki libblockdev | |
182 | Group: Development/Libraries | |
183 | Requires: %{name}-devel = %{version}-%{release} | |
184 | Requires: %{name}-dm = %{version}-%{release} | |
185 | Requires: device-mapper-devel >= 1.02.93 | |
186 | ||
187 | %description dm-devel | |
188 | Header file for libblockdev Device Mapper plugin. | |
189 | ||
190 | %description dm-devel -l pl.UTF-8 | |
191 | Plik nagłówkowy wtyczki Device Mapper do biblioteki libblockdev. | |
192 | ||
6602659b MB |
193 | %package fs |
194 | Summary: The FS plugin for the libblockdev library | |
771cd1b7 | 195 | Summary(pl.UTF-8): Wtyczka FS do biblioteki libblockdev |
6602659b MB |
196 | Group: Libraries |
197 | Requires: %{name} = %{version}-%{release} | |
1b848f1f | 198 | Requires: libblkid >= 2.27.0 |
771cd1b7 | 199 | Requires: libmount >= 2.23.0 |
911bb753 JB |
200 | # mkfs.vfat, fatlabel, fsck.vfat commands |
201 | Suggests: dosfstools | |
202 | # mke2fs, e2fsck, tune2fs, dumpe2fs, resize2fs commands | |
203 | Suggests: e2fsprogs | |
204 | # mkntfs, ntfsfix, ntfsresize, ntfslabel, ntfscluster commands | |
205 | Suggests: ntfsprogs | |
206 | # mkfs.xfs, xfs_db, xfs_repair, xfs_admin, xfs_growfs commands | |
207 | Suggests: xfsprogs | |
6602659b MB |
208 | |
209 | %description fs | |
210 | The libblockdev library plugin providing the functionality related to | |
211 | operations with file systems. | |
212 | ||
771cd1b7 JB |
213 | %description fs -l pl.UTF-8 |
214 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
215 | związaną z operacjami na systemie plików. | |
216 | ||
911bb753 JB |
217 | %package fs-devel |
218 | Summary: Header files for libblockdev FS plugin | |
219 | Summary(pl.UTF-8): Pliki nagłówkowe wtyczki FS do biblioteki libblockdev | |
220 | Group: Development/Libraries | |
221 | Requires: %{name}-devel = %{version}-%{release} | |
222 | Requires: %{name}-fs = %{version}-%{release} | |
911bb753 JB |
223 | |
224 | %description fs-devel | |
225 | Header files for libblockdev FS plugin. | |
226 | ||
227 | %description fs-devel -l pl.UTF-8 | |
228 | Pliki nagłówkowe wtyczki FS do biblioteki libblockdev. | |
229 | ||
6602659b MB |
230 | %package loop |
231 | Summary: The loop plugin for the libblockdev library | |
771cd1b7 | 232 | Summary(pl.UTF-8): Wtyczka loop do biblioteki libblockdev |
6602659b MB |
233 | Group: Libraries |
234 | Requires: %{name} = %{version}-%{release} | |
911bb753 | 235 | Requires: losetup >= 2.23.2 |
6602659b MB |
236 | |
237 | %description loop | |
238 | The libblockdev library plugin providing the functionality related to | |
239 | loop devices. | |
240 | ||
771cd1b7 JB |
241 | %description loop -l pl.UTF-8 |
242 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
243 | związaną z urządzeniami loopback. | |
244 | ||
911bb753 JB |
245 | %package loop-devel |
246 | Summary: Header file for libblockdev loop plugin | |
247 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki loop do biblioteki libblockdev | |
248 | Group: Development/Libraries | |
249 | Requires: %{name}-devel = %{version}-%{release} | |
250 | Requires: %{name}-loop = %{version}-%{release} | |
251 | ||
252 | %description loop-devel | |
253 | Header file for libblockdev loop plugin. | |
254 | ||
255 | %description loop-devel -l pl.UTF-8 | |
256 | Plik nagłówkowy wtyczki loop do biblioteki libblockdev. | |
257 | ||
6602659b MB |
258 | %package lvm |
259 | Summary: The LVM plugin for the libblockdev library | |
771cd1b7 | 260 | Summary(pl.UTF-8): Wtyczka LVM do biblioteki libblockdev |
6602659b MB |
261 | Group: Libraries |
262 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
263 | Requires: device-mapper-libs >= 1.02.93 |
264 | # lvm command | |
265 | Requires: lvm2 >= 1.02.116 | |
6602659b MB |
266 | Requires: thin-provisioning-tools |
267 | ||
268 | %description lvm | |
269 | The libblockdev library plugin providing the LVM-related | |
270 | functionality. | |
271 | ||
771cd1b7 JB |
272 | %description lvm -l pl.UTF-8 |
273 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
274 | związaną z LVM. | |
275 | ||
911bb753 JB |
276 | %package lvm-devel |
277 | Summary: Header file for libblockdev LVM plugin | |
278 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki LVM do biblioteki libblockdev | |
279 | Group: Development/Libraries | |
280 | Requires: %{name}-devel = %{version}-%{release} | |
281 | Requires: %{name}-lvm = %{version}-%{release} | |
282 | Requires: device-mapper-devel >= 1.02.93 | |
283 | ||
284 | %description lvm-devel | |
285 | Header file for libblockdev LVM plugin. | |
286 | ||
287 | %description lvm-devel -l pl.UTF-8 | |
288 | Plik nagłówkowy wtyczki LVM do biblioteki libblockdev. | |
289 | ||
6602659b | 290 | %package lvm-dbus |
771cd1b7 JB |
291 | Summary: The LVM-DBus plugin for the libblockdev library |
292 | Summary(pl.UTF-8): Wtyczka LVM-DBus do biblioteki libblockdev | |
6602659b MB |
293 | Group: Libraries |
294 | Requires: %{name} = %{version}-%{release} | |
911bb753 | 295 | Requires: device-mapper-libs >= 1.02.93 |
6602659b MB |
296 | Requires: lvm2-dbusd >= 2.02.156 |
297 | Requires: thin-provisioning-tools | |
298 | ||
299 | %description lvm-dbus | |
300 | The libblockdev library plugin providing the LVM-related functionality | |
301 | utilizing the LVM DBus API. | |
302 | ||
771cd1b7 JB |
303 | %description lvm-dbus -l pl.UTF-8 |
304 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
305 | związaną z LVM, wykorzystująca API DBus LVM. | |
306 | ||
911bb753 JB |
307 | %package lvm-dbus-devel |
308 | Summary: Development file for libblockdev LVM-DBus plugin | |
309 | Summary(pl.UTF-8): Plik programistyczny wtyczki LVM-DBus do biblioteki libblockdev | |
310 | Group: Development/Libraries | |
311 | Requires: %{name}-devel = %{version}-%{release} | |
312 | Requires: %{name}-lvm-dbus = %{version}-%{release} | |
313 | ||
314 | %description lvm-dbus-devel | |
315 | Development file for libblockdev LVM-DBus plugin. | |
316 | ||
317 | %description lvm-dbus-devel -l pl.UTF-8 | |
318 | Plik programistyczny wtyczki LVM-DBus do biblioteki libblockdev. | |
319 | ||
6602659b MB |
320 | %package mdraid |
321 | Summary: The MD RAID plugin for the libblockdev library | |
771cd1b7 | 322 | Summary(pl.UTF-8): Wtyczka MD RAID do biblioteki libblockdev |
6602659b MB |
323 | Group: Libraries |
324 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 325 | Requires: libbytesize >= 0.1 |
911bb753 | 326 | Requires: mdadm >= 3.3.2 |
6602659b MB |
327 | |
328 | %description mdraid | |
329 | The libblockdev library plugin providing the functionality related to | |
330 | MD RAID. | |
331 | ||
771cd1b7 JB |
332 | %description mdraid -l pl.UTF-8 |
333 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
334 | związaną z MD RAID. | |
335 | ||
911bb753 JB |
336 | %package mdraid-devel |
337 | Summary: Header file for libblockdev MD RAID plugin | |
338 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki MD RAID do biblioteki libblockdev | |
339 | Group: Development/Libraries | |
340 | Requires: %{name}-devel = %{version}-%{release} | |
341 | Requires: %{name}-mdraid = %{version}-%{release} | |
342 | ||
343 | %description mdraid-devel | |
344 | Header file for libblockdev MD RAID plugin. | |
345 | ||
346 | %description mdraid-devel -l pl.UTF-8 | |
347 | Plik nagłówkowy wtyczki MD RAID do biblioteki libblockdev. | |
348 | ||
6602659b MB |
349 | %package mpath |
350 | Summary: The multipath plugin for the libblockdev library | |
771cd1b7 | 351 | Summary(pl.UTF-8): Wtyczka multipath do biblioteki libblockdev |
6602659b MB |
352 | Group: Libraries |
353 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
354 | Requires: device-mapper-libs >= 1.02.93 |
355 | # multipath, mpathconf tools | |
356 | Requires: multipath-tools >= 0.4.9 | |
6602659b MB |
357 | |
358 | %description mpath | |
359 | The libblockdev library plugin providing the functionality related to | |
360 | multipath devices. | |
361 | ||
771cd1b7 JB |
362 | %description mpath -l pl.UTF-8 |
363 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
364 | związaną z urządzeniami multipath. | |
365 | ||
911bb753 JB |
366 | %package mpath-devel |
367 | Summary: Header file for libblockdev multipath plugin | |
368 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki multipath do biblioteki libblockdev | |
369 | Group: Development/Libraries | |
370 | Requires: %{name}-devel = %{version}-%{release} | |
371 | Requires: %{name}-mpath = %{version}-%{release} | |
372 | ||
373 | %description mpath-devel | |
374 | Header file for libblockdev multipath plugin. | |
375 | ||
376 | %description mpath-devel -l pl.UTF-8 | |
377 | Plik nagłówkowy wtyczki multipath do biblioteki libblockdev. | |
378 | ||
c87cf6bf AG |
379 | %package nvdimm |
380 | Summary: The nvdimm plugin for the libblockdev library | |
771cd1b7 | 381 | Summary(pl.UTF-8): Wtyczka nvdimm do biblioteki libblockdev |
c87cf6bf AG |
382 | Group: Libraries |
383 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
384 | # ndctl command |
385 | Requires: ndctl >= 60 | |
c87cf6bf AG |
386 | |
387 | %description nvdimm | |
388 | The libblockdev library plugin providing the functionality related to | |
389 | nvdimm devices. | |
390 | ||
771cd1b7 JB |
391 | %description nvdimm -l pl.UTF-8 |
392 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
393 | związaną z urządzeniami nvdimm. | |
394 | ||
911bb753 JB |
395 | %package nvdimm-devel |
396 | Summary: Header file for libblockdev nvdimm plugin | |
397 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki nvdimm do biblioteki libblockdev | |
398 | Group: Development/Libraries | |
399 | Requires: %{name}-devel = %{version}-%{release} | |
400 | Requires: %{name}-nvdimm = %{version}-%{release} | |
401 | ||
402 | %description nvdimm-devel | |
403 | Header file for libblockdev nvdimm plugin. | |
404 | ||
405 | %description nvdimm-devel -l pl.UTF-8 | |
406 | Plik nagłówkowy wtyczki nvdimm do biblioteki libblockdev. | |
407 | ||
d4cdc74d JP |
408 | %package nvme |
409 | Summary: The NVMe plugin for the libblockdev library | |
410 | Summary(pl.UTF-8): Wtyczka NVMe do biblioteki libblockdev | |
411 | Group: Libraries | |
412 | Requires: %{name} = %{version}-%{release} | |
413 | Requires: libnvme >= 1.4 | |
414 | ||
415 | %description nvme | |
416 | The libblockdev library plugin providing the functionality related to | |
417 | NVMe devices. | |
418 | ||
419 | %description nvme -l pl.UTF-8 | |
420 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
421 | związaną z urządzeniami NVMe. | |
422 | ||
423 | %package nvme-devel | |
424 | Summary: Header file for libblockdev NVMe plugin | |
425 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki NVMe do biblioteki libblockdev | |
426 | Group: Development/Libraries | |
427 | Requires: %{name}-devel = %{version}-%{release} | |
428 | Requires: %{name}-nvme = %{version}-%{release} | |
429 | ||
430 | %description nvme-devel | |
431 | Header file for libblockdev NVMe plugin. | |
432 | ||
433 | %description nvme-devel -l pl.UTF-8 | |
434 | Plik nagłówkowy wtyczki NVMe do biblioteki libblockdev. | |
435 | ||
6602659b MB |
436 | %package part |
437 | Summary: The partitioning plugin for the libblockdev library | |
771cd1b7 | 438 | Summary(pl.UTF-8): Wtyczka partycjonująca do biblioteki libblockdev |
6602659b MB |
439 | Group: Libraries |
440 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
441 | # sgdisk command |
442 | Requires: gdisk >= 0.8.6 | |
d4cdc74d | 443 | Requires: libfdisk >= 2.31.0 |
911bb753 | 444 | # sfdisk command |
6602659b MB |
445 | Requires: util-linux |
446 | ||
447 | %description part | |
448 | The libblockdev library plugin providing the functionality related to | |
449 | partitioning. | |
450 | ||
771cd1b7 JB |
451 | %description part -l pl.UTF-8 |
452 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
453 | związaną z partycjonowaniem. | |
454 | ||
911bb753 JB |
455 | %package part-devel |
456 | Summary: Header file for libblockdev part plugin | |
457 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki part do biblioteki libblockdev | |
458 | Group: Development/Libraries | |
459 | Requires: %{name}-devel = %{version}-%{release} | |
460 | Requires: %{name}-part = %{version}-%{release} | |
911bb753 JB |
461 | |
462 | %description part-devel | |
463 | Header file for libblockdev part plugin. | |
464 | ||
465 | %description part-devel -l pl.UTF-8 | |
466 | Plik nagłówkowy wtyczki part do biblioteki libblockdev. | |
467 | ||
b1339f52 JB |
468 | %package s390 |
469 | Summary: The s390 plugin for the libblockdev library | |
470 | Summary(pl.UTF-8): Wtyczka s390 do biblioteki libblockdev | |
471 | Group: Libraries | |
472 | Requires: %{name} = %{version}-%{release} | |
473 | # dasdfmt command (https://github.com/ibm-s390-linux/s390-tools) | |
474 | #Requires: s390-tools | |
475 | ||
476 | %description s390 | |
477 | The libblockdev library plugin providing the functionality related to | |
478 | s390 devices. | |
479 | ||
480 | %description s390 -l pl.UTF-8 | |
481 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
482 | związaną z urządzeniami s390. | |
483 | ||
484 | %package s390-devel | |
485 | Summary: Header file for libblockdev s390 plugin | |
486 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki s390 do biblioteki libblockdev | |
487 | Group: Development/Libraries | |
488 | Requires: %{name}-devel = %{version}-%{release} | |
489 | Requires: %{name}-s390 = %{version}-%{release} | |
490 | ||
491 | %description s390-devel | |
492 | Header file for libblockdev s390 plugin. | |
493 | ||
494 | %description s390-devel -l pl.UTF-8 | |
495 | Plik nagłówkowy wtyczki s390 do biblioteki libblockdev. | |
496 | ||
6602659b MB |
497 | %package swap |
498 | Summary: The swap plugin for the libblockdev library | |
771cd1b7 | 499 | Summary(pl.UTF-8): Wtyczka swap do biblioteki libblockdev |
6602659b MB |
500 | Group: Libraries |
501 | Requires: %{name} = %{version}-%{release} | |
1b848f1f | 502 | Requires: libblkid >= 2.27.0 |
911bb753 JB |
503 | # mkswap, swaplabel commands |
504 | Requires: util-linux >= 2.23.2 | |
6602659b MB |
505 | |
506 | %description swap | |
507 | The libblockdev library plugin providing the functionality related to | |
508 | swap devices. | |
509 | ||
771cd1b7 JB |
510 | %description swap -l pl.UTF-8 |
511 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
512 | związaną z urządzeniami wymiany. | |
513 | ||
911bb753 JB |
514 | %package swap-devel |
515 | Summary: Header file for libblockdev swap plugin | |
516 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki swap do biblioteki libblockdev | |
517 | Group: Development/Libraries | |
518 | Requires: %{name}-devel = %{version}-%{release} | |
519 | Requires: %{name}-swap = %{version}-%{release} | |
520 | ||
521 | %description swap-devel | |
522 | Header file for libblockdev swap plugin. | |
523 | ||
524 | %description swap-devel -l pl.UTF-8 | |
525 | Plik nagłówkowy wtyczki swap do biblioteki libblockdev. | |
526 | ||
6602659b MB |
527 | %package plugins |
528 | Summary: Meta-package that pulls all the libblockdev plugins as dependencies | |
771cd1b7 | 529 | Summary(pl.UTF-8): Metapakiet instalujący przez zależności wszystkie wtyczki libblockdev |
6602659b MB |
530 | Group: Libraries |
531 | Requires: %{name}-btrfs = %{version}-%{release} | |
532 | Requires: %{name}-crypto = %{version}-%{release} | |
533 | Requires: %{name}-dm = %{version}-%{release} | |
534 | Requires: %{name}-fs = %{version}-%{release} | |
6602659b MB |
535 | Requires: %{name}-loop = %{version}-%{release} |
536 | Requires: %{name}-lvm = %{version}-%{release} | |
537 | Requires: %{name}-lvm-dbus = %{version}-%{release} | |
538 | Requires: %{name}-mdraid = %{version}-%{release} | |
539 | Requires: %{name}-mpath = %{version}-%{release} | |
86448555 | 540 | Requires: %{name}-nvdimm = %{version}-%{release} |
d4cdc74d | 541 | Requires: %{name}-nvme = %{version}-%{release} |
6602659b | 542 | Requires: %{name}-part = %{version}-%{release} |
b1339f52 JB |
543 | %ifarch s390 s390x |
544 | Requires: %{name}-s390 = %{version}-%{release} | |
545 | %endif | |
6602659b MB |
546 | Requires: %{name}-swap = %{version}-%{release} |
547 | ||
548 | %description plugins | |
549 | A meta-package that pulls all the libblockdev plugins as dependencies. | |
550 | ||
771cd1b7 JB |
551 | %description plugins -l pl.UTF-8 |
552 | Metapakiet instalujący przez zależności wszystkie wtyczki libblockdev. | |
553 | ||
d4cdc74d JP |
554 | %package tools |
555 | Summary: Various tools based on libblockdev | |
556 | Summary(pl.UTF-8): Różne narzędzia bazujące na libblockdev | |
557 | Group: Applications/System | |
558 | Requires: %{name} = %{version}-%{release} | |
559 | Requires: parted-libs >= 3.1 | |
560 | ||
561 | %description tools | |
562 | Various tools based on libblockdev. | |
563 | ||
564 | %description tools -l pl.UTF-8 | |
565 | Różne narzędzia bazujące na libblockdev. | |
566 | ||
6602659b | 567 | %package -n python-blockdev |
771cd1b7 JB |
568 | Summary: Python 2 bindings for libblockdev |
569 | Summary(pl.UTF-8): Wiązania Pythona 2 do libblockdev | |
6602659b MB |
570 | Group: Libraries/Python |
571 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 572 | Requires: python-pygobject3 >= 3 |
6602659b MB |
573 | |
574 | %description -n python-blockdev | |
771cd1b7 JB |
575 | This package contains Python 2 bindings for libblockdev. |
576 | ||
577 | %description -n python-blockdev -l pl.UTF-8 | |
578 | Ten pakiet zawiera wiązania Pythona 2 do libblockdev. | |
6602659b MB |
579 | |
580 | %package -n python3-blockdev | |
911bb753 JB |
581 | Summary: Python 3 bindings for libblockdev |
582 | Summary(pl.UTF-8): Wiązania Pythona 3 do libblockdev | |
6602659b MB |
583 | Group: Libraries/Python |
584 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 585 | Requires: python3-pygobject3 >= 3 |
d4cdc74d | 586 | Obsoletes: python-blockdev < 3.0 |
6602659b MB |
587 | |
588 | %description -n python3-blockdev | |
589 | This package contains Python 3 bindings for libblockdev. | |
590 | ||
771cd1b7 JB |
591 | %description -n python3-blockdev -l pl.UTF-8 |
592 | Ten pakiet zawiera wiązania Pythona 3 do libblockdev. | |
593 | ||
6602659b MB |
594 | %prep |
595 | %setup -q | |
596 | ||
597 | %build | |
598 | %{__libtoolize} | |
599 | %{__aclocal} -I m4 | |
600 | %{__autoconf} | |
601 | %{__automake} | |
602 | %configure \ | |
1b848f1f | 603 | %{__with_without apidocs gtk-doc} \ |
1b848f1f JB |
604 | %{!?with_python3:--without-python3} |
605 | ||
6602659b MB |
606 | %{__make} |
607 | ||
608 | %install | |
609 | rm -rf $RPM_BUILD_ROOT | |
610 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
611 | ||
612 | %{__make} install \ | |
613 | DESTDIR=$RPM_BUILD_ROOT | |
614 | ||
615 | %if %{with apidocs} | |
771cd1b7 | 616 | %{__mv} $RPM_BUILD_ROOT{%{_datadir}/gtk-doc/html/libblockdev,%{_gtkdocdir}} |
6602659b MB |
617 | %endif |
618 | ||
771cd1b7 | 619 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6602659b | 620 | |
d4cdc74d | 621 | %if %{with python3} |
fa10eb2c JB |
622 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
623 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
d4cdc74d | 624 | %endif |
fa10eb2c | 625 | |
6602659b MB |
626 | %clean |
627 | rm -rf $RPM_BUILD_ROOT | |
628 | ||
629 | %post -p /sbin/ldconfig | |
630 | %postun -p /sbin/ldconfig | |
631 | ||
771cd1b7 JB |
632 | %post btrfs -p /sbin/ldconfig |
633 | %postun btrfs -p /sbin/ldconfig | |
6602659b | 634 | |
771cd1b7 JB |
635 | %post crypto -p /sbin/ldconfig |
636 | %postun crypto -p /sbin/ldconfig | |
6602659b | 637 | |
771cd1b7 JB |
638 | %post dm -p /sbin/ldconfig |
639 | %postun dm -p /sbin/ldconfig | |
6602659b | 640 | |
771cd1b7 JB |
641 | %post fs -p /sbin/ldconfig |
642 | %postun fs -p /sbin/ldconfig | |
6602659b | 643 | |
771cd1b7 JB |
644 | %post loop -p /sbin/ldconfig |
645 | %postun loop -p /sbin/ldconfig | |
6602659b | 646 | |
771cd1b7 JB |
647 | %post lvm -p /sbin/ldconfig |
648 | %postun lvm -p /sbin/ldconfig | |
6602659b | 649 | |
771cd1b7 JB |
650 | %post lvm-dbus -p /sbin/ldconfig |
651 | %postun lvm-dbus -p /sbin/ldconfig | |
6602659b | 652 | |
771cd1b7 JB |
653 | %post mdraid -p /sbin/ldconfig |
654 | %postun mdraid -p /sbin/ldconfig | |
6602659b | 655 | |
771cd1b7 JB |
656 | %post mpath -p /sbin/ldconfig |
657 | %postun mpath -p /sbin/ldconfig | |
6602659b | 658 | |
771cd1b7 JB |
659 | %post nvdimm -p /sbin/ldconfig |
660 | %postun nvdimm -p /sbin/ldconfig | |
c87cf6bf | 661 | |
d4cdc74d JP |
662 | %post nvme -p /sbin/ldconfig |
663 | %postun nvme -p /sbin/ldconfig | |
664 | ||
771cd1b7 JB |
665 | %post part -p /sbin/ldconfig |
666 | %postun part -p /sbin/ldconfig | |
6602659b | 667 | |
b1339f52 JB |
668 | %post s390 -p /sbin/ldconfig |
669 | %postun s390 -p /sbin/ldconfig | |
670 | ||
771cd1b7 JB |
671 | %post swap -p /sbin/ldconfig |
672 | %postun swap -p /sbin/ldconfig | |
6602659b MB |
673 | |
674 | %files | |
675 | %defattr(644,root,root,755) | |
6602659b | 676 | %attr(755,root,root) %{_libdir}/libbd_utils.so.*.*.* |
d4cdc74d | 677 | %attr(755,root,root) %ghost %{_libdir}/libbd_utils.so.3 |
6602659b | 678 | %attr(755,root,root) %{_libdir}/libblockdev.so.*.*.* |
d4cdc74d | 679 | %attr(755,root,root) %ghost %{_libdir}/libblockdev.so.3 |
6602659b | 680 | %dir %{_sysconfdir}/libblockdev |
85cdbda2 JP |
681 | %dir %{_sysconfdir}/libblockdev/3 |
682 | %dir %{_sysconfdir}/libblockdev/3/conf.d | |
683 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libblockdev/3/conf.d/00-default.cfg | |
d4cdc74d | 684 | %{_libdir}/girepository-1.0/BlockDev-3.0.typelib |
6602659b MB |
685 | |
686 | %files devel | |
687 | %defattr(644,root,root,755) | |
6602659b MB |
688 | %attr(755,root,root) %{_libdir}/libbd_utils.so |
689 | %attr(755,root,root) %{_libdir}/libblockdev.so | |
911bb753 JB |
690 | %dir %{_includedir}/blockdev |
691 | %{_includedir}/blockdev/blockdev.h | |
692 | %{_includedir}/blockdev/dbus.h | |
693 | %{_includedir}/blockdev/dev_utils.h | |
694 | %{_includedir}/blockdev/exec.h | |
695 | %{_includedir}/blockdev/extra_arg.h | |
d4cdc74d | 696 | %{_includedir}/blockdev/logging.h |
911bb753 JB |
697 | %{_includedir}/blockdev/module.h |
698 | %{_includedir}/blockdev/plugins.h | |
699 | %{_includedir}/blockdev/sizes.h | |
700 | %{_includedir}/blockdev/utils.h | |
d4cdc74d | 701 | %{_datadir}/gir-1.0/BlockDev-3.0.gir |
6602659b MB |
702 | %{_pkgconfigdir}/blockdev.pc |
703 | %{_pkgconfigdir}/blockdev-utils.pc | |
704 | ||
705 | %if %{with apidocs} | |
706 | %files apidocs | |
707 | %defattr(644,root,root,755) | |
708 | %{_gtkdocdir}/libblockdev | |
709 | %endif | |
710 | ||
711 | %files btrfs | |
712 | %defattr(644,root,root,755) | |
713 | %attr(755,root,root) %{_libdir}/libbd_btrfs.so.*.*.* | |
d4cdc74d | 714 | %attr(755,root,root) %ghost %{_libdir}/libbd_btrfs.so.3 |
6602659b | 715 | |
911bb753 JB |
716 | %files btrfs-devel |
717 | %defattr(644,root,root,755) | |
718 | %attr(755,root,root) %{_libdir}/libbd_btrfs.so | |
719 | %{_includedir}/blockdev/btrfs.h | |
720 | ||
6602659b MB |
721 | %files crypto |
722 | %defattr(644,root,root,755) | |
723 | %attr(755,root,root) %{_libdir}/libbd_crypto.so.*.*.* | |
d4cdc74d | 724 | %attr(755,root,root) %ghost %{_libdir}/libbd_crypto.so.3 |
6602659b | 725 | |
911bb753 JB |
726 | %files crypto-devel |
727 | %defattr(644,root,root,755) | |
728 | %attr(755,root,root) %{_libdir}/libbd_crypto.so | |
729 | %{_includedir}/blockdev/crypto.h | |
730 | ||
6602659b MB |
731 | %files dm |
732 | %defattr(644,root,root,755) | |
733 | %attr(755,root,root) %{_libdir}/libbd_dm.so.*.*.* | |
d4cdc74d | 734 | %attr(755,root,root) %ghost %{_libdir}/libbd_dm.so.3 |
6602659b | 735 | |
911bb753 JB |
736 | %files dm-devel |
737 | %defattr(644,root,root,755) | |
738 | %attr(755,root,root) %{_libdir}/libbd_dm.so | |
739 | %{_includedir}/blockdev/dm.h | |
740 | ||
6602659b MB |
741 | %files fs |
742 | %defattr(644,root,root,755) | |
743 | %attr(755,root,root) %{_libdir}/libbd_fs.so.*.*.* | |
d4cdc74d | 744 | %attr(755,root,root) %ghost %{_libdir}/libbd_fs.so.3 |
6602659b | 745 | |
911bb753 JB |
746 | %files fs-devel |
747 | %defattr(644,root,root,755) | |
748 | %attr(755,root,root) %{_libdir}/libbd_fs.so | |
749 | %{_includedir}/blockdev/fs.h | |
750 | %{_includedir}/blockdev/fs | |
751 | ||
6602659b MB |
752 | %files loop |
753 | %defattr(644,root,root,755) | |
754 | %attr(755,root,root) %{_libdir}/libbd_loop.so.*.*.* | |
d4cdc74d | 755 | %attr(755,root,root) %ghost %{_libdir}/libbd_loop.so.3 |
6602659b | 756 | |
911bb753 JB |
757 | %files loop-devel |
758 | %defattr(644,root,root,755) | |
759 | %attr(755,root,root) %{_libdir}/libbd_loop.so | |
760 | %{_includedir}/blockdev/loop.h | |
761 | ||
6602659b MB |
762 | %files lvm |
763 | %defattr(644,root,root,755) | |
764 | %attr(755,root,root) %{_libdir}/libbd_lvm.so.*.*.* | |
d4cdc74d | 765 | %attr(755,root,root) %ghost %{_libdir}/libbd_lvm.so.3 |
6602659b | 766 | |
911bb753 JB |
767 | %files lvm-devel |
768 | %defattr(644,root,root,755) | |
769 | %attr(755,root,root) %{_libdir}/libbd_lvm.so | |
770 | %{_includedir}/blockdev/lvm.h | |
771 | ||
6602659b MB |
772 | %files lvm-dbus |
773 | %defattr(644,root,root,755) | |
774 | %attr(755,root,root) %{_libdir}/libbd_lvm-dbus.so.*.*.* | |
d4cdc74d | 775 | %attr(755,root,root) %ghost %{_libdir}/libbd_lvm-dbus.so.3 |
85cdbda2 | 776 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libblockdev/3/conf.d/10-lvm-dbus.cfg |
6602659b | 777 | |
911bb753 JB |
778 | %files lvm-dbus-devel |
779 | %defattr(644,root,root,755) | |
780 | %attr(755,root,root) %{_libdir}/libbd_lvm-dbus.so | |
781 | ||
6602659b MB |
782 | %files mdraid |
783 | %defattr(644,root,root,755) | |
784 | %attr(755,root,root) %{_libdir}/libbd_mdraid.so.*.*.* | |
d4cdc74d | 785 | %attr(755,root,root) %ghost %{_libdir}/libbd_mdraid.so.3 |
6602659b | 786 | |
911bb753 JB |
787 | %files mdraid-devel |
788 | %defattr(644,root,root,755) | |
789 | %attr(755,root,root) %{_libdir}/libbd_mdraid.so | |
790 | %{_includedir}/blockdev/mdraid.h | |
791 | ||
6602659b MB |
792 | %files mpath |
793 | %defattr(644,root,root,755) | |
794 | %attr(755,root,root) %{_libdir}/libbd_mpath.so.*.*.* | |
d4cdc74d | 795 | %attr(755,root,root) %ghost %{_libdir}/libbd_mpath.so.3 |
6602659b | 796 | |
911bb753 JB |
797 | %files mpath-devel |
798 | %defattr(644,root,root,755) | |
799 | %attr(755,root,root) %{_libdir}/libbd_mpath.so | |
800 | %{_includedir}/blockdev/mpath.h | |
801 | ||
c87cf6bf AG |
802 | %files nvdimm |
803 | %defattr(644,root,root,755) | |
804 | %attr(755,root,root) %{_libdir}/libbd_nvdimm.so.*.*.* | |
d4cdc74d | 805 | %attr(755,root,root) %ghost %{_libdir}/libbd_nvdimm.so.3 |
c87cf6bf | 806 | |
911bb753 JB |
807 | %files nvdimm-devel |
808 | %defattr(644,root,root,755) | |
809 | %attr(755,root,root) %{_libdir}/libbd_nvdimm.so | |
810 | %{_includedir}/blockdev/nvdimm.h | |
811 | ||
d4cdc74d JP |
812 | %files nvme |
813 | %defattr(644,root,root,755) | |
814 | %attr(755,root,root) %{_libdir}/libbd_nvme.so.*.*.* | |
815 | %attr(755,root,root) %ghost %{_libdir}/libbd_nvme.so.3 | |
816 | ||
817 | %files nvme-devel | |
818 | %defattr(644,root,root,755) | |
819 | %attr(755,root,root) %{_libdir}/libbd_nvme.so | |
820 | %{_includedir}/blockdev/nvme.h | |
821 | ||
6602659b MB |
822 | %files part |
823 | %defattr(644,root,root,755) | |
824 | %attr(755,root,root) %{_libdir}/libbd_part.so.*.*.* | |
d4cdc74d | 825 | %attr(755,root,root) %ghost %{_libdir}/libbd_part.so.3 |
6602659b | 826 | |
911bb753 JB |
827 | %files part-devel |
828 | %defattr(644,root,root,755) | |
829 | %attr(755,root,root) %{_libdir}/libbd_part.so | |
830 | %{_includedir}/blockdev/part.h | |
831 | ||
b1339f52 JB |
832 | %ifarch s390 s390x |
833 | %files s390 | |
834 | %defattr(644,root,root,755) | |
835 | %attr(755,root,root) %{_libdir}/libbd_s390.so.*.*.* | |
d4cdc74d | 836 | %attr(755,root,root) %ghost %{_libdir}/libbd_s390.so.3 |
b1339f52 JB |
837 | |
838 | %files s390-devel | |
839 | %defattr(644,root,root,755) | |
840 | %attr(755,root,root) %{_libdir}/libbd_s390.so | |
841 | %{_includedir}/blockdev/s390.h | |
842 | %endif | |
843 | ||
6602659b MB |
844 | %files swap |
845 | %defattr(644,root,root,755) | |
846 | %attr(755,root,root) %{_libdir}/libbd_swap.so.*.*.* | |
d4cdc74d | 847 | %attr(755,root,root) %ghost %{_libdir}/libbd_swap.so.3 |
6602659b | 848 | |
911bb753 JB |
849 | %files swap-devel |
850 | %defattr(644,root,root,755) | |
851 | %attr(755,root,root) %{_libdir}/libbd_swap.so | |
852 | %{_includedir}/blockdev/swap.h | |
853 | ||
6602659b MB |
854 | %files plugins |
855 | %defattr(644,root,root,755) | |
856 | ||
d4cdc74d | 857 | %files tools |
6602659b | 858 | %defattr(644,root,root,755) |
d4cdc74d JP |
859 | %attr(755,root,root) %{_bindir}/lvm-cache-stats |
860 | %attr(755,root,root) %{_bindir}/vfat-resize | |
6602659b | 861 | |
1b848f1f | 862 | %if %{with python3} |
6602659b MB |
863 | %files -n python3-blockdev |
864 | %defattr(644,root,root,755) | |
865 | %{py3_sitedir}/gi/overrides/BlockDev.py | |
fa10eb2c | 866 | %{py3_sitedir}/gi/overrides/__pycache__/BlockDev.cpython-*.py[co] |
1b848f1f | 867 | %endif |