commit cd84df5370351eff85f0579b9d11be9fcceaeef8cb47db39e368ccd25110c28f Author: Jan Engelhardt Date: Thu Jan 18 23:23:24 2018 +0000 Accepting request 564448 from home:luc14n0:Factory udisks2's new dependency. OBS-URL: https://build.opensuse.org/request/show/564448 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libblockdev-2.14.tar.gz b/libblockdev-2.14.tar.gz new file mode 100644 index 0000000..448c290 --- /dev/null +++ b/libblockdev-2.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:423ef4f0093c0a11cc3afd1a90e50e7e93b807a91899ece42f358ffa7aa02486 +size 749672 diff --git a/libblockdev.changes b/libblockdev.changes new file mode 100644 index 0000000..42bdb0a --- /dev/null +++ b/libblockdev.changes @@ -0,0 +1,13 @@ +------------------------------------------------------------------- +Tue Nov 28 22:38:39 UTC 2017 - luc14n0@linuxmail.org + +- Initial package, version 2.14: + * Features: + - Added function to get DM device subsystem. + - Support for the NTFS file system. + - pkg-config definitions improvements. + * Fixes: + - Fix BSSize memory leaks. + - Fixes for issues discovered by coverity. + - Support for the 'Legacy boot' GPT flag. + diff --git a/libblockdev.spec b/libblockdev.spec new file mode 100644 index 0000000..06317ba --- /dev/null +++ b/libblockdev.spec @@ -0,0 +1,711 @@ +# +# spec file for package libblockdev +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define somajor 2 +%define libname %{name}%{somajor} +%define bcachetools_version 1.0.8 +%define lvm2_dbusd_version 2.02.156 +%define libbd_utils_version 0.11 +%define libbd_utils_lvm_dbus_version 1.4 + +Name: libblockdev +Summary: A library for low-level manipulation with block devices +License: LGPL-2.1 +Group: Development/Libraries/C and C++ +Version: 2.14 +Release: 0 +Url: https://github.com/storaged-project/libblockdev +Source0: https://github.com/storaged-project/libblockdev/releases/download/2.14-1/libblockdev-2.14.tar.gz +BuildRequires: dmraid-devel +BuildRequires: gobject-introspection-devel >= 1.3.0 +BuildRequires: gtk-doc +BuildRequires: python-devel +BuildRequires: python3-devel +%ifarch s390 s390x +BuildRequires: s390utils-devel +%endif +BuildRequires: volume_key-devel +BuildRequires: pkgconfig(blkid) >= 2.23.0 +BuildRequires: pkgconfig(bytesize) >= 0.1 +BuildRequires: pkgconfig(devmapper) >= 1.02.93 +BuildRequires: pkgconfig(gio-2.0) >= 2.42.2 +BuildRequires: pkgconfig(glib-2.0) >= 2.42.2 +BuildRequires: pkgconfig(gobject-2.0) >= 2.42.2 +BuildRequires: pkgconfig(libcryptsetup) >= 1.6.7 +BuildRequires: pkgconfig(libkmod) >= 19 +BuildRequires: pkgconfig(libparted) >= 3.1 +BuildRequires: pkgconfig(libudev) >= 216 +BuildRequires: pkgconfig(mount) >= 2.23.0 +BuildRequires: pkgconfig(nss) >= 3.18.0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +# Needed for the escrow tests in tests/crypto_test.py, but not used to build +# BuildRequires: volume_key +# BuildRequires: nss-tools +# Needed for python 2 vs. 3 compatibility in the tests, but not used to build +# BuildRequires: python2-six + +%description +The LibBlockDev is a C library with GObject introspection support that can be +used for doing low-level operations with block devices like setting up LVM, +BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,...) and serves as +a thin wrapper around its plugins' functionality. All the plugins, however, can +be used as standalone libraries. One of the core principles of LibBlockDev is +that it is stateless from the storage configuration's perspective (e.g. it has +no information about VGs when creating an LV). + +%package -n %{libname} +Summary: A library for low-level manipulation with block devices +Group: System/Libraries +Provides: %{name} = %{version} + +%description -n %{libname} +The LibBlockDev is a C library with GObject introspection support that can be +used for doing low-level operations with block devices like setting up LVM, +BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,...) and serves as +a thin wrapper around its plugins' functionality. All the plugins, however, can +be used as standalone libraries. One of the core principles of LibBlockDev is +that it is stateless from the storage configuration's perspective (e.g. it has +no information about VGs when creating an LV). + +%package -n typelib-1_0-BlockDev-2_0 +Summary: Introspection bindings for the LibBlockDev library +Group: System/Libraries + +%description -n typelib-1_0-BlockDev-2_0 +This package provides the GObject Introspection bindings for LibBlockDev, which +provides low-level manipulation of block devices. + +%package devel +Summary: Development files for the LibBlockDev library +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Requires: glib2-devel + +%description devel +This package provides header files, pkg-config modules and API documentation needed for +development with the LibBlockDev library. + +%package -n python2-%{name} +Summary: Python2 gobject-introspection bindings for the LibBlockDev library +Group: Development/Libraries/Python +Requires: %{name} = %{version} +Requires: python2-gobject +%{?python_provide:%python_provide python2-libblockdev} + +%description -n python2-%{name} +This package contains enhancements to the gobject-introspection bindings for +LibBlockDev in Python2. + +%package -n python3-%{name} +Summary: Python3 gobject-introspection bindings for the LibBlockDev library +Group: Development/Libraries/Python +Requires: %{name} = %{version} +Requires: python3-gobject +%{?python_provide:%python_provide python3-libblockdev} + +%description -n python3-%{name} +This package contains enhancements to the gobject-introspection bindings for +LibBlockDev in Python3. + +%package -n libbd_utils%{somajor} +Summary: Utility functions library for the LibBlockDev library +Group: System/Libraries +Provides: libblockdev-utils = %{version} + +%description -n libbd_utils%{somajor} +The LibBlockDev-utils is a library providing utility functions used by the +LibBlockDev library and its plugins. + +%package -n libbd_utils-devel +Summary: Development files for libbd_utils +Group: Development/Libraries/C and C++ +Requires: libbd_utils%{somajor} = %{version} +Requires: glib2-devel +Provides: libblockdev-utils-devel = %{version} + +%description -n libbd_utils-devel +This package contains header files and pkg-config files needed for development +with the libbd_utils library. + +%package -n libbd_btrfs%{somajor} +Summary: The BTRFS plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Provides: libblockdev-btrfs = %{version} + +%description -n libbd_btrfs%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the BTRFS-related functionality. + +%package -n libbd_btrfs-devel +Summary: Development files for the libbd_btrfs plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_btrfs%{somajor} = %{version} +Requires: glib2-devel +Requires: libbd_utils-devel +Provides: libblockdev-btrfs-devel = %{version} + +%description -n libbd_btrfs-devel +This package contains header files and pkg-config files needed for development +with the libbd_btrfs plugin/library. + +%package -n libbd_crypto%{somajor} +Summary: The crypto plugin for the LibBlockDev library +Group: System/Libraries +Provides: libblockdev-crypto = %{version} + +%description -n libbd_crypto%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to encrypted devices (LUKS). + +%package -n libbd_crypto-devel +Summary: Development files for the libbd_crypto plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_crypto%{somajor} = %{version} +Requires: glib2-devel +Provides: libblockdev-crypto-devel = %{version} + +%description -n libbd_crypto-devel +This package contains header files and pkg-config files needed for development +with the libbd_crypto plugin/library.. + +%package -n libbd_dm%{somajor} +Summary: The Device Mapper plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: device-mapper +Requires: dmraid +Provides: libblockdev-dm = %{version} + +%description -n libbd_dm%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to Device Mapper. + +%package -n libbd_dm-devel +Summary: Development files for the libbd_dm plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_dm%{somajor} = %{version} +Requires: glib2-devel +Requires: device-mapper-devel +Requires: systemd-devel +Requires: dmraid-devel +Requires: libbd_utils-devel +Provides: libblockdev-dm-devel = %{version} + +%description -n libbd_dm-devel +This package contains header files and pkg-config files needed for development +with the libbd_dm plugin/library.. + +%package -n libbd_fs%{somajor} +Summary: The FS plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: device-mapper +Provides: libblockdev-fs = %{version} + +%description -n libbd_fs%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to operations with file systems. + +%package -n libbd_fs-devel +Summary: Development files for the libbd_fs plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_fs%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Requires: xfsprogs +Requires: dosfstools +Provides: libblockdev-fs-devel = %{version} + +%description -n libbd_fs-devel +This package contains header files and pkg-config files needed for development +with the libbd_fs plugin/library.. + +%package -n libbd_kbd%{somajor} +Summary: The KBD plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: bcache-tools >= %{bcachetools_version} +Provides: libblockdev-kbd = %{version} + +%description -n libbd_kbd%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to kernel block devices (namely zRAM and +Bcache). + +%package -n libbd_kbd-devel +Summary: Development files for the libbd_kbd plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_kbd%{somajor} = %{version} +Requires: libbd_utils-devel = %{version} +Requires: glib2-devel +Provides: libblockdev-kbd-devel = %{version} + +%description -n libbd_kbd-devel +This package contains header files and pkg-config files needed for development +with the libbd_kbd plugin/library.. + +%package -n libbd_loop%{somajor} +Summary: The loop plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Provides: libblockdev-loop = %{version} + +%description -n libbd_loop%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to loop devices. + +%package -n libbd_loop-devel +Summary: Development files for the libbd_loop plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_loop%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Provides: libblockdev-loop-devel = %{version} + +%description -n libbd_loop-devel +This package contains header files and pkg-config files needed for development +with the libbd_loop plugin/library.. + +%package -n libbd_lvm%{somajor} +Summary: The LVM plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: lvm2 +Requires: device-mapper +Provides: libblockdev-lvm = %{version} + +%description -n libbd_lvm%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the LVM-related functionality. + +%package -n libbd_lvm-devel +Summary: Development files for the libbd_lvm plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_lvm%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Provides: libblockdev-lvm-devel = %{version} + +%description -n libbd_lvm-devel +This package contains header files and pkg-config files needed for development +with the libbd_lvm plugin/library.. + +%package -n libbd_lvm-dbus%{somajor} +Summary: The LVM plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils >= %{libbd_utils_lvm_dbus_version} +Requires: lvm2-dbusd >= %{lvm2_dbusd_version} +# For thin_metadata_size +#Requires: device-mapper-persistent-data + +%description -n libbd_lvm-dbus%{somajor} +The libblockdev library plugin (and in the same time a standalone library) +providing the LVM-related functionality utilizing the LVM DBus API. + +%package -n libbd_lvm-dbus-devel +Summary: Development files for the libbd-lvm-dbus plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_lvm-dbus%{somajor} = %{version} +Requires: libbd_lvm-devel >= %{version} +Requires: libbd_utils-devel >= %{libbd_utils_lvm_dbus_version} +Requires: glib2-devel + +%description -n libbd_lvm-dbus-devel +This package contains header files and pkg-config files needed for development +with the libblockdev-lvm-dbus plugin/library. + +%package -n libbd_mdraid%{somajor} +Summary: The MD RAID plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: mdadm +Provides: libblockdev-mdraid = %{version} + +%description -n libbd_mdraid%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to MD RAID. + +%package -n libbd_mdraid-devel +Summary: Development files for the libbd_mdraid plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_mdraid%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Provides: libblockdev-mdraid-devel = %{version} + +%description -n libbd_mdraid-devel +This package contains header files and pkg-config files needed for development +with the libbd_mdraid plugin/library.. + +%package -n libbd_mpath%{somajor} +Summary: The multipath plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: device-mapper +Provides: libblockdev-mpath = %{version} + +%description -n libbd_mpath%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to multipath devices. + +%package -n libbd_mpath-devel +Summary: Development files for the libbd_mpath plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_mpath%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Provides: libblockdev-mpath-devel = %{version} + +%description -n libbd_mpath-devel +This package contains header files and pkg-config files needed for development +with the libbd_mpath plugin/library.. + +%package -n libbd_part%{somajor} +Summary: The partitioning plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: device-mapper +Requires: gdisk +Requires: util-linux +Provides: libblockdev-part = %{version} + +%description -n libbd_part%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to partitioning. + +%package -n libbd_part-devel +Summary: Development files for the libbd_part plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_part%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Provides: libblockdev-part-devel = %{version} + +%description -n libbd_part-devel +This package contains header files and pkg-config files needed for development +with the libbd_part plugin/library.. + +%package -n libbd_swap%{somajor} +Summary: The swap plugin for the LibBlockDev library +Group: System/Libraries +Requires: libbd_utils%{somajor} >= %{libbd_utils_version} +Requires: util-linux +Provides: libblockdev-swap = %{version} + +%description -n libbd_swap%{somajor} +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to swap devices. + +%package -n libbd_swap-devel +Summary: Development files for the libbd_swap plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_swap%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Provides: libblockdev-swap-devel = %{version} + +%description -n libbd_swap-devel +This package contains header files and pkg-config files needed for development +with the libbd_swap plugin/library.. + +%ifarch s390 s390x +%package -n libbd_s390%{somajor} +BuildRequires: s390utils-devel +Summary: The s390 plugin for the LibBlockDev library +Group: System/Libraries +Requires: s390utils +Provides: libblockdev-s390 = %{version} + +%description -n libbd_s390 +The LibBlockDev library plugin (and in the same time a standalone library) +providing the functionality related to s390 devices. + +%package -n libbd_s390-devel +Summary: Development files for the LibBlockDev-s390 plugin/library +Group: Development/Libraries/C and C++ +Requires: libbd_s390%{somajor} = %{version} +Requires: libbd_utils-devel +Requires: glib2-devel +Requires: s390utils-devel +Provides: libblockdev-s390-devel = %{version} + +%description -n libbd_s390-devel +This package contains header files and pkg-config files needed for development +with the libbd_s390 plugin/library. +%endif + +%prep +%setup -q + +%build +%configure \ + --disable-static \ + --enable-introspection \ + --with-bcache \ + --with-btrfs \ + --with-crypto \ + --with-dm \ + --with-fs \ + --with-gtk-doc \ + --with-kbd \ + --with-loop \ + --with-lvm \ + --with-lvm_dbus \ + --with-mdraid \ + --with-mpath \ + --with-part \ + --with-swap \ + %{nil} +%make_build + +%install +%make_install +find %{buildroot} -name "*.la" -print -type f -delete + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%post -n libbd_utils%{somajor} -p /sbin/ldconfig +%postun -n libbd_utils%{somajor} -p /sbin/ldconfig + +%post -n libbd_btrfs%{somajor} -p /sbin/ldconfig +%postun -n libbd_btrfs%{somajor} -p /sbin/ldconfig + +%post -n libbd_crypto%{somajor} -p /sbin/ldconfig +%postun -n libbd_crypto%{somajor} -p /sbin/ldconfig + +%post -n libbd_dm%{somajor} -p /sbin/ldconfig +%postun -n libbd_dm%{somajor} -p /sbin/ldconfig + +%post -n libbd_fs%{somajor} -p /sbin/ldconfig +%postun -n libbd_fs%{somajor} -p /sbin/ldconfig + +%post -n libbd_kbd%{somajor} -p /sbin/ldconfig +%postun -n libbd_kbd%{somajor} -p /sbin/ldconfig + +%post -n libbd_loop%{somajor} -p /sbin/ldconfig +%postun -n libbd_loop%{somajor} -p /sbin/ldconfig + +%post -n libbd_lvm%{somajor} -p /sbin/ldconfig +%postun -n libbd_lvm%{somajor} -p /sbin/ldconfig + +%post -n libbd_lvm-dbus%{somajor} -p /sbin/ldconfig +%postun -n libbd_lvm-dbus%{somajor} -p /sbin/ldconfig + +%post -n libbd_mdraid%{somajor} -p /sbin/ldconfig +%postun -n libbd_mdraid%{somajor} -p /sbin/ldconfig + +%post -n libbd_mpath%{somajor} -p /sbin/ldconfig +%postun -n libbd_mpath%{somajor} -p /sbin/ldconfig + +%post -n libbd_part%{somajor} -p /sbin/ldconfig +%postun -n libbd_part%{somajor} -p /sbin/ldconfig + +%post -n libbd_swap%{somajor} -p /sbin/ldconfig +%postun -n libbd_swap%{somajor} -p /sbin/ldconfig + +%ifarch s390 s390x +%post -n libbd_s390%{somajor} -p /sbin/ldconfig +%postun -n libbd_s390%{somajor} -p /sbin/ldconfig +%endif + +%files -n %{libname} +%defattr(-,root,root,-) +%license LICENSE +%{_libdir}/libblockdev.so.%{somajor}* +%dir %{_sysconfdir}/libblockdev +%dir %{_sysconfdir}/libblockdev/conf.d +%config %{_sysconfdir}/libblockdev/conf.d/00-default.cfg + +%files -n typelib-1_0-BlockDev-2_0 +%defattr(-,root,root,-) +%{_libdir}/girepository-1.0/BlockDev-2.0.typelib + +%files devel +%defattr(-,root,root,-) +%doc features.rst specs.rst +%doc %{_datadir}/gtk-doc/html/libblockdev +%{_libdir}/libblockdev.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/blockdev.h +%{_includedir}/blockdev/plugins.h +%{_libdir}/pkgconfig/blockdev.pc +%{_datadir}/gir-1.0/BlockDev-2.0.gir + +%files -n python2-%{name} +%defattr(-,root,root,-) +%dir %{python2_sitearch}/gi +%dir %{python2_sitearch}/gi/overrides +%{python2_sitearch}/gi/overrides/BlockDev.py + +%files -n python3-%{name} +%defattr(-,root,root,-) +%dir %{python3_sitearch}/gi +%dir %{python3_sitearch}/gi/overrides +%{python3_sitearch}/gi/overrides/BlockDev.py + +%files -n libbd_utils%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_utils.so.* + +%files -n libbd_utils-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_utils.so +%{_libdir}/pkgconfig/blockdev-utils.pc +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/utils.h +%{_includedir}/blockdev/sizes.h +%{_includedir}/blockdev/exec.h +%{_includedir}/blockdev/extra_arg.h +%{_includedir}/blockdev/dev_utils.h + +%files -n libbd_btrfs%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_btrfs.so.* + +%files -n libbd_btrfs-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_btrfs.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/btrfs.h + +%files -n libbd_crypto%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_crypto.so.* + +%files -n libbd_crypto-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_crypto.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/crypto.h + +%files -n libbd_dm%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_dm.so.* + +%files -n libbd_dm-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_dm.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/dm.h + +%files -n libbd_fs%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_fs.so.* + +%files -n libbd_fs-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_fs.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/fs.h + +%files -n libbd_kbd%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_kbd.so.* + +%files -n libbd_kbd-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_kbd.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/kbd.h + +%files -n libbd_loop%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_loop.so.* + +%files -n libbd_loop-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_loop.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/loop.h + +%files -n libbd_lvm%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_lvm.so.* + +%files -n libbd_lvm-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_lvm.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/lvm.h + +%files -n libbd_lvm-dbus%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_lvm-dbus.so.* +%config %{_sysconfdir}/libblockdev/conf.d/10-lvm-dbus.cfg + +%files -n libbd_lvm-dbus-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_lvm-dbus.so + +%files -n libbd_mdraid%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_mdraid.so.* + +%files -n libbd_mdraid-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_mdraid.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/mdraid.h + +%files -n libbd_mpath%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_mpath.so.* + +%files -n libbd_mpath-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_mpath.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/mpath.h + +%files -n libbd_part%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_part.so.* +%{_libdir}/libbd_part_err.so.* + +%files -n libbd_part-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_part.so +%{_libdir}/libbd_part_err.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/part.h + +%files -n libbd_swap%{somajor} +%defattr(-,root,root,-) +%{_libdir}/libbd_swap.so.* + +%files -n libbd_swap-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_swap.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/swap.h + +%ifarch s390 s390x +%defattr(-,root,root,-) +%files -n libbd_s390%{somajor} +%{_libdir}/libbd_s390.so.* + +%files -n libbd_s390-devel +%defattr(-,root,root,-) +%{_libdir}/libbd_s390.so +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/s390.h +%endif + +%changelog