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