diff --git a/rust-tiff.spec b/rust-tiff.spec index b2244b2..74fb99a 100644 --- a/rust-tiff.spec +++ b/rust-tiff.spec @@ -1,25 +1,25 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 22 %bcond_without check %global debug_package %{nil} %global crate tiff -Name: rust-%{crate} +Name: rust-tiff Version: 0.6.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: TIFF decoding and encoding library in pure Rust -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/tiff Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +# * bump miniz_oxide from 0.4.1 to 0.5 +Patch: tiff-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: TIFF decoding and encoding library in pure Rust.} @@ -32,14 +32,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 CHANGES.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ -%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/.github/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGES.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -68,11 +68,14 @@ which use "default" feature of "%{crate}" crate. %if %{with check} %check -# Test files are missing +# * files that are required by doctests are not included in published crates %cargo_test -- --doc %endif %changelog +* Tue Aug 09 2022 Fabio Valentini - 0.6.1-6 +- Bump miniz_oxide from 0.4.1 to 0.5. + * Sat Jul 23 2022 Fedora Release Engineering - 0.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild diff --git a/tiff-fix-metadata.diff b/tiff-fix-metadata.diff new file mode 100644 index 0000000..242815e --- /dev/null +++ b/tiff-fix-metadata.diff @@ -0,0 +1,14 @@ +--- tiff-0.6.1/Cargo.toml 2020-12-12T19:23:19+00:00 ++++ tiff-0.6.1/Cargo.toml 2022-08-09T09:24:26.267859+00:00 +@@ -29,10 +29,7 @@ + package = "jpeg-decoder" + + [dependencies.miniz_oxide] +-version = "0.4.1" +-features = ["no_extern_crate_alloc"] ++version = "0.5" + + [dependencies.weezl] + version = "0.1.0" +-[dev-dependencies.criterion] +-version = "0.3.1"