diff --git a/.gitignore b/.gitignore index 793f00b..8bb4c9d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /zopfli-0.4.0.crate +/zopfli-0.5.0.crate diff --git a/rust-zopfli.spec b/rust-zopfli.spec index e04b6f7..1c5c6ea 100644 --- a/rust-zopfli.spec +++ b/rust-zopfli.spec @@ -1,10 +1,10 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 20 %bcond_without check %global crate zopfli Name: rust-%{crate} -Version: 0.4.0 +Version: 0.5.0 Release: %autorelease Summary: Rust implementation of a compression algorithm @@ -12,11 +12,11 @@ Summary: Rust implementation of a compression algorithm License: ASL 2.0 URL: https://crates.io/crates/zopfli Source: %{crates_source} +# Initial patched metadata +# Downgrade typed-arena to version 1.7 +Patch0: zopfli-fix-metadata.diff ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -25,7 +25,6 @@ Rust implementation of the Zopfli compression algorithm.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # MIT @@ -38,9 +37,8 @@ License: MIT and ASL 2.0 and Unlicense and zlib %files -n %{crate} %license COPYING -%doc README.md -%{_bindir}/zopfli-rs -%endif +%doc CONTRIBUTING.md CONTRIBUTORS README.md +%{_bindir}/zopfli %package devel Summary: %{summary} @@ -53,7 +51,7 @@ which use "%{crate}" crate. %files devel %license COPYING -%doc README.md +%doc CONTRIBUTING.md CONTRIBUTORS README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel @@ -62,8 +60,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 @@ -80,7 +78,6 @@ which use "default" feature of "%{crate}" crate. %install %cargo_install -mv %{buildroot}/usr/bin/zopfli %{buildroot}/usr/bin/zopfli-rs %if %{with check} %check diff --git a/sources b/sources index b6e5026..a5255e9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zopfli-0.4.0.crate) = dbd231667d7550662f22a2a3e12774e2bf196b076f64dfdd5d914373356ead15c9b641983091bcae4bdd8f22128118c3933277b378caa9eac4f1074457957522 +SHA512 (zopfli-0.5.0.crate) = f8ea69c3aea08a53851e177e3579c46076271d28f6fe2da55ebd46a5f6d918afd084c0dc372313f4a06798ceb35adb577ce30bf272f273b842ba95172be3c9ec diff --git a/zopfli-fix-metadata.diff b/zopfli-fix-metadata.diff new file mode 100644 index 0000000..487f6ef --- /dev/null +++ b/zopfli-fix-metadata.diff @@ -0,0 +1,8 @@ +--- zopfli-0.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ zopfli-0.5.0/Cargo.toml 2022-01-17T22:21:57.128813+00:00 +@@ -35,4 +35,4 @@ + version = "2" + + [dependencies.typed-arena] +-version = "2" ++version = "1.7"