From 9bee250accc40398b087b6e6546d85e17a612ca6 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 22 Aug 2024 21:08:26 -0400 Subject: [PATCH] Allow chrono-tz 0.9 --- rust-tzfile.spec | 8 ++++---- tzfile-fix-metadata.diff | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rust-tzfile.spec b/rust-tzfile.spec index 641497f..208a209 100644 --- a/rust-tzfile.spec +++ b/rust-tzfile.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -14,10 +14,10 @@ URL: https://crates.io/crates/tzfile Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency to speed up builds -# * bump chrono-tz dev-dependency from 0.5 to 0.8 +# * adjust chrono-tz dev-dependency to allow up to 0.9 Patch: tzfile-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Chrono::TimeZone implementation using system tz database.} @@ -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/tzfile-fix-metadata.diff b/tzfile-fix-metadata.diff index 9361b4b..690ed07 100644 --- a/tzfile-fix-metadata.diff +++ b/tzfile-fix-metadata.diff @@ -1,5 +1,5 @@ --- tzfile-0.1.3/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ tzfile-0.1.3/Cargo.toml 2023-08-31T22:50:06.909898+00:00 ++++ tzfile-0.1.3/Cargo.toml 2024-08-23T01:06:28.808395+00:00 @@ -32,10 +32,7 @@ version = "0.4" @@ -8,7 +8,7 @@ - -[dev-dependencies.criterion] -version = "0.3" -+version = "0.8" ++version = ">= 0.5, < 0.10" [dev-dependencies.lazy_static] version = "1.1"