]>
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 |
cdf2eea8 | 10 | Version: 2.28 |
336e438f | 11 | Release: 1 |
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 | |
cdf2eea8 | 15 | # Source0-md5: 6476e5967753ee03d8e65f4d7837a4b6 |
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 | ||
b1339f52 JB |
491 | %package s390 |
492 | Summary: The s390 plugin for the libblockdev library | |
493 | Summary(pl.UTF-8): Wtyczka s390 do biblioteki libblockdev | |
494 | Group: Libraries | |
495 | Requires: %{name} = %{version}-%{release} | |
496 | # dasdfmt command (https://github.com/ibm-s390-linux/s390-tools) | |
497 | #Requires: s390-tools | |
498 | ||
499 | %description s390 | |
500 | The libblockdev library plugin providing the functionality related to | |
501 | s390 devices. | |
502 | ||
503 | %description s390 -l pl.UTF-8 | |
504 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
505 | związaną z urządzeniami s390. | |
506 | ||
507 | %package s390-devel | |
508 | Summary: Header file for libblockdev s390 plugin | |
509 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki s390 do biblioteki libblockdev | |
510 | Group: Development/Libraries | |
511 | Requires: %{name}-devel = %{version}-%{release} | |
512 | Requires: %{name}-s390 = %{version}-%{release} | |
513 | ||
514 | %description s390-devel | |
515 | Header file for libblockdev s390 plugin. | |
516 | ||
517 | %description s390-devel -l pl.UTF-8 | |
518 | Plik nagłówkowy wtyczki s390 do biblioteki libblockdev. | |
519 | ||
6602659b MB |
520 | %package swap |
521 | Summary: The swap plugin for the libblockdev library | |
771cd1b7 | 522 | Summary(pl.UTF-8): Wtyczka swap do biblioteki libblockdev |
6602659b MB |
523 | Group: Libraries |
524 | Requires: %{name} = %{version}-%{release} | |
1b848f1f | 525 | Requires: libblkid >= 2.27.0 |
911bb753 JB |
526 | # mkswap, swaplabel commands |
527 | Requires: util-linux >= 2.23.2 | |
6602659b MB |
528 | |
529 | %description swap | |
530 | The libblockdev library plugin providing the functionality related to | |
531 | swap devices. | |
532 | ||
771cd1b7 JB |
533 | %description swap -l pl.UTF-8 |
534 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
535 | związaną z urządzeniami wymiany. | |
536 | ||
911bb753 JB |
537 | %package swap-devel |
538 | Summary: Header file for libblockdev swap plugin | |
539 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki swap do biblioteki libblockdev | |
540 | Group: Development/Libraries | |
541 | Requires: %{name}-devel = %{version}-%{release} | |
542 | Requires: %{name}-swap = %{version}-%{release} | |
543 | ||
544 | %description swap-devel | |
545 | Header file for libblockdev swap plugin. | |
546 | ||
547 | %description swap-devel -l pl.UTF-8 | |
548 | Plik nagłówkowy wtyczki swap do biblioteki libblockdev. | |
549 | ||
c87cf6bf AG |
550 | %package vdo |
551 | Summary: The vdo plugin for the libblockdev library | |
771cd1b7 | 552 | Summary(pl.UTF-8): Wtyczka vdo do biblioteki libblockdev |
c87cf6bf AG |
553 | Group: Libraries |
554 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 555 | Requires: libbytesize >= 0.1 |
911bb753 JB |
556 | # vdo command |
557 | Requires: vdo | |
558 | Requires: yaml >= 0.1 | |
c87cf6bf AG |
559 | |
560 | %description vdo | |
561 | The libblockdev library plugin providing the functionality related to | |
562 | vdo devices. | |
563 | ||
771cd1b7 JB |
564 | %description vdo -l pl.UTF-8 |
565 | Wtyczka biblioteki libblockdev zapewniająca funkcjonalność | |
566 | związaną z urządzeniami vdo. | |
567 | ||
911bb753 JB |
568 | %package vdo-devel |
569 | Summary: Header file for libblockdev vdo plugin | |
570 | Summary(pl.UTF-8): Plik nagłówkowy wtyczki vdo do biblioteki libblockdev | |
571 | Group: Development/Libraries | |
572 | Requires: %{name}-devel = %{version}-%{release} | |
573 | Requires: %{name}-vdo = %{version}-%{release} | |
574 | ||
575 | %description vdo-devel | |
576 | Header file for libblockdev vdo plugin. | |
577 | ||
578 | %description vdo-devel -l pl.UTF-8 | |
579 | Plik nagłówkowy wtyczki vdo do biblioteki libblockdev. | |
580 | ||
6602659b MB |
581 | %package plugins |
582 | Summary: Meta-package that pulls all the libblockdev plugins as dependencies | |
771cd1b7 | 583 | Summary(pl.UTF-8): Metapakiet instalujący przez zależności wszystkie wtyczki libblockdev |
6602659b MB |
584 | Group: Libraries |
585 | Requires: %{name}-btrfs = %{version}-%{release} | |
586 | Requires: %{name}-crypto = %{version}-%{release} | |
587 | Requires: %{name}-dm = %{version}-%{release} | |
588 | Requires: %{name}-fs = %{version}-%{release} | |
589 | Requires: %{name}-kbd = %{version}-%{release} | |
590 | Requires: %{name}-loop = %{version}-%{release} | |
591 | Requires: %{name}-lvm = %{version}-%{release} | |
592 | Requires: %{name}-lvm-dbus = %{version}-%{release} | |
593 | Requires: %{name}-mdraid = %{version}-%{release} | |
594 | Requires: %{name}-mpath = %{version}-%{release} | |
86448555 | 595 | Requires: %{name}-nvdimm = %{version}-%{release} |
6602659b | 596 | Requires: %{name}-part = %{version}-%{release} |
b1339f52 JB |
597 | %ifarch s390 s390x |
598 | Requires: %{name}-s390 = %{version}-%{release} | |
599 | %endif | |
6602659b | 600 | Requires: %{name}-swap = %{version}-%{release} |
86448555 | 601 | Requires: %{name}-vdo = %{version}-%{release} |
6602659b MB |
602 | |
603 | %description plugins | |
604 | A meta-package that pulls all the libblockdev plugins as dependencies. | |
605 | ||
771cd1b7 JB |
606 | %description plugins -l pl.UTF-8 |
607 | Metapakiet instalujący przez zależności wszystkie wtyczki libblockdev. | |
608 | ||
6602659b | 609 | %package -n python-blockdev |
771cd1b7 JB |
610 | Summary: Python 2 bindings for libblockdev |
611 | Summary(pl.UTF-8): Wiązania Pythona 2 do libblockdev | |
6602659b MB |
612 | Group: Libraries/Python |
613 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 614 | Requires: python-pygobject3 >= 3 |
6602659b MB |
615 | |
616 | %description -n python-blockdev | |
771cd1b7 JB |
617 | This package contains Python 2 bindings for libblockdev. |
618 | ||
619 | %description -n python-blockdev -l pl.UTF-8 | |
620 | Ten pakiet zawiera wiązania Pythona 2 do libblockdev. | |
6602659b MB |
621 | |
622 | %package -n python3-blockdev | |
911bb753 JB |
623 | Summary: Python 3 bindings for libblockdev |
624 | Summary(pl.UTF-8): Wiązania Pythona 3 do libblockdev | |
6602659b MB |
625 | Group: Libraries/Python |
626 | Requires: %{name} = %{version}-%{release} | |
771cd1b7 | 627 | Requires: python3-pygobject3 >= 3 |
6602659b MB |
628 | |
629 | %description -n python3-blockdev | |
630 | This package contains Python 3 bindings for libblockdev. | |
631 | ||
771cd1b7 JB |
632 | %description -n python3-blockdev -l pl.UTF-8 |
633 | Ten pakiet zawiera wiązania Pythona 3 do libblockdev. | |
634 | ||
6602659b MB |
635 | %prep |
636 | %setup -q | |
637 | ||
638 | %build | |
639 | %{__libtoolize} | |
640 | %{__aclocal} -I m4 | |
641 | %{__autoconf} | |
642 | %{__automake} | |
643 | %configure \ | |
1b848f1f JB |
644 | %{__with_without apidocs gtk-doc} \ |
645 | %{!?with_python2:--without-python2} \ | |
646 | %{!?with_python3:--without-python3} | |
647 | ||
6602659b MB |
648 | %{__make} |
649 | ||
650 | %install | |
651 | rm -rf $RPM_BUILD_ROOT | |
652 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} | |
653 | ||
654 | %{__make} install \ | |
655 | DESTDIR=$RPM_BUILD_ROOT | |
656 | ||
657 | %if %{with apidocs} | |
771cd1b7 | 658 | %{__mv} $RPM_BUILD_ROOT{%{_datadir}/gtk-doc/html/libblockdev,%{_gtkdocdir}} |
6602659b MB |
659 | %endif |
660 | ||
771cd1b7 | 661 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
6602659b MB |
662 | |
663 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
664 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
665 | %py_postclean | |
666 | ||
fa10eb2c JB |
667 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
668 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
669 | ||
6602659b MB |
670 | %clean |
671 | rm -rf $RPM_BUILD_ROOT | |
672 | ||
673 | %post -p /sbin/ldconfig | |
674 | %postun -p /sbin/ldconfig | |
675 | ||
771cd1b7 JB |
676 | %post btrfs -p /sbin/ldconfig |
677 | %postun btrfs -p /sbin/ldconfig | |
6602659b | 678 | |
771cd1b7 JB |
679 | %post crypto -p /sbin/ldconfig |
680 | %postun crypto -p /sbin/ldconfig | |
6602659b | 681 | |
771cd1b7 JB |
682 | %post dm -p /sbin/ldconfig |
683 | %postun dm -p /sbin/ldconfig | |
6602659b | 684 | |
771cd1b7 JB |
685 | %post fs -p /sbin/ldconfig |
686 | %postun fs -p /sbin/ldconfig | |
6602659b | 687 | |
771cd1b7 JB |
688 | %post kbd -p /sbin/ldconfig |
689 | %postun kbd -p /sbin/ldconfig | |
6602659b | 690 | |
771cd1b7 JB |
691 | %post loop -p /sbin/ldconfig |
692 | %postun loop -p /sbin/ldconfig | |
6602659b | 693 | |
771cd1b7 JB |
694 | %post lvm -p /sbin/ldconfig |
695 | %postun lvm -p /sbin/ldconfig | |
6602659b | 696 | |
771cd1b7 JB |
697 | %post lvm-dbus -p /sbin/ldconfig |
698 | %postun lvm-dbus -p /sbin/ldconfig | |
6602659b | 699 | |
771cd1b7 JB |
700 | %post mdraid -p /sbin/ldconfig |
701 | %postun mdraid -p /sbin/ldconfig | |
6602659b | 702 | |
771cd1b7 JB |
703 | %post mpath -p /sbin/ldconfig |
704 | %postun mpath -p /sbin/ldconfig | |
6602659b | 705 | |
771cd1b7 JB |
706 | %post nvdimm -p /sbin/ldconfig |
707 | %postun nvdimm -p /sbin/ldconfig | |
c87cf6bf | 708 | |
771cd1b7 JB |
709 | %post part -p /sbin/ldconfig |
710 | %postun part -p /sbin/ldconfig | |
6602659b | 711 | |
911bb753 JB |
712 | %post part-err -p /sbin/ldconfig |
713 | %postun part-err -p /sbin/ldconfig | |
714 | ||
b1339f52 JB |
715 | %post s390 -p /sbin/ldconfig |
716 | %postun s390 -p /sbin/ldconfig | |
717 | ||
771cd1b7 JB |
718 | %post swap -p /sbin/ldconfig |
719 | %postun swap -p /sbin/ldconfig | |
6602659b | 720 | |
771cd1b7 JB |
721 | %post vdo -p /sbin/ldconfig |
722 | %postun vdo -p /sbin/ldconfig | |
c87cf6bf | 723 | |
6602659b MB |
724 | %files |
725 | %defattr(644,root,root,755) | |
c87cf6bf | 726 | %doc features.rst specs.rst |
6602659b MB |
727 | %attr(755,root,root) %{_libdir}/libbd_utils.so.*.*.* |
728 | %attr(755,root,root) %ghost %{_libdir}/libbd_utils.so.2 | |
729 | %attr(755,root,root) %{_libdir}/libblockdev.so.*.*.* | |
730 | %attr(755,root,root) %ghost %{_libdir}/libblockdev.so.2 | |
731 | %dir %{_sysconfdir}/libblockdev | |
732 | %dir %{_sysconfdir}/libblockdev/conf.d | |
733 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libblockdev/conf.d/00-default.cfg | |
734 | %{_libdir}/girepository-1.0/BlockDev-2.0.typelib | |
735 | ||
736 | %files devel | |
737 | %defattr(644,root,root,755) | |
6602659b MB |
738 | %attr(755,root,root) %{_libdir}/libbd_utils.so |
739 | %attr(755,root,root) %{_libdir}/libblockdev.so | |
911bb753 JB |
740 | %dir %{_includedir}/blockdev |
741 | %{_includedir}/blockdev/blockdev.h | |
742 | %{_includedir}/blockdev/dbus.h | |
743 | %{_includedir}/blockdev/dev_utils.h | |
744 | %{_includedir}/blockdev/exec.h | |
745 | %{_includedir}/blockdev/extra_arg.h | |
746 | %{_includedir}/blockdev/module.h | |
747 | %{_includedir}/blockdev/plugins.h | |
748 | %{_includedir}/blockdev/sizes.h | |
749 | %{_includedir}/blockdev/utils.h | |
6602659b MB |
750 | %{_datadir}/gir-1.0/BlockDev-2.0.gir |
751 | %{_pkgconfigdir}/blockdev.pc | |
752 | %{_pkgconfigdir}/blockdev-utils.pc | |
753 | ||
754 | %if %{with apidocs} | |
755 | %files apidocs | |
756 | %defattr(644,root,root,755) | |
757 | %{_gtkdocdir}/libblockdev | |
758 | %endif | |
759 | ||
760 | %files btrfs | |
761 | %defattr(644,root,root,755) | |
762 | %attr(755,root,root) %{_libdir}/libbd_btrfs.so.*.*.* | |
763 | %attr(755,root,root) %ghost %{_libdir}/libbd_btrfs.so.2 | |
764 | ||
911bb753 JB |
765 | %files btrfs-devel |
766 | %defattr(644,root,root,755) | |
767 | %attr(755,root,root) %{_libdir}/libbd_btrfs.so | |
768 | %{_includedir}/blockdev/btrfs.h | |
769 | ||
6602659b MB |
770 | %files crypto |
771 | %defattr(644,root,root,755) | |
772 | %attr(755,root,root) %{_libdir}/libbd_crypto.so.*.*.* | |
773 | %attr(755,root,root) %ghost %{_libdir}/libbd_crypto.so.2 | |
774 | ||
911bb753 JB |
775 | %files crypto-devel |
776 | %defattr(644,root,root,755) | |
777 | %attr(755,root,root) %{_libdir}/libbd_crypto.so | |
778 | %{_includedir}/blockdev/crypto.h | |
779 | ||
6602659b MB |
780 | %files dm |
781 | %defattr(644,root,root,755) | |
782 | %attr(755,root,root) %{_libdir}/libbd_dm.so.*.*.* | |
783 | %attr(755,root,root) %ghost %{_libdir}/libbd_dm.so.2 | |
784 | ||
911bb753 JB |
785 | %files dm-devel |
786 | %defattr(644,root,root,755) | |
787 | %attr(755,root,root) %{_libdir}/libbd_dm.so | |
788 | %{_includedir}/blockdev/dm.h | |
789 | ||
6602659b MB |
790 | %files fs |
791 | %defattr(644,root,root,755) | |
792 | %attr(755,root,root) %{_libdir}/libbd_fs.so.*.*.* | |
793 | %attr(755,root,root) %ghost %{_libdir}/libbd_fs.so.2 | |
794 | ||
911bb753 JB |
795 | %files fs-devel |
796 | %defattr(644,root,root,755) | |
797 | %attr(755,root,root) %{_libdir}/libbd_fs.so | |
798 | %{_includedir}/blockdev/fs.h | |
799 | %{_includedir}/blockdev/fs | |
800 | ||
6602659b MB |
801 | %files kbd |
802 | %defattr(644,root,root,755) | |
803 | %attr(755,root,root) %{_libdir}/libbd_kbd.so.*.*.* | |
804 | %attr(755,root,root) %ghost %{_libdir}/libbd_kbd.so.2 | |
805 | ||
911bb753 JB |
806 | %files kbd-devel |
807 | %defattr(644,root,root,755) | |
808 | %attr(755,root,root) %{_libdir}/libbd_kbd.so | |
809 | %{_includedir}/blockdev/kbd.h | |
810 | ||
6602659b MB |
811 | %files loop |
812 | %defattr(644,root,root,755) | |
813 | %attr(755,root,root) %{_libdir}/libbd_loop.so.*.*.* | |
814 | %attr(755,root,root) %ghost %{_libdir}/libbd_loop.so.2 | |
815 | ||
911bb753 JB |
816 | %files loop-devel |
817 | %defattr(644,root,root,755) | |
818 | %attr(755,root,root) %{_libdir}/libbd_loop.so | |
819 | %{_includedir}/blockdev/loop.h | |
820 | ||
6602659b MB |
821 | %files lvm |
822 | %defattr(644,root,root,755) | |
771cd1b7 | 823 | %attr(755,root,root) %{_bindir}/lvm-cache-stats |
6602659b MB |
824 | %attr(755,root,root) %{_libdir}/libbd_lvm.so.*.*.* |
825 | %attr(755,root,root) %ghost %{_libdir}/libbd_lvm.so.2 | |
826 | ||
911bb753 JB |
827 | %files lvm-devel |
828 | %defattr(644,root,root,755) | |
829 | %attr(755,root,root) %{_libdir}/libbd_lvm.so | |
830 | %{_includedir}/blockdev/lvm.h | |
831 | ||
6602659b MB |
832 | %files lvm-dbus |
833 | %defattr(644,root,root,755) | |
834 | %attr(755,root,root) %{_libdir}/libbd_lvm-dbus.so.*.*.* | |
835 | %attr(755,root,root) %ghost %{_libdir}/libbd_lvm-dbus.so.2 | |
836 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/libblockdev/conf.d/10-lvm-dbus.cfg | |
837 | ||
911bb753 JB |
838 | %files lvm-dbus-devel |
839 | %defattr(644,root,root,755) | |
840 | %attr(755,root,root) %{_libdir}/libbd_lvm-dbus.so | |
841 | ||
6602659b MB |
842 | %files mdraid |
843 | %defattr(644,root,root,755) | |
844 | %attr(755,root,root) %{_libdir}/libbd_mdraid.so.*.*.* | |
845 | %attr(755,root,root) %ghost %{_libdir}/libbd_mdraid.so.2 | |
846 | ||
911bb753 JB |
847 | %files mdraid-devel |
848 | %defattr(644,root,root,755) | |
849 | %attr(755,root,root) %{_libdir}/libbd_mdraid.so | |
850 | %{_includedir}/blockdev/mdraid.h | |
851 | ||
6602659b MB |
852 | %files mpath |
853 | %defattr(644,root,root,755) | |
854 | %attr(755,root,root) %{_libdir}/libbd_mpath.so.*.*.* | |
855 | %attr(755,root,root) %ghost %{_libdir}/libbd_mpath.so.2 | |
856 | ||
911bb753 JB |
857 | %files mpath-devel |
858 | %defattr(644,root,root,755) | |
859 | %attr(755,root,root) %{_libdir}/libbd_mpath.so | |
860 | %{_includedir}/blockdev/mpath.h | |
861 | ||
c87cf6bf AG |
862 | %files nvdimm |
863 | %defattr(644,root,root,755) | |
864 | %attr(755,root,root) %{_libdir}/libbd_nvdimm.so.*.*.* | |
865 | %attr(755,root,root) %ghost %{_libdir}/libbd_nvdimm.so.2 | |
866 | ||
911bb753 JB |
867 | %files nvdimm-devel |
868 | %defattr(644,root,root,755) | |
869 | %attr(755,root,root) %{_libdir}/libbd_nvdimm.so | |
870 | %{_includedir}/blockdev/nvdimm.h | |
871 | ||
6602659b MB |
872 | %files part |
873 | %defattr(644,root,root,755) | |
874 | %attr(755,root,root) %{_libdir}/libbd_part.so.*.*.* | |
875 | %attr(755,root,root) %ghost %{_libdir}/libbd_part.so.2 | |
876 | ||
911bb753 JB |
877 | %files part-devel |
878 | %defattr(644,root,root,755) | |
879 | %attr(755,root,root) %{_libdir}/libbd_part.so | |
880 | %{_includedir}/blockdev/part.h | |
881 | ||
882 | %files part-err | |
883 | %defattr(644,root,root,755) | |
884 | %attr(755,root,root) %{_libdir}/libbd_part_err.so.*.*.* | |
885 | %attr(755,root,root) %ghost %{_libdir}/libbd_part_err.so.2 | |
886 | ||
887 | %files part-err-devel | |
888 | %defattr(644,root,root,755) | |
889 | %attr(755,root,root) %{_libdir}/libbd_part_err.so | |
890 | ||
b1339f52 JB |
891 | %ifarch s390 s390x |
892 | %files s390 | |
893 | %defattr(644,root,root,755) | |
894 | %attr(755,root,root) %{_libdir}/libbd_s390.so.*.*.* | |
895 | %attr(755,root,root) %ghost %{_libdir}/libbd_s390.so.2 | |
896 | ||
897 | %files s390-devel | |
898 | %defattr(644,root,root,755) | |
899 | %attr(755,root,root) %{_libdir}/libbd_s390.so | |
900 | %{_includedir}/blockdev/s390.h | |
901 | %endif | |
902 | ||
6602659b MB |
903 | %files swap |
904 | %defattr(644,root,root,755) | |
905 | %attr(755,root,root) %{_libdir}/libbd_swap.so.*.*.* | |
906 | %attr(755,root,root) %ghost %{_libdir}/libbd_swap.so.2 | |
907 | ||
911bb753 JB |
908 | %files swap-devel |
909 | %defattr(644,root,root,755) | |
910 | %attr(755,root,root) %{_libdir}/libbd_swap.so | |
911 | %{_includedir}/blockdev/swap.h | |
912 | ||
c87cf6bf AG |
913 | %files vdo |
914 | %defattr(644,root,root,755) | |
915 | %attr(755,root,root) %{_libdir}/libbd_vdo.so.*.*.* | |
916 | %attr(755,root,root) %ghost %{_libdir}/libbd_vdo.so.2 | |
917 | ||
911bb753 JB |
918 | %files vdo-devel |
919 | %defattr(644,root,root,755) | |
920 | %attr(755,root,root) %{_libdir}/libbd_vdo.so | |
921 | %{_includedir}/blockdev/vdo.h | |
922 | ||
6602659b MB |
923 | %files plugins |
924 | %defattr(644,root,root,755) | |
925 | ||
1b848f1f | 926 | %if %{with python2} |
6602659b MB |
927 | %files -n python-blockdev |
928 | %defattr(644,root,root,755) | |
929 | %{py_sitedir}/gi/overrides/BlockDev.py[co] | |
1b848f1f | 930 | %endif |
6602659b | 931 | |
1b848f1f | 932 | %if %{with python3} |
6602659b MB |
933 | %files -n python3-blockdev |
934 | %defattr(644,root,root,755) | |
935 | %{py3_sitedir}/gi/overrides/BlockDev.py | |
fa10eb2c | 936 | %{py3_sitedir}/gi/overrides/__pycache__/BlockDev.cpython-*.py[co] |
1b848f1f | 937 | %endif |