From d3a078ed427ce277afbc69ae1c3fc799e3ce0a10 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 13 Jan 2024 22:20:24 +0100 Subject: [PATCH] Update to version 0.17.11; Fixes RHBZ#2258269 --- .gitignore | 1 + png-fix-metadata.diff | 8 ++++---- rust-png.spec | 12 ++++++------ rust2rpm.toml | 4 ++++ sources | 2 +- 5 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 934f282..63473ba 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ /png-0.17.7.crate /png-0.17.9.crate /png-0.17.10.crate +/png-0.17.11.crate diff --git a/png-fix-metadata.diff b/png-fix-metadata.diff index 3d66132..cbbfab3 100644 --- a/png-fix-metadata.diff +++ b/png-fix-metadata.diff @@ -1,11 +1,11 @@ ---- png-0.17.10/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ png-0.17.10/Cargo.toml 2023-08-23T09:39:01.853877+00:00 -@@ -55,9 +55,6 @@ +--- png-0.17.11/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ png-0.17.11/Cargo.toml 2024-01-13T21:18:38.474463+00:00 +@@ -64,9 +64,6 @@ version = "3.0" features = ["derive"] -[dev-dependencies.criterion] --version = "0.3.1" +-version = "0.4.0" - [dev-dependencies.getopts] version = "0.2.14" diff --git a/rust-png.spec b/rust-png.spec index 5645f5b..903de78 100644 --- a/rust-png.spec +++ b/rust-png.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 24 -# * missing dev-dependencies: glium +# Generated by rust2rpm 25 +# * missing dev-dependencies: glium ^0.32 %bcond_with check %global debug_package %{nil} %global crate png Name: rust-png -Version: 0.17.10 +Version: 0.17.11 Release: %autorelease Summary: Decoding and encoding library in pure Rust @@ -14,10 +14,10 @@ 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 +# * drop unused, benchmark-only criterion dev-dependency Patch: png-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: PNG decoding and encoding library in pure Rust.} @@ -77,7 +77,7 @@ use the "unstable" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..88b98f2 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["missing dev-dependencies: glium ^0.32"] + diff --git a/sources b/sources index 186b7f4..40b7f88 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (png-0.17.10.crate) = 33fdf0365b3475d7384fac29bfcd95177e822ac33d3adb1d91a1d52ea90a88bcc5facd95daadf02a79190d406f8a855c4ca4b6e09a0012c63ccbe5285d050101 +SHA512 (png-0.17.11.crate) = 4ff7ad4f207ebedcee68b2b4d8a8ce5bccc48a3931939dc13ba23b486cc1ba92cedfe227fc14a21e780fa74eca8c7dcb336b3da4f7474a475d057b0c98389a37