From b2dfe4d4f119a80b2457549a16c709953f174a25 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 6 Nov 2023 15:04:31 +0100 Subject: [PATCH] Update to version 0.4.2 --- .gitignore | 1 + README.md | 3 --- bigdecimal-fix-metadata.diff | 19 ++++++++++++++++ rust-bigdecimal.spec | 44 ++++++++++++++++++++++++------------ sources | 2 +- 5 files changed, 51 insertions(+), 18 deletions(-) delete mode 100644 README.md create mode 100644 bigdecimal-fix-metadata.diff diff --git a/.gitignore b/.gitignore index c2134b0..fc01845 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /bigdecimal-0.3.0.crate +/bigdecimal-0.4.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 92af1cd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-bigdecimal - -The rust-bigdecimal package diff --git a/bigdecimal-fix-metadata.diff b/bigdecimal-fix-metadata.diff new file mode 100644 index 0000000..2f03ee8 --- /dev/null +++ b/bigdecimal-fix-metadata.diff @@ -0,0 +1,19 @@ +--- bigdecimal-0.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ bigdecimal-0.4.2/Cargo.toml 2023-11-01T12:54:02.751431+00:00 +@@ -31,6 +31,7 @@ + ] + license = "MIT/Apache-2.0" + repository = "https://github.com/akubera/bigdecimal-rs" ++exclude = ["/scripts/"] + + [lib] + bench = false +@@ -59,7 +60,7 @@ + version = "1" + + [dev-dependencies.serde_json] +-version = "<1.0.101" ++version = "1.0.101" + + [dev-dependencies.siphasher] + version = "0.3.10" diff --git a/rust-bigdecimal.spec b/rust-bigdecimal.spec index 9d9ae14..1680be3 100644 --- a/rust-bigdecimal.spec +++ b/rust-bigdecimal.spec @@ -1,22 +1,24 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate bigdecimal -Name: rust-%{crate} -Version: 0.3.0 +Name: rust-bigdecimal +Version: 0.4.2 Release: %autorelease Summary: Arbitrary precision decimal numbers # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/bigdecimal Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * relax serde dev-dependency to allow newer versions +# * exclude files that are only useful for upstream development +Patch: bigdecimal-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Arbitrary precision decimal numbers.} @@ -33,9 +35,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license COPYRIGHT LICENSE-APACHE LICENSE-MIT -%doc README.rst -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,7 +51,7 @@ 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}+serde-devel Summary: %{summary} @@ -59,7 +63,19 @@ 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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml %package -n %{name}+string-only-devel Summary: %{summary} @@ -71,10 +87,10 @@ This package contains library source intended for building other packages which use the "string-only" feature of the "%{crate}" crate. %files -n %{name}+string-only-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index cdd58c5..534f719 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (bigdecimal-0.3.0.crate) = 3a55f6ab1450974fe58dac268019fa7f76b0dee131ed66f5c5529ea28da5d9e7d11579585f28c0d3d45a6456992cdeee81df524c0c7bcc5c3dc86b26d4f12981 +SHA512 (bigdecimal-0.4.2.crate) = 8d788e7be59e121a40b1f348499c458b86b6b96fc58ad2ed2d6d49acb353c46eb2486efba92bf4e047a9a4c036ec48159b380483aa87c999915c93b910c26355