From 7f2e2b3c4f0f933fe3c7ffcde2af542f344516c3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 13 Jan 2024 22:59:04 +0100 Subject: [PATCH] Update to version 0.9.1; Fixes RHBZ#2258272 --- .gitignore | 1 + README.md | 3 --- rust-tiff.spec | 10 +++++----- rust2rpm.toml | 4 ++++ sources | 2 +- tiff-fix-metadata.diff | 17 ++++++++++++++--- 6 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 README.md create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 87b4cfe..64cff12 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /tiff-0.7.3.crate /tiff-0.8.1.crate /tiff-0.9.0.crate +/tiff-0.9.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 6c05596..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-tiff - -The rust-tiff package \ No newline at end of file diff --git a/rust-tiff.spec b/rust-tiff.spec index bca9f01..d845eab 100644 --- a/rust-tiff.spec +++ b/rust-tiff.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate tiff Name: rust-tiff -Version: 0.9.0 +Version: 0.9.1 Release: %autorelease Summary: Decoding and encoding library in pure Rust @@ -13,10 +13,10 @@ License: MIT URL: https://crates.io/crates/tiff 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: tiff-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: TIFF decoding and encoding library in pure Rust.} @@ -51,7 +51,7 @@ use the "default" 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..5c2462d --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["doc"] +comments = ["files for unit / integration tests are not included in published crates"] + diff --git a/sources b/sources index daf1502..032ce6e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tiff-0.9.0.crate) = cd13530a976cc8cb24e649568b1833ec7eed1709a41b02c298b68e406b78b6de622d3ce32123fbbbbf0e5fcfab9a6c319a356db352fa83fec819dd318cb1e6ff +SHA512 (tiff-0.9.1.crate) = 82419e671c6a896f1d639d46a3c5a019e3bff6c75d961b838f5311e5ecb31c3baafc5f88fe928e88f6b3b31881a867ea4ca9905f43e3e24f77f183260dc27b93 diff --git a/tiff-fix-metadata.diff b/tiff-fix-metadata.diff index 4edabf1..cec6c73 100644 --- a/tiff-fix-metadata.diff +++ b/tiff-fix-metadata.diff @@ -1,6 +1,17 @@ ---- tiff-0.9.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ tiff-0.9.0/Cargo.toml 2023-08-12T10:33:11.633420+00:00 -@@ -43,6 +43,3 @@ +--- tiff-0.9.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ tiff-0.9.1/Cargo.toml 2024-01-13T21:57:31.938819+00:00 +@@ -29,10 +29,6 @@ + repository = "https://github.com/image-rs/image-tiff" + resolver = "2" + +-[[bench]] +-name = "lzw" +-harness = false +- + [dependencies.flate2] + version = "1.0.20" + +@@ -43,6 +39,3 @@ [dependencies.weezl] version = "0.1.0"