From 5d9892efeabc08b434ebf28b97cb5d8f43a86924 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 16 Jun 2024 18:07:31 +0200 Subject: [PATCH] Update to version 0.4.4; Fixes RHBZ#2292499 --- .gitignore | 1 + bigdecimal-fix-metadata.diff | 6 +++--- rust-bigdecimal.spec | 26 +++++++++++++++++++++++++- rust2rpm.toml | 6 ++++++ sources | 2 +- 5 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index c619577..70d7fc5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /bigdecimal-0.3.0.crate /bigdecimal-0.4.2.crate /bigdecimal-0.4.3.crate +/bigdecimal-0.4.4.crate diff --git a/bigdecimal-fix-metadata.diff b/bigdecimal-fix-metadata.diff index b44bea9..2f03cd2 100644 --- a/bigdecimal-fix-metadata.diff +++ b/bigdecimal-fix-metadata.diff @@ -1,5 +1,5 @@ ---- bigdecimal-0.4.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ bigdecimal-0.4.3/Cargo.toml 2024-03-05T12:46:24.208088+00:00 +--- bigdecimal-0.4.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bigdecimal-0.4.4/Cargo.toml 2024-06-16T16:04:09.419420+00:00 @@ -31,6 +31,7 @@ ] license = "MIT/Apache-2.0" @@ -8,7 +8,7 @@ [lib] bench = false -@@ -59,7 +60,7 @@ +@@ -68,7 +69,7 @@ version = "1" [dev-dependencies.serde_test] diff --git a/rust-bigdecimal.spec b/rust-bigdecimal.spec index f6a29cf..22b000a 100644 --- a/rust-bigdecimal.spec +++ b/rust-bigdecimal.spec @@ -5,7 +5,7 @@ %global crate bigdecimal Name: rust-bigdecimal -Version: 0.4.3 +Version: 0.4.4 Release: %autorelease Summary: Arbitrary precision decimal numbers @@ -65,6 +65,30 @@ use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+serde-json-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-json-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde-json" feature of the "%{crate}" crate. + +%files -n %{name}+serde-json-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde_json-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde_json-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde_json" feature of the "%{crate}" crate. + +%files -n %{name}+serde_json-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..4e6909d --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +cargo-toml-patch-comments = [ + "relax serde_test dev-dependency to allow newer versions", + "exclude files that are only useful for upstream development", +] + diff --git a/sources b/sources index 005225d..e3481a6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bigdecimal-0.4.3.crate) = 12a6ea51f2be99f9d31a67310517e749e62e3610c329f7b1becefb012dc047eebde75774f94076bf241ae1e875f3f99fa6a34dd9cf55f9ca32ca448c173bdbd4 +SHA512 (bigdecimal-0.4.4.crate) = 7ad3c6b16c52d8571903d072f9bfe123cdbacc03e73b2930abcc04306bb544653821e4387a637bf73bcc1ded44e5bd8e1184b40ec102fad230aaf8bc56e7a7f1