From 1e17c15ce22356f32ff66a48a1082f7854988f07 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 25 May 2022 14:29:25 +0200 Subject: [PATCH 2/3] Update to version 1.0.0-alpha.9 --- .gitignore | 1 + rust-value-bag.spec | 95 +++++++++++++++++++------------------ sources | 2 +- value-bag-fix-metadata.diff | 15 ++++++ 4 files changed, 65 insertions(+), 48 deletions(-) create mode 100644 value-bag-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 554c62c..5b1438b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /value-bag-1.0.0-alpha.6.crate /value-bag-1.0.0-alpha.7.crate /value-bag-1.0.0-alpha.8.crate +/value-bag-1.0.0-alpha.9.crate diff --git a/rust-value-bag.spec b/rust-value-bag.spec index e286ad1..3046069 100644 --- a/rust-value-bag.spec +++ b/rust-value-bag.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate value-bag Name: rust-%{crate} -Version: 1.0.0~alpha.8 +Version: 1.0.0~alpha.9 Release: %autorelease Summary: Anonymous structured values @@ -13,13 +13,13 @@ Summary: Anonymous structured values License: ASL 2.0 or MIT URL: https://crates.io/crates/value-bag Source: %{crates_source} +# Initial patched metadata +# * drop WASM-specific dev-dependencies +Patch0: value-bag-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Anonymous structured values.} @@ -32,13 +32,14 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +47,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+erased-serde1-devel Summary: %{summary} @@ -58,11 +59,11 @@ BuildArch: noarch %description -n %{name}+erased-serde1-devel %{_description} -This package contains library source intended for building other packages -which use "erased-serde1" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "erased-serde1" feature of the "%{crate}" crate. %files -n %{name}+erased-serde1-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+error-devel Summary: %{summary} @@ -70,11 +71,11 @@ BuildArch: noarch %description -n %{name}+error-devel %{_description} -This package contains library source intended for building other packages -which use "error" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "error" feature of the "%{crate}" crate. %files -n %{name}+error-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -82,11 +83,11 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde1-devel Summary: %{summary} @@ -94,11 +95,11 @@ BuildArch: noarch %description -n %{name}+serde1-devel %{_description} -This package contains library source intended for building other packages -which use "serde1" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde1" feature of the "%{crate}" crate. %files -n %{name}+serde1-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde1_fmt-devel Summary: %{summary} @@ -106,11 +107,11 @@ BuildArch: noarch %description -n %{name}+serde1_fmt-devel %{_description} -This package contains library source intended for building other packages -which use "serde1_fmt" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde1_fmt" feature of the "%{crate}" crate. %files -n %{name}+serde1_fmt-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde1_lib-devel Summary: %{summary} @@ -118,11 +119,11 @@ BuildArch: noarch %description -n %{name}+serde1_lib-devel %{_description} -This package contains library source intended for building other packages -which use "serde1_lib" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde1_lib" feature of the "%{crate}" crate. %files -n %{name}+serde1_lib-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -130,11 +131,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sval-devel Summary: %{summary} @@ -142,11 +143,11 @@ BuildArch: noarch %description -n %{name}+sval-devel %{_description} -This package contains library source intended for building other packages -which use "sval" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "sval" feature of the "%{crate}" crate. %files -n %{name}+sval-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sval1-devel Summary: %{summary} @@ -154,11 +155,11 @@ BuildArch: noarch %description -n %{name}+sval1-devel %{_description} -This package contains library source intended for building other packages -which use "sval1" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "sval1" feature of the "%{crate}" crate. %files -n %{name}+sval1-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sval1_lib-devel Summary: %{summary} @@ -166,11 +167,11 @@ BuildArch: noarch %description -n %{name}+sval1_lib-devel %{_description} -This package contains library source intended for building other packages -which use "sval1_lib" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "sval1_lib" feature of the "%{crate}" crate. %files -n %{name}+sval1_lib-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test-devel Summary: %{summary} @@ -178,11 +179,11 @@ BuildArch: noarch %description -n %{name}+test-devel %{_description} -This package contains library source intended for building other packages -which use "test" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "test" feature of the "%{crate}" crate. %files -n %{name}+test-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/sources b/sources index c311123..2ba8fbb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (value-bag-1.0.0-alpha.8.crate) = aaa6070148e6ff201563e11619cf2899daaa3e0aea62492550a06c21a0ea918f44e1e4911cd7941c549754dc5e4de23863c3a04ed510c25a661c57b3552b69e3 +SHA512 (value-bag-1.0.0-alpha.9.crate) = 52ae5b11c2f9befe58c28274f0596ba5b5a59e64f60be715967693600b94adf8329471e0db45c7abcd7d13bcf8a8dbf6f7818de253509ce6f87e04d6af084709 diff --git a/value-bag-fix-metadata.diff b/value-bag-fix-metadata.diff new file mode 100644 index 0000000..6af8a45 --- /dev/null +++ b/value-bag-fix-metadata.diff @@ -0,0 +1,15 @@ +--- value-bag-1.0.0-alpha.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ value-bag-1.0.0-alpha.9/Cargo.toml 2022-05-25T12:24:51.404112+00:00 +@@ -84,12 +84,6 @@ + features = ["test"] + package = "sval" + +-[dev-dependencies.wasm-bindgen] +-version = "0.2" +- +-[dev-dependencies.wasm-bindgen-test] +-version = "0.3" +- + [build-dependencies.rustc] + version = "0.9" + package = "version_check"