From 68a5ab957df89193e763eb661b9f0d2ec82d2785 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 1 Dec 2021 21:17:05 +0100 Subject: [PATCH] Update to version 1.18.0; Fixes RHBZ#2027918 --- .gitignore | 1 + .rust2rpm.conf | 3 ++ rust-rust_decimal.spec | 87 ++++++++++++++++------------------ rust_decimal-fix-metadata.diff | 6 +-- sources | 2 +- 5 files changed, 50 insertions(+), 49 deletions(-) diff --git a/.gitignore b/.gitignore index 72329aa..2845e85 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ /rust_decimal-1.15.0.crate /rust_decimal-1.16.0.crate /rust_decimal-1.17.0.crate +/rust_decimal-1.18.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf index d3fb01b..5f78f8c 100644 --- a/.rust2rpm.conf +++ b/.rust2rpm.conf @@ -1,7 +1,10 @@ [DEFAULT] unwanted-features = + db-diesel-mysql db-postgres db-tokio-postgres postgres + rocket + rocket-traits tokio-pg tokio-postgres diff --git a/rust-rust_decimal.spec b/rust-rust_decimal.spec index 15cae3c..95a45be 100644 --- a/rust-rust_decimal.spec +++ b/rust-rust_decimal.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} %global crate rust_decimal Name: rust-%{crate} -Version: 1.17.0 +Version: 1.18.0 Release: %autorelease Summary: Decimal Implementation written in pure Rust suitable for financial calculations @@ -14,13 +14,10 @@ License: MIT URL: https://crates.io/crates/rust_decimal Source: %{crates_source} # Initial patched metadata -# * drop criterion dev-dependency (only used in benchmarks) to speed up builds +# * drop unused, benchmark-only criterion dev-dependency to speed up builds Patch0: rust_decimal-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -36,12 +33,12 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel %license LICENSE -%doc README.md VERSION.md +%doc BUILD.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md VERSION.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -50,8 +47,8 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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 @@ -62,8 +59,8 @@ BuildArch: noarch %description -n %{name}+arbitrary-devel %{_description} -This package contains library source intended for building other packages -which use "arbitrary" feature of "%{crate}" crate. +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 @@ -74,8 +71,8 @@ BuildArch: noarch %description -n %{name}+byteorder-devel %{_description} -This package contains library source intended for building other packages -which use "byteorder" feature of "%{crate}" crate. +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 @@ -86,8 +83,8 @@ BuildArch: noarch %description -n %{name}+bytes-devel %{_description} -This package contains library source intended for building other packages -which use "bytes" feature of "%{crate}" crate. +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 @@ -98,8 +95,8 @@ BuildArch: noarch %description -n %{name}+c-repr-devel %{_description} -This package contains library source intended for building other packages -which use "c-repr" feature of "%{crate}" crate. +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 @@ -110,8 +107,8 @@ BuildArch: noarch %description -n %{name}+db-diesel-postgres-devel %{_description} -This package contains library source intended for building other packages -which use "db-diesel-postgres" feature of "%{crate}" crate. +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 @@ -122,8 +119,8 @@ BuildArch: noarch %description -n %{name}+diesel-devel %{_description} -This package contains library source intended for building other packages -which use "diesel" feature of "%{crate}" crate. +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 @@ -134,8 +131,8 @@ BuildArch: noarch %description -n %{name}+legacy-ops-devel %{_description} -This package contains library source intended for building other packages -which use "legacy-ops" feature of "%{crate}" crate. +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 @@ -146,8 +143,8 @@ BuildArch: noarch %description -n %{name}+maths-devel %{_description} -This package contains library source intended for building other packages -which use "maths" feature of "%{crate}" crate. +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 @@ -158,8 +155,8 @@ BuildArch: noarch %description -n %{name}+maths-nopanic-devel %{_description} -This package contains library source intended for building other packages -which use "maths-nopanic" feature of "%{crate}" crate. +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 @@ -170,8 +167,8 @@ BuildArch: noarch %description -n %{name}+rust-fuzz-devel %{_description} -This package contains library source intended for building other packages -which use "rust-fuzz" feature of "%{crate}" crate. +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 @@ -182,8 +179,8 @@ BuildArch: noarch %description -n %{name}+serde-devel %{_description} -This package contains library source intended for building other packages -which use "serde" feature of "%{crate}" crate. +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 @@ -194,8 +191,8 @@ BuildArch: noarch %description -n %{name}+serde-arbitrary-precision-devel %{_description} -This package contains library source intended for building other packages -which use "serde-arbitrary-precision" feature of "%{crate}" crate. +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 @@ -206,8 +203,8 @@ BuildArch: noarch %description -n %{name}+serde-bincode-devel %{_description} -This package contains library source intended for building other packages -which use "serde-bincode" feature of "%{crate}" crate. +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 @@ -218,8 +215,8 @@ BuildArch: noarch %description -n %{name}+serde-float-devel %{_description} -This package contains library source intended for building other packages -which use "serde-float" feature of "%{crate}" crate. +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 @@ -230,8 +227,8 @@ BuildArch: noarch %description -n %{name}+serde-str-devel %{_description} -This package contains library source intended for building other packages -which use "serde-str" feature of "%{crate}" crate. +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 @@ -242,8 +239,8 @@ BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} -This package contains library source intended for building other packages -which use "serde_json" feature of "%{crate}" crate. +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 @@ -254,8 +251,8 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +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 diff --git a/rust_decimal-fix-metadata.diff b/rust_decimal-fix-metadata.diff index d135f3e..6febe18 100644 --- a/rust_decimal-fix-metadata.diff +++ b/rust_decimal-fix-metadata.diff @@ -1,6 +1,6 @@ ---- rust_decimal-1.17.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ rust_decimal-1.17.0/Cargo.toml 2021-11-05T21:29:10.467471+00:00 -@@ -84,10 +84,6 @@ +--- rust_decimal-1.18.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rust_decimal-1.18.0/Cargo.toml 2021-12-01T20:16:21.290713+00:00 +@@ -88,10 +88,6 @@ [dev-dependencies.bytes] version = "1.0" diff --git a/sources b/sources index 416c795..1288f6c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rust_decimal-1.17.0.crate) = b7d584dbbc1ee287cb919f80a0504c23817b107031462406a9dddc9c0dd11cd953f745a3d70f6cd2fcddcdeda5488acac9cb80f0dda8d06c37bae03f8621d65a +SHA512 (rust_decimal-1.18.0.crate) = 80d4cf15ce30240f52b96c32923695f3131c9c83e66aab8013a4c528312bd15f37adbdacdbeed400cc73376634230feb42ac45db200ee0f1a95c40fa9b7032d1