From 063687075ed8affe5e8850706b239957d4a33a0e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 1 Jun 2022 17:02:32 +0200 Subject: [PATCH] Relax toml dependency from =0.5.8 to ^0.5.8 --- below-config-fix-metadata.diff | 10 ++++++++++ rust-below-config.spec | 13 ++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 below-config-fix-metadata.diff diff --git a/below-config-fix-metadata.diff b/below-config-fix-metadata.diff new file mode 100644 index 0000000..681d989 --- /dev/null +++ b/below-config-fix-metadata.diff @@ -0,0 +1,10 @@ +--- below-config-0.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ below-config-0.5.0/Cargo.toml 2022-06-01T14:55:49.593658+00:00 +@@ -31,6 +31,6 @@ + features = ["derive", "rc"] + + [dependencies.toml] +-version = "=0.5.8" ++version = "0.5.8" + [dev-dependencies.tempdir] + version = "0.3" diff --git a/rust-below-config.spec b/rust-below-config.spec index a8d56be..b0db915 100644 --- a/rust-below-config.spec +++ b/rust-below-config.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} @@ -13,10 +13,13 @@ Summary: Configerations for below License: ASL 2.0 URL: https://crates.io/crates/below-config Source: %{crates_source} +# Initial patched metadata +# * relax toml dependency from =0.5.8 to ^0.5.8 +Patch0: below-config-fix-metadata.diff ExclusiveArch: %{rust_arches} -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Configerations for below.} @@ -33,8 +36,8 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -46,7 +49,7 @@ This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1