From da59beec1d4e191e185047d496fa05ce303edaf1 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 18 May 2023 16:18:45 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- ...ff => dirs-sys-next-fix-metadata-auto.diff | 2 +- rust-dirs-sys-next.spec | 37 ++++++++----------- 3 files changed, 17 insertions(+), 25 deletions(-) delete mode 100644 README.md rename dirs-sys-next-fix-metadata.diff => dirs-sys-next-fix-metadata-auto.diff (89%) diff --git a/README.md b/README.md deleted file mode 100644 index 26dba7d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-dirs-sys-next - -The rust-dirs-sys-next package diff --git a/dirs-sys-next-fix-metadata.diff b/dirs-sys-next-fix-metadata-auto.diff similarity index 89% rename from dirs-sys-next-fix-metadata.diff rename to dirs-sys-next-fix-metadata-auto.diff index 69b17ac..739a711 100644 --- a/dirs-sys-next-fix-metadata.diff +++ b/dirs-sys-next-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- dirs-sys-next-0.1.2/Cargo.toml 2021-01-09T05:59:37+00:00 -+++ dirs-sys-next-0.1.2/Cargo.toml 2021-01-09T19:08:41.388819+00:00 ++++ dirs-sys-next-0.1.2/Cargo.toml 2023-05-18T14:16:58.829012+00:00 @@ -20,13 +20,7 @@ readme = "README.md" license = "MIT OR Apache-2.0" diff --git a/rust-dirs-sys-next.spec b/rust-dirs-sys-next.spec index 9a4908f..d530d8e 100644 --- a/rust-dirs-sys-next.spec +++ b/rust-dirs-sys-next.spec @@ -1,28 +1,21 @@ -# Generated by rust2rpm 16 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate dirs-sys-next -Name: rust-%{crate} +Name: rust-dirs-sys-next Version: 0.1.2 Release: %autorelease Summary: System-level helper functions for the dirs and directories crates -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/dirs-sys-next Source: %{crates_source} -# Initial patched metadata -# * No windows/redox -Patch0: dirs-sys-next-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: dirs-sys-next-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: System-level helper functions for the dirs and directories crates.} @@ -35,13 +28,15 @@ 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-MIT LICENSE-APACHE -%doc README.md CHANGELOG.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%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