From 86b085717d6e0917fdd870d68e6964d1ec201e95 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 2 Jul 2024 23:41:52 -0400 Subject: [PATCH] Update to 2.0.0 (close RHBZ#2292871) --- .gitignore | 1 + rust-rustc-hash.spec | 25 +++++++++++++++++++------ rust2rpm.toml | 4 ++++ sources | 2 +- 4 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 2ea4c22..a0f3a65 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /rustc-hash-1.0.1.crate /rustc-hash-1.1.0.crate +/rustc-hash-2.0.0.crate diff --git a/rust-rustc-hash.spec b/rust-rustc-hash.spec index 6f51947..8fa1bf6 100644 --- a/rust-rustc-hash.spec +++ b/rust-rustc-hash.spec @@ -1,23 +1,23 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate rustc-hash Name: rust-rustc-hash -Version: 1.1.0 +Version: 2.0.0 Release: %autorelease -Summary: Speed, non-cryptographic hash used in rustc +Summary: Speedy, non-cryptographic hashing algorithm used by rustc # Upstream license specification: Apache-2.0/MIT License: Apache-2.0 OR MIT URL: https://crates.io/crates/rustc-hash Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: -Speed, non-cryptographic hash used in rustc.} +A speedy, non-cryptographic hashing algorithm used by rustc.} %description %{_description} @@ -33,6 +33,7 @@ use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/README.md %{crate_instdir}/ @@ -49,6 +50,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+rand-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+rand-devel %{_description} + +This package contains library source intended for building other packages which +use the "rand" feature of the "%{crate}" crate. + +%files -n %{name}+rand-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -62,7 +75,7 @@ use the "std" feature of the "%{crate}" crate. %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/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..8cf1402 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[features] +hide = [ + "nightly", +] diff --git a/sources b/sources index f96ed5d..3f39edb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rustc-hash-1.1.0.crate) = 84e673ea9b046f7b989d47f2c4505557fbd5de991e6fc9f56a03605d40e0b4ba5427cd566954890153cc033ccbec6c984306634571935bfe0d4cdfbe56f39544 +SHA512 (rustc-hash-2.0.0.crate) = 996ad683db2e6839ee28fdc4a31293aecce7baefaf6051220a633a00beddef1be41aef0995d7501e5b92dbc85350ced920bc980d05f5ba235e9a5d1a13464339