- Enable test execution during build

- Modernise cargo packaging usage in spec file

OBS-URL: https://build.opensuse.org/package/show/Base:System/thin-provisioning-tools?expand=0&rev=70
This commit is contained in:
Martin Pluskal 2024-03-22 12:24:42 +00:00 committed by Git OBS Bridge
parent dfcd0f5dd6
commit 1383213dbb
4 changed files with 11 additions and 14 deletions

View File

@ -1,10 +0,0 @@
[source.crates-io]
replace-with = "vendored-sources"
[source."git+https://github.com/jthornber/rio?branch=master"]
git = "https://github.com/jthornber/rio"
branch = "master"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 22 12:23:46 UTC 2024 - Martin Pluskal <mpluskal@suse.com>
- Enable test execution during build
- Modernise cargo packaging usage in spec file
-------------------------------------------------------------------
Mon Feb 26 18:02:16 UTC 2024 - Martin Pluskal <mpluskal@suse.com>

View File

@ -24,7 +24,6 @@ License: GPL-3.0-only
URL: https://github.com/jthornber/thin-provisioning-tools/
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: suse-module-tools
Requires(post): coreutils
@ -36,7 +35,6 @@ A suite of tools for thin provisioning on Linux.
%prep
%autosetup -a1
install -D -m 644 %{SOURCE2} .cargo/config
%build
%{cargo_build}
@ -44,6 +42,9 @@ install -D -m 644 %{SOURCE2} .cargo/config
%install
%{cargo_install}
%check
%{cargo_test}
%post
%{?regenerate_initrd_post}

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a515c0d9fe6a64a4c138deb7e86caef0e5261d8261c1e165f8e8f6bf00caa9a
size 13529386
oid sha256:f4e067758378e68ab8dd699ca15b98ef81dbb01f655c570f95e428868c152b25
size 13580509