From 10eeeb0e65c439aad65384dff2345bbba59d2fd7 Mon Sep 17 00:00:00 2001 From: blinxen Date: Sat, 10 Aug 2024 12:55:51 +0200 Subject: [PATCH] Update to version 4.3.3 (rhbz#2302752) --- .gitignore | 1 + rust-imagequant.spec | 9 +++++---- rust2rpm.toml | 10 ++++++++++ sources | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index c07e621..a7b0915 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /imagequant-4.2.2.crate /imagequant-4.3.0.crate /imagequant-4.3.1.crate +/imagequant-4.3.3.crate diff --git a/rust-imagequant.spec b/rust-imagequant.spec index 8966ea9..515b50e 100644 --- a/rust-imagequant.spec +++ b/rust-imagequant.spec @@ -5,18 +5,16 @@ %global crate imagequant Name: rust-imagequant -Version: 4.3.1 +Version: 4.3.3 Release: %autorelease Summary: Convert 24/32-bit images to 8-bit palette with alpha channel License: GPL-3.0-or-later URL: https://crates.io/crates/imagequant Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * Drop benchmark dependency (lodepng) -Patch: imagequant-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: tomcli %global _description %{expand: Convert 24/32-bit images to 8-bit palette with alpha channel. For lossy @@ -89,6 +87,9 @@ use the "threads" feature of the "%{crate}" crate. %prep %autosetup -n %{crate}-%{version} -p1 +# Remove benchmark-only dependency +tomcli-set Cargo.toml del 'dev-dependencies.lodepng' + %cargo_prep %generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..2835cac --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,10 @@ +[requires] +build = ["tomcli"] + +[scripts.prep] +pre = [ +""" +# Remove benchmark-only dependency +tomcli-set Cargo.toml del 'dev-dependencies.lodepng' +""" +] diff --git a/sources b/sources index c26c1c5..934497b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (imagequant-4.3.1.crate) = 239176568a20b7f0512d80006874287f0411500105dd1c75ecd7829af8b095945709eca21ddea6d47677b71dde7233df245f4602a5a2b14b96bae1efe1482df0 +SHA512 (imagequant-4.3.3.crate) = 66bd4820517b0774de364709d5fd4fd3613684e086f34c59fe064c0d453181b371a69587b27678cb3436d865ba159c9e8c5580391fbc77fea767546308a17921