diff --git a/.gitignore b/.gitignore index b43c024..0444f91 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /gif-0.10.3.crate /gif-0.11.1.crate /gif-0.11.2.crate +/gif-0.11.3.crate diff --git a/gif-fix-metadata.diff b/gif-fix-metadata.diff new file mode 100644 index 0000000..e213be2 --- /dev/null +++ b/gif-fix-metadata.diff @@ -0,0 +1,11 @@ +--- 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 @@ + + [dependencies.weezl] + version = "0.1.4" +-[dev-dependencies.criterion] +-version = "0.3.1" + + [dev-dependencies.glob] + version = "0.3" diff --git a/rust-gif.spec b/rust-gif.spec index c382911..a6fea78 100644 --- a/rust-gif.spec +++ b/rust-gif.spec @@ -1,12 +1,13 @@ -# Generated by rust2rpm 16 -# * https://github.com/PistonDevelopers/image-gif/issues/51 +# Generated by rust2rpm 18 +# * files required by tests are not included in published crates: +# https://github.com/PistonDevelopers/image-gif/issues/51 %bcond_with check %global debug_package %{nil} %global crate gif Name: rust-%{crate} -Version: 0.11.2 +Version: 0.11.3 Release: %autorelease Summary: GIF de- and encoder @@ -14,6 +15,9 @@ Summary: GIF de- and encoder License: MIT or ASL 2.0 URL: https://crates.io/crates/gif Source: %{crates_source} +# Initial patched metadata +# * drop unused benchmark-only criterion dev-dependency to speed up builds +Patch0: gif-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -38,7 +42,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-MIT LICENSE-APACHE -%doc README.md +%doc README.md Changes.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel diff --git a/sources b/sources index 62ac0cb..53522d4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gif-0.11.2.crate) = 02f2bacda1e4f43ddbb4f7c6843478056ff01cb815a7c8f9c4d14618781bbafe113cacb812c3788454e8a4241efd6a90792a00cfe84c334349331258bbec71d7 +SHA512 (gif-0.11.3.crate) = e581ce1e9099a7ebc913e20ace1cacb2c87a7fba178bce43bf7285fc1dc9b9eda55848204923cd18eaab9012a814232f9e587e4c0db6bad89cb91bf197591e46