From 29d04b2b81abca3925f541b20f3d70287fb97105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Wed, 15 Dec 2021 12:18:06 -0500 Subject: [PATCH] Update to version 5.0.1; Fixes RHBZ#1981211 --- .gitignore | 1 + oxipng-fix-metadata.diff | 20 +++++++------- rust-oxipng.spec | 59 ++++++++++++++++++---------------------- sources | 2 +- 4 files changed, 39 insertions(+), 43 deletions(-) diff --git a/.gitignore b/.gitignore index 191dc99..3c47fc1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /oxipng-4.0.3.crate /oxipng-5.0.0.crate +/oxipng-5.0.1.crate diff --git a/oxipng-fix-metadata.diff b/oxipng-fix-metadata.diff index d777a44..00482f2 100644 --- a/oxipng-fix-metadata.diff +++ b/oxipng-fix-metadata.diff @@ -1,11 +1,11 @@ ---- oxipng-5.0.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ oxipng-5.0.0/Cargo.toml 2021-07-12T05:40:24.907884+00:00 -@@ -100,7 +100,7 @@ - version = "^0.4.0" - optional = true - [build-dependencies.rustc_version] --version = "0.4" -+version = "0.3" +--- oxipng-5.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ oxipng-5.0.1/Cargo.toml 2021-12-15T17:02:37.876072+00:00 +@@ -78,7 +78,7 @@ + version = "0.4.14" - [features] - binary = ["clap", "wild", "stderrlog"] + [dependencies.miniz_oxide] +-version = "0.5" ++version = "0.4" + + [dependencies.rayon] + version = "^1.5.0" diff --git a/rust-oxipng.spec b/rust-oxipng.spec index f3579b6..b126bf5 100644 --- a/rust-oxipng.spec +++ b/rust-oxipng.spec @@ -1,10 +1,10 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 20 %bcond_without check %global crate oxipng Name: rust-%{crate} -Version: 5.0.0 +Version: 5.0.1 Release: %autorelease Summary: Lossless PNG compression optimizer @@ -13,13 +13,10 @@ License: MIT URL: https://crates.io/crates/oxipng Source: %{crates_source} # Initial patched metadata -# * Downgrade rustc_version to version 0.3 +# Downgrade miniz_oxide to version 0.4 Patch0: oxipng-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -28,7 +25,6 @@ Lossless PNG compression optimizer.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # ASL 2.0 @@ -47,9 +43,8 @@ License: ASL 2.0 and MIT and zlib and Unlicense %files -n %{crate} %license LICENSE -%doc README.md CHANGELOG.md +%doc CHANGELOG.md README.md README.template.md %{_bindir}/oxipng -%endif %package devel Summary: %{summary} @@ -57,12 +52,12 @@ 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 "%{crate}" crate. %files devel %license LICENSE -%doc README.md CHANGELOG.md +%doc CHANGELOG.md README.md README.template.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -71,8 +66,8 @@ 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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -83,8 +78,8 @@ BuildArch: noarch %description -n %{name}+binary-devel %{_description} -This package contains library source intended for building other packages -which use "binary" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "binary" feature of "%{crate}" crate. %files -n %{name}+binary-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -95,8 +90,8 @@ BuildArch: noarch %description -n %{name}+clap-devel %{_description} -This package contains library source intended for building other packages -which use "clap" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "clap" feature of "%{crate}" crate. %files -n %{name}+clap-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -107,8 +102,8 @@ BuildArch: noarch %description -n %{name}+filetime-devel %{_description} -This package contains library source intended for building other packages -which use "filetime" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "filetime" feature of "%{crate}" crate. %files -n %{name}+filetime-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -119,8 +114,8 @@ BuildArch: noarch %description -n %{name}+libdeflater-devel %{_description} -This package contains library source intended for building other packages -which use "libdeflater" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "libdeflater" feature of "%{crate}" crate. %files -n %{name}+libdeflater-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -131,8 +126,8 @@ BuildArch: noarch %description -n %{name}+parallel-devel %{_description} -This package contains library source intended for building other packages -which use "parallel" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "parallel" feature of "%{crate}" crate. %files -n %{name}+parallel-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -143,8 +138,8 @@ BuildArch: noarch %description -n %{name}+rayon-devel %{_description} -This package contains library source intended for building other packages -which use "rayon" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "rayon" feature of "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -155,8 +150,8 @@ BuildArch: noarch %description -n %{name}+stderrlog-devel %{_description} -This package contains library source intended for building other packages -which use "stderrlog" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "stderrlog" feature of "%{crate}" crate. %files -n %{name}+stderrlog-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -167,8 +162,8 @@ BuildArch: noarch %description -n %{name}+wild-devel %{_description} -This package contains library source intended for building other packages -which use "wild" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "wild" feature of "%{crate}" crate. %files -n %{name}+wild-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml @@ -179,8 +174,8 @@ BuildArch: noarch %description -n %{name}+zopfli-devel %{_description} -This package contains library source intended for building other packages -which use "zopfli" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use "zopfli" feature of "%{crate}" crate. %files -n %{name}+zopfli-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml diff --git a/sources b/sources index 68f9c0a..2eee8b6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (oxipng-5.0.0.crate) = ea64b04d1e14aba856b9aac63ee9b374782fe39ba448a4c5d7a75c845d960eb0b633a28efaf9bc630a07972ad7d91101c440d9eb09796aa8aa95c18175fee3fa +SHA512 (oxipng-5.0.1.crate) = ab3568647fc6b0c9f30cb3e08bce0648a67ae8b924fe0909c8088477d25221bf500535c1d69c896be7622ca3e40da65f4fad5970af42d9b29e33fdfc33ccb84a