From ef65a636f77af47df316009b68377b8c8fe78374 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 25 May 2023 20:20:50 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- regex-automata-fix-metadata.diff | 2 +- rust-regex-automata.spec | 44 +++++++++++++++----------------- .rust2rpm.conf => rust2rpm.conf | 0 4 files changed, 22 insertions(+), 27 deletions(-) delete mode 100644 README.md rename .rust2rpm.conf => rust2rpm.conf (100%) diff --git a/README.md b/README.md deleted file mode 100644 index 4df85e6..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-regex-automata - -The rust-regex-automata package \ No newline at end of file diff --git a/regex-automata-fix-metadata.diff b/regex-automata-fix-metadata.diff index b719776..46ff144 100644 --- a/regex-automata-fix-metadata.diff +++ b/regex-automata-fix-metadata.diff @@ -1,5 +1,5 @@ --- regex-automata-0.1.10/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ regex-automata-0.1.10/Cargo.toml 2021-06-01T21:48:33.720241+00:00 ++++ regex-automata-0.1.10/Cargo.toml 2023-05-25T18:18:57.088337+00:00 @@ -14,7 +14,7 @@ name = "regex-automata" version = "0.1.10" diff --git a/rust-regex-automata.spec b/rust-regex-automata.spec index 67b906f..003de0a 100644 --- a/rust-regex-automata.spec +++ b/rust-regex-automata.spec @@ -1,28 +1,23 @@ -# Generated by rust2rpm 19 -%bcond_with check +# Generated by rust2rpm 24 +%bcond_without check %global debug_package %{nil} %global crate regex-automata -Name: rust-%{crate} +Name: rust-regex-automata Version: 0.1.10 Release: %autorelease Summary: Automata construction and matching using regular expressions # Upstream license specification: Unlicense/MIT -License: Unlicense or MIT +License: Unlicense OR MIT URL: https://crates.io/crates/regex-automata Source: %{crates_source} -# Initial patched metadata -# * Exclude test files -Patch0: regex-automata-fix-metadata.diff +# Manually created patch for downstream crate metadata changes +# * prevent test data from being installed +Patch: regex-automata-fix-metadata.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Automata construction and matching using regular expressions.} @@ -36,12 +31,15 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel -%license COPYING LICENSE-MIT UNLICENSE -%doc README.md TODO -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYING +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/UNLICENSE +%doc %{crate_instdir}/README.md +%doc %{crate_instdir}/TODO +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,10 +48,10 @@ BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which -use "the default" feature of the "%{crate}" crate. +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}+regex-syntax-devel Summary: %{summary} @@ -62,10 +60,10 @@ BuildArch: noarch %description -n %{name}+regex-syntax-devel %{_description} This package contains library source intended for building other packages which -use "the regex-syntax" feature of the "%{crate}" crate. +use the "regex-syntax" feature of the "%{crate}" crate. %files -n %{name}+regex-syntax-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -74,10 +72,10 @@ BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which -use "the std" feature of the "%{crate}" crate. +use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf