From 7f444bbd8e454aead8ec2b0156a0d5bc7ca9baa8 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 5 Oct 2022 22:30:30 +0200 Subject: [PATCH] drop unused, benchmark-only criterion dev-dependency to speed up builds --- rust-seahash.spec | 39 ++++++++++++++++++++------------------- seahash-fix-metadata.diff | 15 +++++++++++++++ 2 files changed, 35 insertions(+), 19 deletions(-) create mode 100644 seahash-fix-metadata.diff diff --git a/rust-seahash.spec b/rust-seahash.spec index 653c50e..3f10c65 100644 --- a/rust-seahash.spec +++ b/rust-seahash.spec @@ -1,26 +1,25 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate seahash -Name: rust-%{crate} +Name: rust-seahash Version: 4.1.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Blazingly fast, portable hash function with proven statistical guarantees -# Upstream license specification: MIT # https://github.com/redox-os/tfs/pull/76 License: MIT URL: https://crates.io/crates/seahash Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: seahash-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Blazingly fast, portable hash function with proven statistical guarantees.} @@ -33,13 +32,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 -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ -%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/logo.png +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,11 +45,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}+use_std-devel Summary: %{summary} @@ -59,11 +57,11 @@ BuildArch: noarch %description -n %{name}+use_std-devel %{_description} -This package contains library source intended for building other packages -which use "use_std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "use_std" feature of the "%{crate}" crate. %files -n %{name}+use_std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -84,6 +82,9 @@ which use "use_std" feature of "%{crate}" crate. %endif %changelog +* Wed Oct 05 2022 Fabio Valentini - 4.1.0-5 +- Drop unused, benchmark-only criterion dev-dependency to speed up builds. + * Sat Jul 23 2022 Fedora Release Engineering - 4.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/seahash-fix-metadata.diff b/seahash-fix-metadata.diff new file mode 100644 index 0000000..2cdb0f3 --- /dev/null +++ b/seahash-fix-metadata.diff @@ -0,0 +1,15 @@ +--- seahash-4.1.0/Cargo.toml 2021-01-16T05:41:29+00:00 ++++ seahash-4.1.0/Cargo.toml 2022-10-05T20:28:20.913429+00:00 +@@ -21,12 +21,6 @@ + license = "MIT" + repository = "https://gitlab.redox-os.org/redox-os/seahash" + +-[[bench]] +-name = "bench" +-harness = false +-[dev-dependencies.criterion] +-version = "0.3" +- + [dev-dependencies.quickcheck] + version = "0.9.2" +