From c38d9685994bd0b919846d46ae828e8d9d42ad2a Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 17 May 2023 11:34:08 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- ...ta.diff => hostname-fix-metadata-auto.diff | 2 +- rust-hostname.spec | 40 ++++++++----------- 3 files changed, 18 insertions(+), 27 deletions(-) delete mode 100644 README.md rename hostname-fix-metadata.diff => hostname-fix-metadata-auto.diff (81%) diff --git a/README.md b/README.md deleted file mode 100644 index a3b4489..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-hostname - -The rust-hostname package \ No newline at end of file diff --git a/hostname-fix-metadata.diff b/hostname-fix-metadata-auto.diff similarity index 81% rename from hostname-fix-metadata.diff rename to hostname-fix-metadata-auto.diff index 97d37d5..6da74dc 100644 --- a/hostname-fix-metadata.diff +++ b/hostname-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- hostname-0.3.1/Cargo.toml 2020-02-28T16:58:01+00:00 -+++ hostname-0.3.1/Cargo.toml 2020-02-28T17:24:51.895846+00:00 ++++ hostname-0.3.1/Cargo.toml 2023-05-17T09:32:55.784973+00:00 @@ -33,6 +33,3 @@ set = [] [target."cfg(any(unix, target_os = \"redox\"))".dependencies.libc] diff --git a/rust-hostname.spec b/rust-hostname.spec index 5e57427..b6d147a 100644 --- a/rust-hostname.spec +++ b/rust-hostname.spec @@ -1,28 +1,21 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate hostname -Name: rust-%{crate} +Name: rust-hostname Version: 0.3.1 Release: %autorelease Summary: Cross-platform system's host name functions -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/hostname Source: %{crates_source} -# Initial patched metadata -# * No windows -Patch0: hostname-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: hostname-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Cross-platform system's host name functions.} @@ -35,13 +28,14 @@ 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 README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -49,11 +43,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 %package -n %{name}+set-devel Summary: %{summary} @@ -61,11 +55,11 @@ BuildArch: noarch %description -n %{name}+set-devel %{_description} -This package contains library source intended for building other packages -which use "set" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "set" feature of the "%{crate}" crate. %files -n %{name}+set-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1