diff --git a/jwalk-fix-metadata.diff b/jwalk-fix-metadata.diff new file mode 100644 index 0000000..5aca5a4 --- /dev/null +++ b/jwalk-fix-metadata.diff @@ -0,0 +1,11 @@ +--- jwalk-0.6.0/Cargo.toml 2021-01-06T22:42:05+00:00 ++++ jwalk-0.6.0/Cargo.toml 2022-11-04T18:02:27.108232+00:00 +@@ -32,8 +32,6 @@ + + [dependencies.rayon] + version = "1.5" +-[dev-dependencies.criterion] +-version = "0.3" + + [dev-dependencies.fs_extra] + version = "1.1" diff --git a/rust-jwalk.spec b/rust-jwalk.spec index 0373ac4..efe31ec 100644 --- a/rust-jwalk.spec +++ b/rust-jwalk.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate jwalk -Name: rust-%{crate} +Name: rust-jwalk Version: 0.6.0 Release: %autorelease Summary: Filesystem walk performed in parallel with streamed and sorted results -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/jwalk Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: jwalk-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Filesystem walk performed in parallel with streamed and sorted results.} @@ -32,13 +29,14 @@ 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 -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +44,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1