From a1cf08aca4bdeca48e54e6d34cb45b0fd2738b0e Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 21 May 2023 14:51:31 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 -- ...a.diff => page_size-fix-metadata-auto.diff | 2 +- rust-page_size.spec | 51 +++++++++---------- 3 files changed, 25 insertions(+), 31 deletions(-) delete mode 100644 README.md rename page_size-fix-metadata.diff => page_size-fix-metadata-auto.diff (82%) diff --git a/README.md b/README.md deleted file mode 100644 index edecdcd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-page_size - -The rust-page_size package diff --git a/page_size-fix-metadata.diff b/page_size-fix-metadata-auto.diff similarity index 82% rename from page_size-fix-metadata.diff rename to page_size-fix-metadata-auto.diff index 63990f7..8512126 100644 --- a/page_size-fix-metadata.diff +++ b/page_size-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- page_size-0.4.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ page_size-0.4.2/Cargo.toml 2021-06-17T17:57:38.471764+00:00 ++++ page_size-0.4.2/Cargo.toml 2023-05-21T12:50:35.693885+00:00 @@ -30,9 +30,6 @@ no_std = ["spin"] [target."cfg(unix)".dependencies.libc] diff --git a/rust-page_size.spec b/rust-page_size.spec index a5fb7e1..475fcb4 100644 --- a/rust-page_size.spec +++ b/rust-page_size.spec @@ -1,30 +1,26 @@ -# Generated by rust2rpm 17 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate page_size -Name: rust-%{crate} +Name: rust-page_size Version: 0.4.2 Release: %autorelease -Summary: Provides an easy, fast, cross-platform way to retrieve the memory page size +Summary: Easy, fast, cross-platform way to retrieve the memory page size # Upstream license specification: MIT/Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/page_size Source: %{crates_source} -# Drop winapi dependency -Patch0: page_size-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: page_size-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Provides an easy, fast, cross-platform way to retrieve the memory page size.} +Provides an easy, fast, cross-platform way to retrieve the memory page +size.} %description %{_description} @@ -34,13 +30,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-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,11 +45,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}+no_std-devel Summary: %{summary} @@ -60,11 +57,11 @@ BuildArch: noarch %description -n %{name}+no_std-devel %{_description} -This package contains library source intended for building other packages -which use "no_std" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "no_std" feature of the "%{crate}" crate. %files -n %{name}+no_std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+spin-devel Summary: %{summary} @@ -72,11 +69,11 @@ BuildArch: noarch %description -n %{name}+spin-devel %{_description} -This package contains library source intended for building other packages -which use "spin" feature of "%{crate}" crate. +This package contains library source intended for building other packages which +use the "spin" feature of the "%{crate}" crate. %files -n %{name}+spin-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1