drop unused, benchmark-only criterion dev-dependency to speed up builds

epel9 imports/e9/rust-seahash-4.1.0-5.el9
Fabio Valentini 2 years ago
parent 6c59db2d62
commit 7f444bbd8e
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -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 <decathorpe@gmail.com> - 4.1.0-5
- Drop unused, benchmark-only criterion dev-dependency to speed up builds.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

@ -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"
Loading…
Cancel
Save