diff --git a/.gitignore b/.gitignore index 7024983..3df6ef6 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ /rust_decimal-1.19.0.crate /rust_decimal-1.20.0.crate /rust_decimal-1.21.0.crate +/rust_decimal-1.22.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index 5f78f8c..8bc210b 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,5 +1,6 @@ [DEFAULT] unwanted-features = + borsh db-diesel-mysql db-postgres db-tokio-postgres diff --git a/rust-rust_decimal.spec b/rust-rust_decimal.spec index 5ea72d9..9f8a484 100644 --- a/rust-rust_decimal.spec +++ b/rust-rust_decimal.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate rust_decimal Name: rust-%{crate} -Version: 1.21.0 +Version: 1.22.0 Release: %autorelease Summary: Decimal Implementation written in pure Rust suitable for financial calculations @@ -19,7 +19,7 @@ Patch0: rust_decimal-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Decimal Implementation written in pure Rust suitable for financial @@ -37,9 +37,13 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%doc BUILD.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md VERSION.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/BUILD.md +%doc %{crate_instdir}/CODE_OF_CONDUCT.md +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/VERSION.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,7 +55,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}+arbitrary-devel Summary: %{summary} @@ -63,7 +67,7 @@ This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+byteorder-devel Summary: %{summary} @@ -75,7 +79,7 @@ This package contains library source intended for building other packages which use the "byteorder" feature of the "%{crate}" crate. %files -n %{name}+byteorder-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bytes-devel Summary: %{summary} @@ -87,7 +91,7 @@ This package contains library source intended for building other packages which use the "bytes" feature of the "%{crate}" crate. %files -n %{name}+bytes-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+c-repr-devel Summary: %{summary} @@ -99,7 +103,7 @@ This package contains library source intended for building other packages which use the "c-repr" feature of the "%{crate}" crate. %files -n %{name}+c-repr-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+db-diesel-postgres-devel Summary: %{summary} @@ -111,7 +115,7 @@ This package contains library source intended for building other packages which use the "db-diesel-postgres" feature of the "%{crate}" crate. %files -n %{name}+db-diesel-postgres-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+diesel-devel Summary: %{summary} @@ -123,7 +127,7 @@ This package contains library source intended for building other packages which use the "diesel" feature of the "%{crate}" crate. %files -n %{name}+diesel-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+legacy-ops-devel Summary: %{summary} @@ -135,7 +139,7 @@ This package contains library source intended for building other packages which use the "legacy-ops" feature of the "%{crate}" crate. %files -n %{name}+legacy-ops-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+maths-devel Summary: %{summary} @@ -147,7 +151,7 @@ This package contains library source intended for building other packages which use the "maths" feature of the "%{crate}" crate. %files -n %{name}+maths-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+maths-nopanic-devel Summary: %{summary} @@ -159,7 +163,7 @@ This package contains library source intended for building other packages which use the "maths-nopanic" feature of the "%{crate}" crate. %files -n %{name}+maths-nopanic-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rust-fuzz-devel Summary: %{summary} @@ -171,7 +175,7 @@ This package contains library source intended for building other packages which use the "rust-fuzz" feature of the "%{crate}" crate. %files -n %{name}+rust-fuzz-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -183,7 +187,7 @@ 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}+serde-arbitrary-precision-devel Summary: %{summary} @@ -195,7 +199,7 @@ This package contains library source intended for building other packages which use the "serde-arbitrary-precision" feature of the "%{crate}" crate. %files -n %{name}+serde-arbitrary-precision-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-bincode-devel Summary: %{summary} @@ -207,7 +211,7 @@ This package contains library source intended for building other packages which use the "serde-bincode" feature of the "%{crate}" crate. %files -n %{name}+serde-bincode-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-float-devel Summary: %{summary} @@ -219,7 +223,7 @@ This package contains library source intended for building other packages which use the "serde-float" feature of the "%{crate}" crate. %files -n %{name}+serde-float-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-str-devel Summary: %{summary} @@ -231,7 +235,7 @@ This package contains library source intended for building other packages which use the "serde-str" feature of the "%{crate}" crate. %files -n %{name}+serde-str-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-with-arbitrary-precision-devel Summary: %{summary} @@ -243,7 +247,7 @@ This package contains library source intended for building other packages which use the "serde-with-arbitrary-precision" feature of the "%{crate}" crate. %files -n %{name}+serde-with-arbitrary-precision-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-with-float-devel Summary: %{summary} @@ -255,7 +259,7 @@ This package contains library source intended for building other packages which use the "serde-with-float" feature of the "%{crate}" crate. %files -n %{name}+serde-with-float-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-with-str-devel Summary: %{summary} @@ -267,7 +271,7 @@ This package contains library source intended for building other packages which use the "serde-with-str" feature of the "%{crate}" crate. %files -n %{name}+serde-with-str-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} @@ -279,7 +283,7 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -291,7 +295,7 @@ 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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/rust_decimal-fix-metadata.diff b/rust_decimal-fix-metadata.diff index aa6387f..83b0fb9 100644 --- a/rust_decimal-fix-metadata.diff +++ b/rust_decimal-fix-metadata.diff @@ -1,6 +1,6 @@ ---- rust_decimal-1.21.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ rust_decimal-1.21.0/Cargo.toml 2022-01-31T22:21:39.416128+00:00 -@@ -89,10 +89,6 @@ +--- rust_decimal-1.22.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rust_decimal-1.22.0/Cargo.toml 2022-03-05T20:53:06.625865+00:00 +@@ -94,10 +94,6 @@ [dev-dependencies.bytes] version = "1.0" diff --git a/sources b/sources index 23b2b31..46add35 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rust_decimal-1.21.0.crate) = 4321d01e5e4f5bc32090d77ae152a8d07bde3adc9a23a9625c97a3c03c1b1556f70438ff59cb9fbe99595e7cfb09a7ca402c392b8cca340378546818ee5b0dab +SHA512 (rust_decimal-1.22.0.crate) = fe9aeac70b5092ddd3b1de4ab10ce5662103a3f423ac977528a4b6a94982ab982b6fa648eb759b8ab6e96a6f642d8abac7d2ec432cbe197e7409c91e0386d6b8