From 1383213dbbd13b61e4fbd59adf04fce68b313d1870206fb0d7b36e62209c549e Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 22 Mar 2024 12:24:42 +0000 Subject: [PATCH] - 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 --- cargo_config | 10 ---------- thin-provisioning-tools.changes | 6 ++++++ thin-provisioning-tools.spec | 5 +++-- vendor.tar.zst | 4 ++-- 4 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 cargo_config diff --git a/cargo_config b/cargo_config deleted file mode 100644 index c92f9ba..0000000 --- a/cargo_config +++ /dev/null @@ -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" \ No newline at end of file diff --git a/thin-provisioning-tools.changes b/thin-provisioning-tools.changes index f4358c5..5f45694 100644 --- a/thin-provisioning-tools.changes +++ b/thin-provisioning-tools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 22 12:23:46 UTC 2024 - Martin Pluskal + +- Enable test execution during build +- Modernise cargo packaging usage in spec file + ------------------------------------------------------------------- Mon Feb 26 18:02:16 UTC 2024 - Martin Pluskal diff --git a/thin-provisioning-tools.spec b/thin-provisioning-tools.spec index 2cbd04f..cba0c10 100644 --- a/thin-provisioning-tools.spec +++ b/thin-provisioning-tools.spec @@ -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} diff --git a/vendor.tar.zst b/vendor.tar.zst index f08f8c6..3186a25 100644 --- a/vendor.tar.zst +++ b/vendor.tar.zst @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2a515c0d9fe6a64a4c138deb7e86caef0e5261d8261c1e165f8e8f6bf00caa9a -size 13529386 +oid sha256:f4e067758378e68ab8dd699ca15b98ef81dbb01f655c570f95e428868c152b25 +size 13580509