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