From 0b0d0d0c487c280eb42c1742df3cf693671be8a2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 20 May 2023 16:52:47 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- confy-fix-metadata.diff | 2 +- rust-confy.spec | 35 +++++++++++++++-------------------- 3 files changed, 16 insertions(+), 24 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index a2d03fe..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-confy - -The rust-confy package diff --git a/confy-fix-metadata.diff b/confy-fix-metadata.diff index 20f841c..27acb5a 100644 --- a/confy-fix-metadata.diff +++ b/confy-fix-metadata.diff @@ -1,5 +1,5 @@ --- confy-0.4.0/Cargo.toml 2020-03-13T13:15:45+00:00 -+++ confy-0.4.0/Cargo.toml 2021-02-27T05:20:45.131878+00:00 ++++ confy-0.4.0/Cargo.toml 2023-05-20T14:50:22.491887+00:00 @@ -23,7 +23,7 @@ [[example]] name = "simple" diff --git a/rust-confy.spec b/rust-confy.spec index 1ed85fc..dc645a8 100644 --- a/rust-confy.spec +++ b/rust-confy.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate confy -Name: rust-%{crate} +Name: rust-confy Version: 0.4.0 Release: %autorelease Summary: Boilerplate-free configuration management # Upstream license specification: MIT/X11 OR Apache-2.0 -License: MIT or MIT or ASL 2.0 +License: MIT OR X11 OR Apache-2.0 URL: https://crates.io/crates/confy Source: %{crates_source} -# Initial patched metadata -# Bump directories to 3.0 -Patch0: confy-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * bump directories dependency from ^2 to ^3 +Patch: confy-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Boilerplate-free configuration management.} @@ -35,13 +30,13 @@ BuildArch: noarch %description devel %{_description} -This package contains library source intended for building other packages -which use "%{crate}" crate. +This package contains library source intended for building other packages which +use the "%{crate}" crate. %files devel -%license LICENSE -%doc examples README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +44,11 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} -This package contains library source intended for building other packages -which use "default" feature of "%{crate}" crate. +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