diff --git a/.gitignore b/.gitignore index 81ca617..3971738 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /phf_generator-0.7.23.crate /phf_generator-0.7.24.crate /phf_generator-0.8.0.crate +/phf_generator-0.10.0.crate diff --git a/phf_generator-fix-metadata.diff b/phf_generator-fix-metadata.diff new file mode 100644 index 0000000..f3fe292 --- /dev/null +++ b/phf_generator-fix-metadata.diff @@ -0,0 +1,17 @@ +--- phf_generator-0.10.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ phf_generator-0.10.0/Cargo.toml 2022-02-13T14:51:17.931764+00:00 +@@ -26,7 +26,7 @@ + name = "benches" + harness = false + [dependencies.criterion] +-version = "=0.3.4" ++version = "0.3" + optional = true + + [dependencies.phf_shared] +@@ -37,4 +37,4 @@ + version = "0.8" + features = ["small_rng"] + [dev-dependencies.criterion] +-version = "=0.3.4" ++version = "0.3" diff --git a/rust-phf_generator.spec b/rust-phf_generator.spec index d4aa36e..2cc1e34 100644 --- a/rust-phf_generator.spec +++ b/rust-phf_generator.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 20 %bcond_without check %global debug_package %{nil} @@ -8,7 +8,7 @@ %global crate phf_generator Name: rust-%{crate} -Version: 0.8.0 +Version: 0.10.0 Release: %autorelease Summary: PHF generation logic @@ -17,11 +17,11 @@ Summary: PHF generation logic License: MIT URL: https://crates.io/crates/phf_generator Source: %{crates_source} +# Initial patched metadata +# * Unpin criterion (we don't promise MSRV) +Patch0: phf_generator-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -36,8 +36,8 @@ 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 %{cargo_registry}/%{crate}-%{version_no_tilde}/ @@ -48,8 +48,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 @@ -60,8 +60,8 @@ BuildArch: noarch %description -n %{name}+criterion-devel %{_description} -This package contains library source intended for building other packages -which use "criterion" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "criterion" feature of the "%{crate}" crate. %files -n %{name}+criterion-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index ca1e277..b27ba16 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (phf_generator-0.8.0.crate) = de045f47567defd43fe32fc62191a9a892e5a478e1a84b853cff3005e94967ded68e5770eacb43f2e97e58b8f4283327a38a3bdbd55e1d5c708dab601ea66270 +SHA512 (phf_generator-0.10.0.crate) = b6542d816b2e963c169df695d332f92237ba380f49bf919021514a16aef71de8f4f70b9612356db9f345f3f0d3656b2b39a4f34f8ffa8515510b81f1b19cb9f7