automatic version update by autodist [release 1.0.0-1mamba;Sun Jan 29 2023]

This commit is contained in:
Automatic Build System 2024-01-05 18:28:36 +01:00
parent 67ca47533b
commit 5b8a534dda
2 changed files with 33 additions and 50 deletions

View File

@ -0,0 +1,11 @@
--- thin-provisioning-tools-1.0.0/src/cache/metadata_size.rs.orig 2023-02-11 14:35:14.957403153 +0100
+++ thin-provisioning-tools-1.0.0/src/cache/metadata_size.rs 2023-02-11 14:37:41.496985618 +0100
@@ -35,7 +35,7 @@
let hint_size = opts.nr_blocks * (opts.max_hint_width as u64 + HINT_OVERHEAD_PER_BLOCK);
let mut size = TRANSACTION_OVERHEAD + mapping_size + hint_size;
- size = std::cmp::min(size, (MAX_METADATA_BLOCKS * BLOCK_SIZE) as u64);
+ size = std::cmp::min(size, MAX_METADATA_BLOCKS as u64 * BLOCK_SIZE as u64);
Ok(size)
}

View File

@ -1,5 +1,5 @@
Name: thin-provisioning-tools
Version: 0.9.0
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
@ -7,17 +7,14 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/jthornber/thin-provisioning-tools
## GITSOURCE https://github.com/jthornber/thin-provisioning-tools.git v0.7.6
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: libaio-devel
BuildRequires: libexpat-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: rustc
%description
A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-era device-mapper targets.
@ -26,65 +23,40 @@ A suite of tools for manipulating the metadata of the dm-thin, dm-cache and dm-e
%prep
%setup -q
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," autoconf/config.sub
autoconf
%ifarch arm %{ix86}
%patch0 -p1
%endif
%build
%configure
%make
cargo build --release
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall STRIP=/bin/true
%makeinstall \
STRIP=/bin/true \
DESTDIR=%{buildroot}%{_prefix} \
BINDIR=%{buildroot}%{_sbindir} \
DATADIR=%{buildroot}%{_datadir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_sbindir}/cache_check
%{_sbindir}/cache_dump
%{_sbindir}/cache_metadata_size
%{_sbindir}/cache_repair
%{_sbindir}/cache_restore
%{_sbindir}/cache_writeback
%{_sbindir}/era_check
%{_sbindir}/era_dump
%{_sbindir}/era_invalidate
%{_sbindir}/era_restore
%{_sbindir}/cache_*
%{_sbindir}/era_*
%{_sbindir}/pdata_tools
%{_sbindir}/thin_check
%{_sbindir}/thin_delta
%{_sbindir}/thin_dump
%{_sbindir}/thin_ls
%{_sbindir}/thin_metadata_size
%{_sbindir}/thin_repair
%{_sbindir}/thin_restore
%{_sbindir}/thin_rmap
%{_sbindir}/thin_trim
%{_mandir}/man8/cache_check.8*
%{_mandir}/man8/cache_dump.8*
%{_mandir}/man8/cache_metadata_size.8*
%{_mandir}/man8/cache_repair.8*
%{_mandir}/man8/cache_restore.8*
%{_mandir}/man8/cache_writeback.8*
%{_mandir}/man8/era_check.8*
%{_mandir}/man8/era_dump.8*
%{_mandir}/man8/era_invalidate.8*
%{_mandir}/man8/era_restore.8*
%{_mandir}/man8/thin_check.8*
%{_mandir}/man8/thin_delta.8*
%{_mandir}/man8/thin_dump.8*
%{_mandir}/man8/thin_ls.8*
%{_mandir}/man8/thin_metadata_size.8*
%{_mandir}/man8/thin_repair.8*
%{_mandir}/man8/thin_restore.8*
%{_mandir}/man8/thin_rmap.8*
%{_mandir}/man8/thin_trim.8*
%{_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