From 17343f6c47080fdc71dbf198ddf163886881116c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 9 Aug 2022 11:22:25 +0200 Subject: [PATCH] Bump gzip-header from 0.3 to 1 --- deflate-fix-metadata.diff | 11 +++++++++++ rust-deflate0.8.spec | 27 ++++++++++++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 deflate-fix-metadata.diff diff --git a/deflate-fix-metadata.diff b/deflate-fix-metadata.diff new file mode 100644 index 0000000..b63d82f --- /dev/null +++ b/deflate-fix-metadata.diff @@ -0,0 +1,11 @@ +--- deflate-0.8.6/Cargo.toml 2020-07-06T16:16:04+00:00 ++++ deflate-0.8.6/Cargo.toml 2022-08-09T09:18:35.554574+00:00 +@@ -33,7 +33,7 @@ + version = "1" + + [dependencies.gzip-header] +-version = "0.3" ++version = "1" + optional = true + [dev-dependencies.miniz_oxide] + version = "0.3.6" diff --git a/rust-deflate0.8.spec b/rust-deflate0.8.spec index ee60eac..0be0e1c 100644 --- a/rust-deflate0.8.spec +++ b/rust-deflate0.8.spec @@ -1,23 +1,26 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 # * files that are required by tests are not included in published crates %bcond_with check %global debug_package %{nil} %global crate deflate -Name: rust-%{crate}0.8 +Name: rust-deflate0.8 Version: 0.8.6 Release: %autorelease Summary: DEFLATE, zlib and gzip encoder written in rust # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/deflate Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump gzip-header from 0.3 to 1 +Patch: deflate-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: DEFLATE, zlib and gzip encoder written in rust.} @@ -34,9 +37,11 @@ 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 changelog.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/changelog.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,7 +53,7 @@ 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}+benchmarks-devel Summary: %{summary} @@ -60,7 +65,7 @@ This package contains library source intended for building other packages which use the "benchmarks" feature of the "%{crate}" crate. %files -n %{name}+benchmarks-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gzip-devel Summary: %{summary} @@ -72,7 +77,7 @@ This package contains library source intended for building other packages which use the "gzip" feature of the "%{crate}" crate. %files -n %{name}+gzip-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gzip-header-devel Summary: %{summary} @@ -84,7 +89,7 @@ This package contains library source intended for building other packages which use the "gzip-header" feature of the "%{crate}" crate. %files -n %{name}+gzip-header-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1