From 0d4736a6330021b76e4d82e45aa397700764f951 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 15 Jul 2022 13:29:50 +0200 Subject: [PATCH] Update to version 0.11.4; Fixes RHBZ#2101306 --- .gitignore | 1 + gif-fix-metadata.diff | 13 +++++++------ rust-gif.spec | 39 +++++++++++++++++++-------------------- sources | 2 +- 4 files changed, 28 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index 0444f91..9397347 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /gif-0.11.1.crate /gif-0.11.2.crate /gif-0.11.3.crate +/gif-0.11.4.crate diff --git a/gif-fix-metadata.diff b/gif-fix-metadata.diff index e213be2..88844cd 100644 --- a/gif-fix-metadata.diff +++ b/gif-fix-metadata.diff @@ -1,11 +1,12 @@ ---- gif-0.11.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ gif-0.11.3/Cargo.toml 2021-11-06T14:17:09.636376+00:00 -@@ -47,8 +47,6 @@ - +--- gif-0.11.4/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ gif-0.11.4/Cargo.toml 2022-07-15T11:28:33.000904+00:00 +@@ -63,9 +63,6 @@ [dependencies.weezl] - version = "0.1.4" + version = "0.1.5" + -[dev-dependencies.criterion] -version = "0.3.1" - +- [dev-dependencies.glob] version = "0.3" + diff --git a/rust-gif.spec b/rust-gif.spec index a6fea78..b8685fd 100644 --- a/rust-gif.spec +++ b/rust-gif.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 18 +# Generated by rust2rpm 21 # * files required by tests are not included in published crates: # https://github.com/PistonDevelopers/image-gif/issues/51 %bcond_with check @@ -7,7 +7,7 @@ %global crate gif Name: rust-%{crate} -Version: 0.11.3 +Version: 0.11.4 Release: %autorelease Summary: GIF de- and encoder @@ -20,11 +20,8 @@ Source: %{crates_source} Patch0: gif-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: GIF de- and encoder.} @@ -37,13 +34,15 @@ 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-MIT LICENSE-APACHE -%doc README.md Changes.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} @@ -51,11 +50,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}+raii_no_panic-devel Summary: %{summary} @@ -63,11 +62,11 @@ BuildArch: noarch %description -n %{name}+raii_no_panic-devel %{_description} -This package contains library source intended for building other packages -which use "raii_no_panic" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "raii_no_panic" feature of the "%{crate}" crate. %files -n %{name}+raii_no_panic-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -75,11 +74,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/sources b/sources index 53522d4..5c2d499 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gif-0.11.3.crate) = e581ce1e9099a7ebc913e20ace1cacb2c87a7fba178bce43bf7285fc1dc9b9eda55848204923cd18eaab9012a814232f9e587e4c0db6bad89cb91bf197591e46 +SHA512 (gif-0.11.4.crate) = 3de0534b35bd783b54715e7f8a92f2d8a22934949627716cc3ade3c8036489d2b9604292eeeeced820b149865bc44a5de9d05700ebace073b48737759b5296b9