libblockdev/libblockdev.spec

142 lines
4.4 KiB
RPMSpec

%define MAJver %(echo %version | cut -d. -f1)
%define majver %(echo %version | cut -d. -f1-2)
Name: libblockdev
Version: 3.0.4
Release: 1mamba
Summary: A C library supporting GObject Introspection for manipulation of block devices
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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: libblkid-devel
BuildRequires: libbytesize-devel
BuildRequires: libcryptsetup-devel
BuildRequires: libdevmapper-devel
BuildRequires: libe2fs-devel
BuildRequires: libfdisk-devel
BuildRequires: libglib-devel
BuildRequires: libkeyutils-devel
BuildRequires: libkmod-devel
BuildRequires: libmount-devel
BuildRequires: libndctl-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libnvme-devel
BuildRequires: libparted-devel
BuildRequires: libpython311-devel
BuildRequires: libudev-devel
BuildRequires: libuuid-devel
BuildRequires: libvolume_key-devel
## AUTOBUILDREQ-END
BuildRequires: libnvme-devel
%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/%{MAJver}
%dir %{_sysconfdir}/libblockdev/%{MAJver}/conf.d
%{_sysconfdir}/libblockdev/%{MAJver}/conf.d/00-default.cfg
%{_sysconfdir}/libblockdev/%{MAJver}/conf.d/10-lvm-dbus.cfg
%{_libdir}/libbd_*.so.*
%{_libdir}/libblockdev.so.*
%{_libdir}/girepository-1.0/BlockDev-%{majver}.typelib
%{python3_sitearch}/gi/overrides/BlockDev.py
%doc LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/*
%{_libdir}/libblockdev.so
%{_libdir}/libbd_*.so
%{_libdir}/pkgconfig/blockdev-utils.pc
%{_libdir}/pkgconfig/blockdev.pc
%{_datadir}/gir-1.0/BlockDev-%{majver}.gir
%dir %{_datadir}/gtk-doc/html/libblockdev
%{_datadir}/gtk-doc/html/libblockdev/*
%files tools
%defattr(-,root,root)
%{_bindir}/vfat-resize
%{_bindir}/lvm-cache-stats
%changelog
* Tue Oct 17 2023 Automatic Build System <autodist@mambasoft.it> 3.0.4-1mamba
- automatic version update by autodist
* Thu Aug 31 2023 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
- automatic version update by autodist
* Fri Aug 25 2023 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Thu Sep 15 2022 Automatic Build System <autodist@mambasoft.it> 2.28-1mamba
- automatic version update by autodist
* Sun Jun 05 2022 Automatic Build System <autodist@mambasoft.it> 2.27-1mamba
- automatic version update by autodist
* Wed Jul 28 2021 Automatic Build System <autodist@mambasoft.it> 2.26-1mamba
- automatic version update by autodist
* Sun Jan 17 2021 Automatic Build System <autodist@mambasoft.it> 2.25-1mamba
- automatic version update by autodist
* Fri Jun 05 2020 Automatic Build System <autodist@mambasoft.it> 2.24-1mamba
- automatic version update by autodist
* Tue Oct 22 2019 Automatic Build System <autodist@mambasoft.it> 2.23-1mamba
- automatic version update by autodist
* Wed Jun 26 2019 Automatic Build System <autodist@mambasoft.it> 2.22-1mamba
- automatic version update by autodist
* Thu Feb 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-1mamba
- package created using the webbuild interface