From afbec3c59a6f0994e7eb04fd7d3b25d2abfd97a6 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 11 Jul 2023 21:12:32 +0200 Subject: [PATCH] Update to version 2.6.1; Fixes RHBZ#2181433 --- .gitignore | 1 + README.md | 3 -- rust-sval.spec | 119 ++++------------------------------------- rust2rpm.conf | 2 + sources | 2 +- sval-fix-metadata.diff | 15 ------ 6 files changed, 13 insertions(+), 129 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.conf delete mode 100644 sval-fix-metadata.diff diff --git a/.gitignore b/.gitignore index bd8a808..4ef5404 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /sval-0.5.1.crate /sval-0.5.2.crate /sval-1.0.0-alpha.5.crate +/sval-2.6.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 99b1a6d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-sval - -The rust-sval package \ No newline at end of file diff --git a/rust-sval.spec b/rust-sval.spec index 5f248e7..0b55ca4 100644 --- a/rust-sval.spec +++ b/rust-sval.spec @@ -1,27 +1,22 @@ -# Generated by rust2rpm 22 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate sval Name: rust-sval -Version: 1.0.0~alpha.5 +Version: 2.6.1 Release: %autorelease -Summary: No-std, object-safe serialization framework +Summary: Streaming, structured value serialization License: Apache-2.0 OR MIT URL: https://crates.io/crates/sval Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * drop unused wasm-bindgen / wasm-binden-test dev-dependencies -Patch: sval-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -No-std, object-safe serialization framework.} +Streaming, structured value serialization.} %description %{_description} @@ -65,18 +60,6 @@ use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+arbitrary-depth-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+arbitrary-depth-devel %{_description} - -This package contains library source intended for building other packages which -use the "arbitrary-depth" feature of the "%{crate}" crate. - -%files -n %{name}+arbitrary-depth-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+derive-devel Summary: %{summary} BuildArch: noarch @@ -89,66 +72,6 @@ use the "derive" feature of the "%{crate}" crate. %files -n %{name}+derive-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+fmt-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+fmt-devel %{_description} - -This package contains library source intended for building other packages which -use the "fmt" feature of the "%{crate}" crate. - -%files -n %{name}+fmt-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+serde-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+serde-devel %{_description} - -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 %{crate_instdir}/Cargo.toml - -%package -n %{name}+serde1-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+serde1-devel %{_description} - -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 %{crate_instdir}/Cargo.toml - -%package -n %{name}+serde1_lib-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+serde1_lib-devel %{_description} - -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 %{crate_instdir}/Cargo.toml - -%package -n %{name}+smallvec-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+smallvec-devel %{_description} - -This package contains library source intended for building other packages which -use the "smallvec" feature of the "%{crate}" crate. - -%files -n %{name}+smallvec-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -161,46 +84,22 @@ use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+sval_derive-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+sval_derive-devel %{_description} - -This package contains library source intended for building other packages which -use the "sval_derive" feature of the "%{crate}" crate. - -%files -n %{name}+sval_derive-devel -%ghost %{crate_instdir}/Cargo.toml - -%package -n %{name}+test-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+test-devel %{_description} - -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 %{crate_instdir}/Cargo.toml - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires +%cargo_generate_buildrequires -a %build -%cargo_build +%cargo_build -a %install -%cargo_install +%cargo_install -a %if %{with check} %check -%cargo_test +%cargo_test -a %endif %changelog diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..f626714 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +all-features = true diff --git a/sources b/sources index 6b0ebad..911243b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (sval-1.0.0-alpha.5.crate) = 474fed7e9d31cb4f41e0a1baef24c91ec65b22370f6a40769e5079d5f7a6ba1e2403cfb033b1ba8d0252c04e4cb817c699ccc6fd0a7d36bdb07d4e3933c8180a +SHA512 (sval-2.6.1.crate) = 15bbdbce7357a08ea618947ccb59818f3c3944dfa8b24bb22c23b75b42f30f235823dad441218d457d4c450824a59fd9a144133f35d106cd26c2ea152c898de5 diff --git a/sval-fix-metadata.diff b/sval-fix-metadata.diff deleted file mode 100644 index 1eaf815..0000000 --- a/sval-fix-metadata.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- sval-1.0.0-alpha.5/Cargo.toml 2021-01-27T02:13:15+00:00 -+++ sval-1.0.0-alpha.5/Cargo.toml 2022-08-01T10:35:03.170462+00:00 -@@ -44,12 +44,6 @@ - [dev-dependencies.quickcheck] - version = "0.9" - --[dev-dependencies.wasm-bindgen] --version = "0.2" -- --[dev-dependencies.wasm-bindgen-test] --version = "0.3" -- - [features] - alloc = [] - arbitrary-depth = ["alloc", "smallvec"]