diff --git a/README.md b/README.md index e494454..1ab4db0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libblockdev +libblockdev is a C library supporting GObject Introspection for manipulation of block devices. It has a plugin-based architecture where each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly with multiple implementations (e.g. using LVM CLI or the new LVM DBus API). + diff --git a/libblockdev.spec b/libblockdev.spec new file mode 100644 index 0000000..7e9b6ee --- /dev/null +++ b/libblockdev.spec @@ -0,0 +1,166 @@ +Name: libblockdev +Version: 2.21 +Release: 1mamba +Summary: A C library supporting GObject Introspection for manipulation of block devices +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/storaged-project/libblockdev +Source: https://github.com/storaged-project/libblockdev.git/%{version}-1/libblockdev-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libassuan-devel +BuildRequires: libblkid-devel +BuildRequires: libbytesize-devel +BuildRequires: libcryptsetup-devel +BuildRequires: libdevmapper-devel +BuildRequires: libdmraid-devel +BuildRequires: libffi-devel +BuildRequires: libglib-devel +BuildRequires: libgmp-devel +BuildRequires: libgpg-error-devel +BuildRequires: libgpgme-devel +BuildRequires: libkmod-devel +BuildRequires: libmount-devel +BuildRequires: libmpfr-devel +BuildRequires: libndctl-devel +BuildRequires: libnspr-devel +BuildRequires: libnss-devel +BuildRequires: libparted-devel +BuildRequires: libpcre-devel +BuildRequires: libpython-devel +BuildRequires: libselinux-devel +BuildRequires: libsepol-devel +BuildRequires: libudev-devel +BuildRequires: libuuid-devel +BuildRequires: libvolume_key-devel +BuildRequires: libyaml-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: libdmraid-devel +BuildRequires: libvolume_key-devel +BuildRequires: libbytesize-devel +BuildRequires: libndctl-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +libblockdev is a C library supporting GObject Introspection for manipulation of block devices. It has a plugin-based architecture where each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly with multiple implementations (e.g. using LVM CLI or the new LVM DBus API). + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: System/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +./autogen.sh +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/libblockdev +%dir %{_sysconfdir}/libblockdev/conf.d +%{_sysconfdir}/libblockdev/conf.d/00-default.cfg +%{_sysconfdir}/libblockdev/conf.d/10-lvm-dbus.cfg +%{_libdir}/libbd_btrfs.so.* +%{_libdir}/libbd_crypto.so.* +%{_libdir}/libbd_dm.so.* +%{_libdir}/libbd_fs.so.* +%{_libdir}/libbd_kbd.so.* +%{_libdir}/libbd_loop.so.* +%{_libdir}/libbd_lvm-dbus.so.* +%{_libdir}/libbd_lvm.so.* +%{_libdir}/libbd_mdraid.so.* +%{_libdir}/libbd_mpath.so.* +%{_libdir}/libbd_nvdimm.so.* +%{_libdir}/libbd_part.so.* +%{_libdir}/libbd_part_err.so.* +%{_libdir}/libbd_swap.so.* +%{_libdir}/libbd_utils.so.* +%{_libdir}/libbd_vdo.so.* +%{_libdir}/libblockdev.so.* +%{_libdir}/girepository-1.0/BlockDev-2.0.typelib +%{python27_sitearch}/gi/overrides/BlockDev.py +%{python3_sitearch}/gi/overrides/BlockDev.py +%doc LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/blockdev +%{_includedir}/blockdev/* +%{_libdir}/libbd_btrfs.la +%{_libdir}/libbd_btrfs.so +%{_libdir}/libbd_crypto.la +%{_libdir}/libbd_crypto.so +%{_libdir}/libbd_dm.la +%{_libdir}/libbd_dm.so +%{_libdir}/libbd_fs.la +%{_libdir}/libbd_fs.so +%{_libdir}/libbd_kbd.la +%{_libdir}/libbd_kbd.so +%{_libdir}/libbd_loop.la +%{_libdir}/libbd_loop.so +%{_libdir}/libbd_lvm-dbus.la +%{_libdir}/libbd_lvm-dbus.so +%{_libdir}/libbd_lvm.la +%{_libdir}/libbd_lvm.so +%{_libdir}/libbd_mdraid.la +%{_libdir}/libbd_mdraid.so +%{_libdir}/libbd_mpath.la +%{_libdir}/libbd_mpath.so +%{_libdir}/libbd_nvdimm.la +%{_libdir}/libbd_nvdimm.so +%{_libdir}/libbd_part.la +%{_libdir}/libbd_part.so +%{_libdir}/libbd_part_err.la +%{_libdir}/libbd_part_err.so +%{_libdir}/libbd_swap.la +%{_libdir}/libbd_swap.so +%{_libdir}/libbd_utils.la +%{_libdir}/libbd_utils.so +%{_libdir}/libbd_vdo.la +%{_libdir}/libbd_vdo.so +%{_libdir}/libblockdev.la +%{_libdir}/libblockdev.so +%{_libdir}/pkgconfig/blockdev-utils.pc +%{_libdir}/pkgconfig/blockdev.pc +%{_datadir}/gir-1.0/BlockDev-2.0.gir +%dir %{_datadir}/gtk-doc/html/libblockdev +%{_datadir}/gtk-doc/html/libblockdev/* + +%files tools +%defattr(-,root,root) +%{_bindir}/lvm-cache-stats + +%changelog +* Thu Feb 28 2019 Silvan Calarco 2.21-1mamba +- package created using the webbuild interface