thin-provisioning-tools/thin-provisioning-tools.spec

77 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

Name: thin-provisioning-tools
Version: 1.0.0
Release: 1mamba
Summary: A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/jthornber/thin-provisioning-tools
Source: https://github.com/jthornber/thin-provisioning-tools.git/v%{version}/thin-provisioning-tools-%{version}.tar.bz2
Patch0: thin-provisioning-tools-1.0.0-fix-u64-on-32bit.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
## AUTOBUILDREQ-END
BuildRequires: rustc
%description
A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets.
%debug_package
%prep
%setup -q
%ifarch arm %{ix86}
%patch0 -p1
%endif
%build
cargo build --release
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
STRIP=/bin/true \
DESTDIR=%{buildroot}%{_prefix} \
BINDIR=%{buildroot}%{_sbindir} \
DATADIR=%{buildroot}%{_datadir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_sbindir}/cache_*
%{_sbindir}/era_*
%{_sbindir}/pdata_tools
%{_sbindir}/thin_*
%{_mandir}/man8/cache_*.8*
%{_mandir}/man8/era_*.8*
%{_mandir}/man8/thin_*.8*
%doc COPYING
%changelog
* Sun Jan 29 2023 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Sat Aug 22 2020 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist
* Sun Jun 09 2019 Automatic Build System <autodist@mambasoft.it> 0.8.5-1mamba
- automatic version update by autodist
* Sat Jun 01 2019 Automatic Build System <autodist@mambasoft.it> 0.8.3-1mamba
- automatic version update by autodist
* Tue May 07 2019 Automatic Build System <autodist@mambasoft.it> 0.8.1-1mamba
- automatic version update by autodist
* Tue Apr 23 2019 Automatic Build System <autodist@mambasoft.it> 0.8.0-1mamba
- automatic version update by autodist
* Sun Jan 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.6-1mamba
- package created using the webbuild interface