diff --git a/httpdate-fix-metadata.diff b/httpdate-fix-metadata.diff index 2f91ddc..0ffc922 100644 --- a/httpdate-fix-metadata.diff +++ b/httpdate-fix-metadata.diff @@ -1,5 +1,5 @@ --- httpdate-1.0.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ httpdate-1.0.2/Cargo.toml 2021-11-18T11:32:40.627817+00:00 ++++ httpdate-1.0.2/Cargo.toml 2023-06-07T20:40:11.426939+00:00 @@ -23,5 +23,3 @@ [[bench]] name = "benchmarks" diff --git a/rust-httpdate.spec b/rust-httpdate.spec index 006983d..aeb035c 100644 --- a/rust-httpdate.spec +++ b/rust-httpdate.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate httpdate -Name: rust-%{crate} +Name: rust-httpdate Version: 1.0.2 Release: %autorelease Summary: HTTP date parsing and formatting # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/httpdate Source: %{crates_source} -# Initial patched metadata +# Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds -Patch0: httpdate-fix-metadata.diff +Patch: httpdate-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: HTTP date parsing and formatting.} @@ -35,13 +30,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-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1