2024-01-06 03:51:40 +01:00
|
|
|
%define MAJver %(echo %version | cut -d. -f1)
|
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
2024-01-26 20:40:35 +01:00
|
|
|
%define apiver 3.0
|
2024-01-06 03:51:40 +01:00
|
|
|
|
2024-01-06 03:51:39 +01:00
|
|
|
Name: libblockdev
|
2024-01-26 20:40:35 +01:00
|
|
|
Version: 3.1.0
|
2024-01-06 03:51:39 +01:00
|
|
|
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
|
2024-01-06 03:51:40 +01:00
|
|
|
BuildRequires: libe2fs-devel
|
|
|
|
BuildRequires: libfdisk-devel
|
2024-01-06 03:51:39 +01:00
|
|
|
BuildRequires: libglib-devel
|
2024-01-06 03:51:40 +01:00
|
|
|
BuildRequires: libkeyutils-devel
|
2024-01-06 03:51:39 +01:00
|
|
|
BuildRequires: libkmod-devel
|
|
|
|
BuildRequires: libmount-devel
|
|
|
|
BuildRequires: libndctl-devel
|
|
|
|
BuildRequires: libnspr-devel
|
|
|
|
BuildRequires: libnss-devel
|
2024-01-06 03:51:40 +01:00
|
|
|
BuildRequires: libnvme-devel
|
2024-01-06 03:51:39 +01:00
|
|
|
BuildRequires: libparted-devel
|
2024-01-06 03:51:41 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-06 03:51:39 +01:00
|
|
|
BuildRequires: libudev-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: libvolume_key-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 03:51:40 +01:00
|
|
|
BuildRequires: libnvme-devel
|
2024-01-06 03:51:39 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-06 03:51:40 +01:00
|
|
|
%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.*
|
2024-01-06 03:51:39 +01:00
|
|
|
%{_libdir}/libblockdev.so.*
|
2024-01-26 20:40:35 +01:00
|
|
|
%{_libdir}/girepository-1.0/BlockDev-%{apiver}.typelib
|
2024-01-06 03:51:40 +01:00
|
|
|
%{python3_sitearch}/gi/overrides/BlockDev.py
|
2024-01-06 03:51:39 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/blockdev
|
|
|
|
%{_includedir}/blockdev/*
|
|
|
|
%{_libdir}/libblockdev.so
|
2024-01-06 03:51:40 +01:00
|
|
|
%{_libdir}/libbd_*.so
|
2024-01-06 03:51:39 +01:00
|
|
|
%{_libdir}/pkgconfig/blockdev-utils.pc
|
|
|
|
%{_libdir}/pkgconfig/blockdev.pc
|
2024-01-26 20:40:35 +01:00
|
|
|
%{_datadir}/gir-1.0/BlockDev-%{apiver}.gir
|
2024-01-06 03:51:39 +01:00
|
|
|
%dir %{_datadir}/gtk-doc/html/libblockdev
|
|
|
|
%{_datadir}/gtk-doc/html/libblockdev/*
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 03:51:40 +01:00
|
|
|
%{_bindir}/vfat-resize
|
2024-01-06 03:51:39 +01:00
|
|
|
%{_bindir}/lvm-cache-stats
|
|
|
|
|
|
|
|
%changelog
|
2024-01-26 20:40:35 +01:00
|
|
|
* Fri Jan 26 2024 Automatic Build System <autodist@openmamba.org> 3.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:41 +01:00
|
|
|
* Tue Oct 17 2023 Automatic Build System <autodist@mambasoft.it> 3.0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:40 +01:00
|
|
|
* 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
|
|
|
|
|
2024-01-06 03:51:40 +01:00
|
|
|
* Thu Sep 15 2022 Automatic Build System <autodist@mambasoft.it> 2.28-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:40 +01:00
|
|
|
* Sun Jun 05 2022 Automatic Build System <autodist@mambasoft.it> 2.27-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:40 +01:00
|
|
|
* Wed Jul 28 2021 Automatic Build System <autodist@mambasoft.it> 2.26-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:39 +01:00
|
|
|
* Sun Jan 17 2021 Automatic Build System <autodist@mambasoft.it> 2.25-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:39 +01:00
|
|
|
* Fri Jun 05 2020 Automatic Build System <autodist@mambasoft.it> 2.24-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:39 +01:00
|
|
|
* Tue Oct 22 2019 Automatic Build System <autodist@mambasoft.it> 2.23-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:39 +01:00
|
|
|
* Wed Jun 26 2019 Automatic Build System <autodist@mambasoft.it> 2.22-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:51:39 +01:00
|
|
|
* Thu Feb 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.21-1mamba
|
|
|
|
- package created using the webbuild interface
|