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