diff --git a/adler-fix-metadata.diff b/adler-fix-metadata.diff new file mode 100644 index 0000000..72d091e --- /dev/null +++ b/adler-fix-metadata.diff @@ -0,0 +1,11 @@ +--- adler-1.0.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ adler-1.0.2/Cargo.toml 2022-11-04T16:26:43.450488+00:00 +@@ -55,8 +55,6 @@ + version = "1.0.0" + optional = true + package = "rustc-std-workspace-core" +-[dev-dependencies.criterion] +-version = "0.3.2" + + [features] + default = ["std"] diff --git a/rust-adler.spec b/rust-adler.spec index b1466cf..953cfb5 100644 --- a/rust-adler.spec +++ b/rust-adler.spec @@ -1,25 +1,22 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 23 %bcond_without check %global debug_package %{nil} %global crate adler -Name: rust-%{crate} +Name: rust-adler Version: 1.0.2 Release: %autorelease Summary: Simple clean-room implementation of the Adler-32 checksum -# Upstream license specification: 0BSD OR MIT OR Apache-2.0 -License: 0BSD or MIT or ASL 2.0 +License: 0BSD OR MIT OR Apache-2.0 URL: https://crates.io/crates/adler Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: adler-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Simple clean-room implementation of the Adler-32 checksum.} @@ -32,13 +29,17 @@ 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-0BSD LICENSE-APACHE LICENSE-MIT -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-0BSD +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/RELEASE_PROCESS.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,11 +47,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}+std-devel Summary: %{summary} @@ -58,11 +59,11 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} -This package contains library source intended for building other packages -which use "std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf