From 5ccb0f5815bd72869c7cdc4877ddfbc52be96a36 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 7 Mar 2022 00:47:13 +0100 Subject: [PATCH] Update to version 1.8.0; Fixes RHBZ#2038417 --- .gitignore | 1 + .rust2rpm.conf | 3 +++ rust-indexmap.spec | 63 +++++++++++++++++++++++----------------------- sources | 2 +- 4 files changed, 36 insertions(+), 33 deletions(-) create mode 100644 .rust2rpm.conf diff --git a/.gitignore b/.gitignore index 22c9a07..246449b 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /indexmap-1.6.1.crate /indexmap-1.6.2.crate /indexmap-1.7.0.crate +/indexmap-1.8.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..94c5a03 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + rustc-rayon diff --git a/rust-indexmap.spec b/rust-indexmap.spec index 99ef5e6..f61158e 100644 --- a/rust-indexmap.spec +++ b/rust-indexmap.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate indexmap Name: rust-%{crate} -Version: 1.7.0 +Version: 1.8.0 Release: %autorelease Summary: Hash table with consistent order and fast iteration @@ -15,11 +15,8 @@ URL: https://crates.io/crates/indexmap Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Hash table with consistent order and fast iteration. @@ -39,13 +36,15 @@ 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-MIT LICENSE-APACHE -%doc README.rst -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.rst +%doc %{crate_instdir}/RELEASES.rst +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -53,11 +52,11 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} @@ -65,11 +64,11 @@ BuildArch: noarch %description -n %{name}+rayon-devel %{_description} -This package contains library source intended for building other packages -which use "rayon" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -77,11 +76,11 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-1-devel Summary: %{summary} @@ -89,11 +88,11 @@ BuildArch: noarch %description -n %{name}+serde-1-devel %{_description} -This package contains library source intended for building other packages -which use "serde-1" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "serde-1" feature of the "%{crate}" crate. %files -n %{name}+serde-1-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -101,11 +100,11 @@ 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 +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test_debug-devel Summary: %{summary} @@ -113,11 +112,11 @@ BuildArch: noarch %description -n %{name}+test_debug-devel %{_description} -This package contains library source intended for building other packages -which use "test_debug" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "test_debug" feature of the "%{crate}" crate. %files -n %{name}+test_debug-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+test_low_transition_point-devel Summary: %{summary} @@ -125,11 +124,11 @@ BuildArch: noarch %description -n %{name}+test_low_transition_point-devel %{_description} -This package contains library source intended for building other packages -which use "test_low_transition_point" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "test_low_transition_point" feature of the "%{crate}" crate. %files -n %{name}+test_low_transition_point-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/sources b/sources index 2e92323..d5d0eb0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (indexmap-1.7.0.crate) = 9b882b4a7068a686acaee0a08bd4f3b35b58d36e786358cf14a3436eb61339649e64f1757331cc7833a2fa364c76eb6b75cf0c732afaeb202113de1e66b72ab9 +SHA512 (indexmap-1.8.0.crate) = 6af44320a80c8256291cc6e3c90311ce67b7f69ce039d640bb3abbcb6057f16eb443a407060ba647d7b16f44214acf59b566772a4802ba5000f036f69ca82a43