diff --git a/.gitignore b/.gitignore index 046b977..5433389 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /png-0.16.7.crate /png-0.16.8.crate /png-0.17.2.crate +/png-0.17.5.crate diff --git a/png-fix-metadata.diff b/png-fix-metadata.diff new file mode 100644 index 0000000..0bc8eb2 --- /dev/null +++ b/png-fix-metadata.diff @@ -0,0 +1,11 @@ +--- png-0.17.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ png-0.17.5/Cargo.toml 2022-08-09T09:01:56.564867+00:00 +@@ -35,8 +35,6 @@ + + [dependencies.miniz_oxide] + version = "0.5.1" +-[dev-dependencies.criterion] +-version = "0.3.1" + + [dev-dependencies.getopts] + version = "0.2.14" diff --git a/rust-png.spec b/rust-png.spec index 3bf427c..b928ea6 100644 --- a/rust-png.spec +++ b/rust-png.spec @@ -1,23 +1,25 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 22 # * glium is not packaged %bcond_with check %global debug_package %{nil} %global crate png -Name: rust-%{crate} -Version: 0.17.2 +Name: rust-png +Version: 0.17.5 Release: %autorelease Summary: PNG decoding and encoding library in pure Rust -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/png Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency to speed up builds +Patch: png-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: PNG decoding and encoding library in pure Rust.} @@ -34,9 +36,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGES.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGES.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,7 +52,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 +64,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}+unstable-devel Summary: %{summary} @@ -72,7 +76,7 @@ This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-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/sources b/sources index 17adb81..ee1f67c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (png-0.17.2.crate) = 4f163517a1a9267e3e974c431c75695d8e78f99db10fe351b02d37edb570444565eda750ab3b9fdf3d8752115541e3f30397d49426b551fa83628e561539c1cb +SHA512 (png-0.17.5.crate) = 43df7662a4e31e2b734b913439e32748da149680976286ea54c7bc2aecfd8550b35956266224e6ffc410b22c40ee2ee166219602e07c3e9c3500737e5bbef7ec