diff --git a/.gitignore b/.gitignore index 5b1438b..55298ab 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /value-bag-1.0.0-alpha.7.crate /value-bag-1.0.0-alpha.8.crate /value-bag-1.0.0-alpha.9.crate +/value-bag-1.4.1.crate diff --git a/rust-value-bag.spec b/rust-value-bag.spec index 3046069..0b75251 100644 --- a/rust-value-bag.spec +++ b/rust-value-bag.spec @@ -1,25 +1,21 @@ -# Generated by rust2rpm 21 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate value-bag -Name: rust-%{crate} -Version: 1.0.0~alpha.9 +Name: rust-value-bag +Version: 1.4.1 Release: %autorelease Summary: Anonymous structured values -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-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 +# Automatically generated patch to strip foreign dependencies +Patch: value-bag-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Anonymous structured values.} @@ -53,16 +49,16 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+erased-serde1-devel +%package -n %{name}+alloc-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+erased-serde1-devel %{_description} +%description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which -use the "erased-serde1" feature of the "%{crate}" crate. +use the "alloc" feature of the "%{crate}" crate. -%files -n %{name}+erased-serde1-devel +%files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+error-devel @@ -77,52 +73,52 @@ use the "error" feature of the "%{crate}" crate. %files -n %{name}+error-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serde-devel +%package -n %{name}+inline-i128-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+serde-devel %{_description} +%description -n %{name}+inline-i128-devel %{_description} This package contains library source intended for building other packages which -use the "serde" feature of the "%{crate}" crate. +use the "inline-i128" feature of the "%{crate}" crate. -%files -n %{name}+serde-devel +%files -n %{name}+inline-i128-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serde1-devel +%package -n %{name}+owned-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+serde1-devel %{_description} +%description -n %{name}+owned-devel %{_description} This package contains library source intended for building other packages which -use the "serde1" feature of the "%{crate}" crate. +use the "owned" feature of the "%{crate}" crate. -%files -n %{name}+serde1-devel +%files -n %{name}+owned-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serde1_fmt-devel +%package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+serde1_fmt-devel %{_description} +%description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which -use the "serde1_fmt" feature of the "%{crate}" crate. +use the "serde" feature of the "%{crate}" crate. -%files -n %{name}+serde1_fmt-devel +%files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+serde1_lib-devel +%package -n %{name}+serde1-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+serde1_lib-devel %{_description} +%description -n %{name}+serde1-devel %{_description} This package contains library source intended for building other packages which -use the "serde1_lib" feature of the "%{crate}" crate. +use the "serde1" feature of the "%{crate}" crate. -%files -n %{name}+serde1_lib-devel +%files -n %{name}+serde1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel @@ -149,40 +145,52 @@ use the "sval" feature of the "%{crate}" crate. %files -n %{name}+sval-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+sval1-devel +%package -n %{name}+sval2-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+sval1-devel %{_description} +%description -n %{name}+sval2-devel %{_description} This package contains library source intended for building other packages which -use the "sval1" feature of the "%{crate}" crate. +use the "sval2" feature of the "%{crate}" crate. -%files -n %{name}+sval1-devel +%files -n %{name}+sval2-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+sval1_lib-devel +%package -n %{name}+test-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+sval1_lib-devel %{_description} +%description -n %{name}+test-devel %{_description} This package contains library source intended for building other packages which -use the "sval1_lib" feature of the "%{crate}" crate. +use the "test" feature of the "%{crate}" crate. -%files -n %{name}+sval1_lib-devel +%files -n %{name}+test-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+test-devel +%package -n %{name}+value-bag-serde1-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+test-devel %{_description} +%description -n %{name}+value-bag-serde1-devel %{_description} This package contains library source intended for building other packages which -use the "test" feature of the "%{crate}" crate. +use the "value-bag-serde1" feature of the "%{crate}" crate. -%files -n %{name}+test-devel +%files -n %{name}+value-bag-serde1-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+value-bag-sval2-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+value-bag-sval2-devel %{_description} + +This package contains library source intended for building other packages which +use the "value-bag-sval2" feature of the "%{crate}" crate. + +%files -n %{name}+value-bag-sval2-devel %ghost %{crate_instdir}/Cargo.toml %prep diff --git a/sources b/sources index 2ba8fbb..9973789 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (value-bag-1.0.0-alpha.9.crate) = 52ae5b11c2f9befe58c28274f0596ba5b5a59e64f60be715967693600b94adf8329471e0db45c7abcd7d13bcf8a8dbf6f7818de253509ce6f87e04d6af084709 +SHA512 (value-bag-1.4.1.crate) = 6505ed342d6e2dda2d74a75c4609cddc130a291c09618c7111720ef26f01d059e11eb24339a58daf4a9103bec15f676668afaab52a7e423b2acdb565852c452e diff --git a/value-bag-fix-metadata-auto.diff b/value-bag-fix-metadata-auto.diff new file mode 100644 index 0000000..2f97d82 --- /dev/null +++ b/value-bag-fix-metadata-auto.diff @@ -0,0 +1,11 @@ +--- value-bag-1.4.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ value-bag-1.4.1/Cargo.toml 2023-07-17T09:07:37.935984+00:00 +@@ -75,8 +75,3 @@ + sval2 = ["value-bag-sval2"] + test = ["std"] + +-[target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen] +-version = "0.2" +- +-[target."cfg(target_arch = \"wasm32\")".dev-dependencies.wasm-bindgen-test] +-version = "0.3" diff --git a/value-bag-fix-metadata.diff b/value-bag-fix-metadata.diff deleted file mode 100644 index 6af8a45..0000000 --- a/value-bag-fix-metadata.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- 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"