From 450fa7929f504df3728d963135c921d17077a331 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Wed, 19 Feb 2020 09:04:02 +0100 Subject: [PATCH] Fix FTBFS Signed-off-by: Igor Raits --- chrono-tz-fix-metadata.diff | 13 +++++++++++++ rust-chrono-tz.spec | 16 +++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 chrono-tz-fix-metadata.diff diff --git a/chrono-tz-fix-metadata.diff b/chrono-tz-fix-metadata.diff new file mode 100644 index 0000000..1419488 --- /dev/null +++ b/chrono-tz-fix-metadata.diff @@ -0,0 +1,13 @@ +--- chrono-tz-0.5.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ chrono-tz-0.5.1/Cargo.toml 2020-02-19T08:02:23.405137+00:00 +@@ -28,6 +28,10 @@ + [dependencies.serde] + version = "1" + optional = true ++[dev-dependencies.chrono] ++version = "0.4" ++default-features = false ++features = ["alloc"] + [dev-dependencies.serde_test] + version = "1" + [build-dependencies.parse-zoneinfo] diff --git a/rust-chrono-tz.spec b/rust-chrono-tz.spec index 56eefe0..95a85bd 100644 --- a/rust-chrono-tz.spec +++ b/rust-chrono-tz.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 10 +# Generated by rust2rpm 13 %bcond_without check %global debug_package %{nil} @@ -6,13 +6,16 @@ Name: rust-%{crate} Version: 0.5.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: TimeZone implementations for rust-chrono from the IANA database # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/chrono-tz Source: %{crates_source} +# Initial patched metadata +# * Add missing feature in chrono for tests, https://github.com/chronotope/chrono-tz/commit/6130dbcf8049689b612ea52ebee69f23e1a7078c +Patch0: chrono-tz-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -38,7 +41,7 @@ which use "%{crate}" crate. %files devel %license LICENSE %doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,7 +53,7 @@ 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}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -62,7 +65,7 @@ This package contains library source intended for building other packages which use "serde" feature of "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 @@ -87,6 +90,9 @@ mv .tmp tz %endif %changelog +* Wed Feb 19 09:02:23 CET 2020 Igor Raits - 0.5.1-4 +- Fix FTBFS + * Thu Jan 30 2020 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild