]>
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 |
d4cdc74d | 9 | Version: 3.0 |
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 | |
d4cdc74d | 14 | # Source0-md5: ef5dd9a42ac7d31d88842222773ded70 |
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 | |
1b848f1f | 37 | %{?with_python3:BuildRequires: python3-devel >= 1:3.2} |
397844a4 | 38 | BuildRequires: rpm-build >= 4.6 |
771cd1b7 | 39 | BuildRequires: udev-devel >= 1:216 |
6602659b | 40 | BuildRequires: volume_key-devel |
771cd1b7 | 41 | BuildRequires: yaml-devel >= 0.1 |
6602659b | 42 | Requires: glib2 >= 1:2.42.2 |
771cd1b7 JB |
43 | Requires: kmod-libs >= 19 |
44 | Requires: udev-libs >= 1:216 | |
d4cdc74d JP |
45 | Obsoletes: libblockdev-kbd < 3.0 |
46 | Obsoletes: libblockdev-part-err < 3.0 | |
47 | Obsoletes: libblockdev-vdo < 3.0 | |
6602659b MB |
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 | ||
771cd1b7 JB |
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 | ||
6602659b MB |
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} | |
6602659b | 76 | Requires: glib2-devel >= 1:2.42.2 |
d4cdc74d JP |
77 | Obsoletes: libblockdev-kbd-devel < 3.0 |
78 | Obsoletes: libblockdev-part-err-devel < 3.0 | |
79 | Obsoletes: libblockdev-vdo-devel < 3.0 | |
6602659b MB |
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 | |
397844a4 | 92 | BuildArch: noarch |
6602659b MB |
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 | |
771cd1b7 | 102 | Summary(pl.UTF-8): Wtyczka BTRFS do biblioteki libblockdev |
6602659b MB |
103 | Group: Libraries |
104 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
105 | # btrfs command |
106 | Requires: btrfs-progs >= 3.18.2 | |
771cd1b7 | 107 | Requires: libbytesize >= 0.1 |
6602659b MB |
108 | |
109 | %description btrfs | |
110 | The libblockdev library plugin providing the BTRFS-related | |
111 | functionality. | |
112 | ||
771cd1b7 JB |
113 | %description btrfs -l pl.UTF-8 |
114 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
115 | związaną z BTRFS. | |
116 | ||
911bb753 JB |
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 | ||
6602659b MB |
130 | %package crypto |
131 | Summary: The crypto plugin for the libblockdev library | |
771cd1b7 | 132 | Summary(pl.UTF-8): Wtyczka crypto do biblioteki libblockdev |
6602659b MB |
133 | Group: Libraries |
134 | Requires: %{name} = %{version}-%{release} | |
d4cdc74d | 135 | Requires: cryptsetup >= 2.6.0 |
1b848f1f | 136 | Requires: libblkid >= 2.27.0 |
771cd1b7 | 137 | Requires: nss >= 3.18.1 |
6602659b MB |
138 | |
139 | %description crypto | |
140 | The libblockdev library plugin providing the functionality related to | |
141 | encrypted devices (LUKS). | |
142 | ||
771cd1b7 JB |
143 | %description crypto -l pl.UTF-8 |
144 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
145 | związaną z urządzeniami szyfrowanymi (LUKS). | |
146 | ||
911bb753 JB |
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 | ||
6602659b MB |
160 | %package dm |
161 | Summary: The Device Mapper plugin for the libblockdev library | |
771cd1b7 | 162 | Summary(pl.UTF-8): Wtyczka Device Mapper do biblioteki libblockdev |
6602659b MB |
163 | Group: Libraries |
164 | Requires: %{name} = %{version}-%{release} | |
911bb753 | 165 | # dmsetup command |
771cd1b7 | 166 | Requires: device-mapper >= 1.02.93 |
6602659b MB |
167 | |
168 | %description dm | |
169 | The libblockdev library plugin providing the functionality related to | |
170 | Device Mapper. | |
171 | ||
771cd1b7 JB |
172 | %description dm -l pl.UTF-8 |
173 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
174 | związaną z Device Mapperem. | |
175 | ||
911bb753 JB |
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 | ||
6602659b MB |
190 | %package fs |
191 | Summary: The FS plugin for the libblockdev library | |
771cd1b7 | 192 | Summary(pl.UTF-8): Wtyczka FS do biblioteki libblockdev |
6602659b MB |
193 | Group: Libraries |
194 | Requires: %{name} = %{version}-%{release} | |
1b848f1f | 195 | Requires: libblkid >= 2.27.0 |
771cd1b7 | 196 | Requires: libmount >= 2.23.0 |
911bb753 JB |
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 | |
6602659b MB |
205 | |
206 | %description fs | |
207 | The libblockdev library plugin providing the functionality related to | |
208 | operations with file systems. | |
209 | ||
771cd1b7 JB |
210 | %description fs -l pl.UTF-8 |
211 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
212 | związaną z operacjami na systemie plików. | |
213 | ||
911bb753 JB |
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} | |
911bb753 JB |
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 | ||
6602659b MB |
227 | %package loop |
228 | Summary: The loop plugin for the libblockdev library | |
771cd1b7 | 229 | Summary(pl.UTF-8): Wtyczka loop do biblioteki libblockdev |
6602659b MB |
230 | Group: Libraries |
231 | Requires: %{name} = %{version}-%{release} | |
911bb753 | 232 | Requires: losetup >= 2.23.2 |
6602659b MB |
233 | |
234 | %description loop | |
235 | The libblockdev library plugin providing the functionality related to | |
236 | loop devices. | |
237 | ||
771cd1b7 JB |
238 | %description loop -l pl.UTF-8 |
239 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
240 | związaną z urządzeniami loopback. | |
241 | ||
911bb753 JB |
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 | ||
6602659b MB |
255 | %package lvm |
256 | Summary: The LVM plugin for the libblockdev library | |
771cd1b7 | 257 | Summary(pl.UTF-8): Wtyczka LVM do biblioteki libblockdev |
6602659b MB |
258 | Group: Libraries |
259 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
260 | Requires: device-mapper-libs >= 1.02.93 |
261 | # lvm command | |
262 | Requires: lvm2 >= 1.02.116 | |
6602659b MB |
263 | Requires: thin-provisioning-tools |
264 | ||
265 | %description lvm | |
266 | The libblockdev library plugin providing the LVM-related | |
267 | functionality. | |
268 | ||
771cd1b7 JB |
269 | %description lvm -l pl.UTF-8 |
270 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
271 | związaną z LVM. | |
272 | ||
911bb753 JB |
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 | ||
6602659b | 287 | %package lvm-dbus |
771cd1b7 JB |
288 | Summary: The LVM-DBus plugin for the libblockdev library |
289 | Summary(pl.UTF-8): Wtyczka LVM-DBus do biblioteki libblockdev | |
6602659b MB |
290 | Group: Libraries |
291 | Requires: %{name} = %{version}-%{release} | |
911bb753 | 292 | Requires: device-mapper-libs >= 1.02.93 |
6602659b MB |
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 | ||
771cd1b7 JB |
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 | ||
911bb753 JB |
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 | ||
6602659b MB |
317 | %package mdraid |
318 | Summary: The MD RAID plugin for the libblockdev library | |
771cd1b7 | 319 | Summary(pl.UTF-8): Wtyczka MD RAID do biblioteki libblockdev |
6602659b MB |
320 | Group: Libraries |
321 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 322 | Requires: libbytesize >= 0.1 |
911bb753 | 323 | Requires: mdadm >= 3.3.2 |
6602659b MB |
324 | |
325 | %description mdraid | |
326 | The libblockdev library plugin providing the functionality related to | |
327 | MD RAID. | |
328 | ||
771cd1b7 JB |
329 | %description mdraid -l pl.UTF-8 |
330 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
331 | związaną z MD RAID. | |
332 | ||
911bb753 JB |
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 | ||
6602659b MB |
346 | %package mpath |
347 | Summary: The multipath plugin for the libblockdev library | |
771cd1b7 | 348 | Summary(pl.UTF-8): Wtyczka multipath do biblioteki libblockdev |
6602659b MB |
349 | Group: Libraries |
350 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
351 | Requires: device-mapper-libs >= 1.02.93 |
352 | # multipath, mpathconf tools | |
353 | Requires: multipath-tools >= 0.4.9 | |
6602659b MB |
354 | |
355 | %description mpath | |
356 | The libblockdev library plugin providing the functionality related to | |
357 | multipath devices. | |
358 | ||
771cd1b7 JB |
359 | %description mpath -l pl.UTF-8 |
360 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
361 | związaną z urządzeniami multipath. | |
362 | ||
911bb753 JB |
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 | ||
c87cf6bf AG |
376 | %package nvdimm |
377 | Summary: The nvdimm plugin for the libblockdev library | |
771cd1b7 | 378 | Summary(pl.UTF-8): Wtyczka nvdimm do biblioteki libblockdev |
c87cf6bf AG |
379 | Group: Libraries |
380 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
381 | # ndctl command |
382 | Requires: ndctl >= 60 | |
c87cf6bf AG |
383 | |
384 | %description nvdimm | |
385 | The libblockdev library plugin providing the functionality related to | |
386 | nvdimm devices. | |
387 | ||
771cd1b7 JB |
388 | %description nvdimm -l pl.UTF-8 |
389 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
390 | związaną z urządzeniami nvdimm. | |
391 | ||
911bb753 JB |
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 | ||
d4cdc74d JP |
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 | ||
6602659b MB |
433 | %package part |
434 | Summary: The partitioning plugin for the libblockdev library | |
771cd1b7 | 435 | Summary(pl.UTF-8): Wtyczka partycjonująca do biblioteki libblockdev |
6602659b MB |
436 | Group: Libraries |
437 | Requires: %{name} = %{version}-%{release} | |
911bb753 JB |
438 | # sgdisk command |
439 | Requires: gdisk >= 0.8.6 | |
d4cdc74d | 440 | Requires: libfdisk >= 2.31.0 |
911bb753 | 441 | # sfdisk command |
6602659b MB |
442 | Requires: util-linux |
443 | ||
444 | %description part | |
445 | The libblockdev library plugin providing the functionality related to | |
446 | partitioning. | |
447 | ||
771cd1b7 JB |
448 | %description part -l pl.UTF-8 |
449 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
450 | związaną z partycjonowaniem. | |
451 | ||
911bb753 JB |
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} | |
911bb753 JB |
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 | ||
b1339f52 JB |
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 | ||
6602659b MB |
494 | %package swap |
495 | Summary: The swap plugin for the libblockdev library | |
771cd1b7 | 496 | Summary(pl.UTF-8): Wtyczka swap do biblioteki libblockdev |
6602659b MB |
497 | Group: Libraries |
498 | Requires: %{name} = %{version}-%{release} | |
1b848f1f | 499 | Requires: libblkid >= 2.27.0 |
911bb753 JB |
500 | # mkswap, swaplabel commands |
501 | Requires: util-linux >= 2.23.2 | |
6602659b MB |
502 | |
503 | %description swap | |
504 | The libblockdev library plugin providing the functionality related to | |
505 | swap devices. | |
506 | ||
771cd1b7 JB |
507 | %description swap -l pl.UTF-8 |
508 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
509 | związaną z urządzeniami wymiany. | |
510 | ||
911bb753 JB |
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 | ||
6602659b MB |
524 | %package plugins |
525 | Summary: Meta-package that pulls all the libblockdev plugins as dependencies | |
771cd1b7 | 526 | Summary(pl.UTF-8): Metapakiet instalujący przez zależności wszystkie wtyczki libblockdev |
6602659b MB |
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} | |
6602659b MB |
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} | |
86448555 | 537 | Requires: %{name}-nvdimm = %{version}-%{release} |
d4cdc74d | 538 | Requires: %{name}-nvme = %{version}-%{release} |
6602659b | 539 | Requires: %{name}-part = %{version}-%{release} |
b1339f52 JB |
540 | %ifarch s390 s390x |
541 | Requires: %{name}-s390 = %{version}-%{release} | |
542 | %endif | |
6602659b MB |
543 | Requires: %{name}-swap = %{version}-%{release} |
544 | ||
545 | %description plugins | |
546 | A meta-package that pulls all the libblockdev plugins as dependencies. | |
547 | ||
771cd1b7 JB |
548 | %description plugins -l pl.UTF-8 |
549 | Metapakiet instalujący przez zależności wszystkie wtyczki libblockdev. | |
550 | ||
d4cdc74d JP |
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 | ||
6602659b | 564 | %package -n python-blockdev |
771cd1b7 JB |
565 | Summary: Python 2 bindings for libblockdev |
566 | Summary(pl.UTF-8): Wiązania Pythona 2 do libblockdev | |
6602659b MB |
567 | Group: Libraries/Python |
568 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 569 | Requires: python-pygobject3 >= 3 |
6602659b MB |
570 | |
571 | %description -n python-blockdev | |
771cd1b7 JB |
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. | |
6602659b MB |
576 | |
577 | %package -n python3-blockdev | |
911bb753 JB |
578 | Summary: Python 3 bindings for libblockdev |
579 | Summary(pl.UTF-8): Wiązania Pythona 3 do libblockdev | |
6602659b MB |
580 | Group: Libraries/Python |
581 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 582 | Requires: python3-pygobject3 >= 3 |
d4cdc74d | 583 | Obsoletes: python-blockdev < 3.0 |
6602659b MB |
584 | |
585 | %description -n python3-blockdev | |
586 | This package contains Python 3 bindings for libblockdev. | |
587 | ||
771cd1b7 JB |
588 | %description -n python3-blockdev -l pl.UTF-8 |
589 | Ten pakiet zawiera wiązania Pythona 3 do libblockdev. | |
590 | ||
6602659b MB |
591 | %prep |
592 | %setup -q | |
593 | ||
594 | %build | |
595 | %{__libtoolize} | |
596 | %{__aclocal} -I m4 | |
597 | %{__autoconf} | |
598 | %{__automake} | |
599 | %configure \ | |
1b848f1f | 600 | %{__with_without apidocs gtk-doc} \ |
1b848f1f JB |
601 | %{!?with_python3:--without-python3} |
602 | ||
6602659b MB |
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} | |
771cd1b7 | 613 | %{__mv} $RPM_BUILD_ROOT{%{_datadir}/gtk-doc/html/libblockdev,%{_gtkdocdir}} |
6602659b MB |
614 | %endif |
615 | ||
771cd1b7 | 616 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6602659b | 617 | |
d4cdc74d | 618 | %if %{with python3} |
fa10eb2c JB |
619 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
620 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
d4cdc74d | 621 | %endif |
fa10eb2c | 622 | |
6602659b MB |
623 | %clean |
624 | rm -rf $RPM_BUILD_ROOT | |
625 | ||
626 | %post -p /sbin/ldconfig | |
627 | %postun -p /sbin/ldconfig | |
628 | ||
771cd1b7 JB |
629 | %post btrfs -p /sbin/ldconfig |
630 | %postun btrfs -p /sbin/ldconfig | |
6602659b | 631 | |
771cd1b7 JB |
632 | %post crypto -p /sbin/ldconfig |
633 | %postun crypto -p /sbin/ldconfig | |
6602659b | 634 | |
771cd1b7 JB |
635 | %post dm -p /sbin/ldconfig |
636 | %postun dm -p /sbin/ldconfig | |
6602659b | 637 | |
771cd1b7 JB |
638 | %post fs -p /sbin/ldconfig |
639 | %postun fs -p /sbin/ldconfig | |
6602659b | 640 | |
771cd1b7 JB |
641 | %post loop -p /sbin/ldconfig |
642 | %postun loop -p /sbin/ldconfig | |
6602659b | 643 | |
771cd1b7 JB |
644 | %post lvm -p /sbin/ldconfig |
645 | %postun lvm -p /sbin/ldconfig | |
6602659b | 646 | |
771cd1b7 JB |
647 | %post lvm-dbus -p /sbin/ldconfig |
648 | %postun lvm-dbus -p /sbin/ldconfig | |
6602659b | 649 | |
771cd1b7 JB |
650 | %post mdraid -p /sbin/ldconfig |
651 | %postun mdraid -p /sbin/ldconfig | |
6602659b | 652 | |
771cd1b7 JB |
653 | %post mpath -p /sbin/ldconfig |
654 | %postun mpath -p /sbin/ldconfig | |
6602659b | 655 | |
771cd1b7 JB |
656 | %post nvdimm -p /sbin/ldconfig |
657 | %postun nvdimm -p /sbin/ldconfig | |
c87cf6bf | 658 | |
d4cdc74d JP |
659 | %post nvme -p /sbin/ldconfig |
660 | %postun nvme -p /sbin/ldconfig | |
661 | ||
771cd1b7 JB |
662 | %post part -p /sbin/ldconfig |
663 | %postun part -p /sbin/ldconfig | |
6602659b | 664 | |
b1339f52 JB |
665 | %post s390 -p /sbin/ldconfig |
666 | %postun s390 -p /sbin/ldconfig | |
667 | ||
771cd1b7 JB |
668 | %post swap -p /sbin/ldconfig |
669 | %postun swap -p /sbin/ldconfig | |
6602659b MB |
670 | |
671 | %files | |
672 | %defattr(644,root,root,755) | |
6602659b | 673 | %attr(755,root,root) %{_libdir}/libbd_utils.so.*.*.* |
d4cdc74d | 674 | %attr(755,root,root) %ghost %{_libdir}/libbd_utils.so.3 |
6602659b | 675 | %attr(755,root,root) %{_libdir}/libblockdev.so.*.*.* |
d4cdc74d | 676 | %attr(755,root,root) %ghost %{_libdir}/libblockdev.so.3 |
6602659b MB |
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 | |
d4cdc74d | 680 | %{_libdir}/girepository-1.0/BlockDev-3.0.typelib |
6602659b MB |
681 | |
682 | %files devel | |
683 | %defattr(644,root,root,755) | |
6602659b MB |
684 | %attr(755,root,root) %{_libdir}/libbd_utils.so |
685 | %attr(755,root,root) %{_libdir}/libblockdev.so | |
911bb753 JB |
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 | |
d4cdc74d | 692 | %{_includedir}/blockdev/logging.h |
911bb753 JB |
693 | %{_includedir}/blockdev/module.h |
694 | %{_includedir}/blockdev/plugins.h | |
695 | %{_includedir}/blockdev/sizes.h | |
696 | %{_includedir}/blockdev/utils.h | |
d4cdc74d | 697 | %{_datadir}/gir-1.0/BlockDev-3.0.gir |
6602659b MB |
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.*.*.* | |
d4cdc74d | 710 | %attr(755,root,root) %ghost %{_libdir}/libbd_btrfs.so.3 |
6602659b | 711 | |
911bb753 JB |
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 | ||
6602659b MB |
717 | %files crypto |
718 | %defattr(644,root,root,755) | |
719 | %attr(755,root,root) %{_libdir}/libbd_crypto.so.*.*.* | |
d4cdc74d | 720 | %attr(755,root,root) %ghost %{_libdir}/libbd_crypto.so.3 |
6602659b | 721 | |
911bb753 JB |
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 | ||
6602659b MB |
727 | %files dm |
728 | %defattr(644,root,root,755) | |
729 | %attr(755,root,root) %{_libdir}/libbd_dm.so.*.*.* | |
d4cdc74d | 730 | %attr(755,root,root) %ghost %{_libdir}/libbd_dm.so.3 |
6602659b | 731 | |
911bb753 JB |
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 | ||
6602659b MB |
737 | %files fs |
738 | %defattr(644,root,root,755) | |
739 | %attr(755,root,root) %{_libdir}/libbd_fs.so.*.*.* | |
d4cdc74d | 740 | %attr(755,root,root) %ghost %{_libdir}/libbd_fs.so.3 |
6602659b | 741 | |
911bb753 JB |
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 | ||
6602659b MB |
748 | %files loop |
749 | %defattr(644,root,root,755) | |
750 | %attr(755,root,root) %{_libdir}/libbd_loop.so.*.*.* | |
d4cdc74d | 751 | %attr(755,root,root) %ghost %{_libdir}/libbd_loop.so.3 |
6602659b | 752 | |
911bb753 JB |
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 | ||
6602659b MB |
758 | %files lvm |
759 | %defattr(644,root,root,755) | |
760 | %attr(755,root,root) %{_libdir}/libbd_lvm.so.*.*.* | |
d4cdc74d | 761 | %attr(755,root,root) %ghost %{_libdir}/libbd_lvm.so.3 |
6602659b | 762 | |
911bb753 JB |
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 | ||
6602659b MB |
768 | %files lvm-dbus |
769 | %defattr(644,root,root,755) | |
770 | %attr(755,root,root) %{_libdir}/libbd_lvm-dbus.so.*.*.* | |
d4cdc74d | 771 | %attr(755,root,root) %ghost %{_libdir}/libbd_lvm-dbus.so.3 |
6602659b MB |
772 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libblockdev/conf.d/10-lvm-dbus.cfg |
773 | ||
911bb753 JB |
774 | %files lvm-dbus-devel |
775 | %defattr(644,root,root,755) | |
776 | %attr(755,root,root) %{_libdir}/libbd_lvm-dbus.so | |
777 | ||
6602659b MB |
778 | %files mdraid |
779 | %defattr(644,root,root,755) | |
780 | %attr(755,root,root) %{_libdir}/libbd_mdraid.so.*.*.* | |
d4cdc74d | 781 | %attr(755,root,root) %ghost %{_libdir}/libbd_mdraid.so.3 |
6602659b | 782 | |
911bb753 JB |
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 | ||
6602659b MB |
788 | %files mpath |
789 | %defattr(644,root,root,755) | |
790 | %attr(755,root,root) %{_libdir}/libbd_mpath.so.*.*.* | |
d4cdc74d | 791 | %attr(755,root,root) %ghost %{_libdir}/libbd_mpath.so.3 |
6602659b | 792 | |
911bb753 JB |
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 | ||
c87cf6bf AG |
798 | %files nvdimm |
799 | %defattr(644,root,root,755) | |
800 | %attr(755,root,root) %{_libdir}/libbd_nvdimm.so.*.*.* | |
d4cdc74d | 801 | %attr(755,root,root) %ghost %{_libdir}/libbd_nvdimm.so.3 |
c87cf6bf | 802 | |
911bb753 JB |
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 | ||
d4cdc74d JP |
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 | ||
6602659b MB |
818 | %files part |
819 | %defattr(644,root,root,755) | |
820 | %attr(755,root,root) %{_libdir}/libbd_part.so.*.*.* | |
d4cdc74d | 821 | %attr(755,root,root) %ghost %{_libdir}/libbd_part.so.3 |
6602659b | 822 | |
911bb753 JB |
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 | ||
b1339f52 JB |
828 | %ifarch s390 s390x |
829 | %files s390 | |
830 | %defattr(644,root,root,755) | |
831 | %attr(755,root,root) %{_libdir}/libbd_s390.so.*.*.* | |
d4cdc74d | 832 | %attr(755,root,root) %ghost %{_libdir}/libbd_s390.so.3 |
b1339f52 JB |
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 | ||
6602659b MB |
840 | %files swap |
841 | %defattr(644,root,root,755) | |
842 | %attr(755,root,root) %{_libdir}/libbd_swap.so.*.*.* | |
d4cdc74d | 843 | %attr(755,root,root) %ghost %{_libdir}/libbd_swap.so.3 |
6602659b | 844 | |
911bb753 JB |
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 | ||
6602659b MB |
850 | %files plugins |
851 | %defattr(644,root,root,755) | |
852 | ||
d4cdc74d | 853 | %files tools |
6602659b | 854 | %defattr(644,root,root,755) |
d4cdc74d JP |
855 | %attr(755,root,root) %{_bindir}/lvm-cache-stats |
856 | %attr(755,root,root) %{_bindir}/vfat-resize | |
6602659b | 857 | |
1b848f1f | 858 | %if %{with python3} |
6602659b MB |
859 | %files -n python3-blockdev |
860 | %defattr(644,root,root,755) | |
861 | %{py3_sitedir}/gi/overrides/BlockDev.py | |
fa10eb2c | 862 | %{py3_sitedir}/gi/overrides/__pycache__/BlockDev.cpython-*.py[co] |
1b848f1f | 863 | %endif |