From 154ede854dc53c7d1806d0bf049f4dbc25ee7733 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 16 May 2023 21:46:59 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- README.md | 3 --- rust-pcre2-sys.spec | 34 ++++++++++++++++----------------- .rust2rpm.conf => rust2rpm.conf | 0 3 files changed, 16 insertions(+), 21 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 e2fbe14..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pcre2-sys - -The rust-pcre2-sys package \ No newline at end of file diff --git a/rust-pcre2-sys.spec b/rust-pcre2-sys.spec index c641654..603ddad 100644 --- a/rust-pcre2-sys.spec +++ b/rust-pcre2-sys.spec @@ -1,25 +1,20 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate pcre2-sys -Name: rust-%{crate} +Name: rust-pcre2-sys Version: 0.2.5 Release: %autorelease Summary: Low level bindings to PCRE2 # Upstream license specification: Unlicense/MIT -License: Unlicense or MIT +License: Unlicense OR MIT URL: https://crates.io/crates/pcre2-sys Source: %{crates_source} -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Low level bindings to PCRE2.} @@ -33,13 +28,15 @@ Requires: pkgconfig(libpcre2-8) %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 UNLICENSE LICENSE-MIT COPYING -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/COPYING +%license %{crate_instdir}/LICENSE-MIT +%license %{crate_instdir}/UNLICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -47,15 +44,16 @@ 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 -rm -vrf pcre2 +# remove bundled copy of pcre2 +rm -rv pcre2/ %cargo_prep %generate_buildrequires diff --git a/.rust2rpm.conf b/rust2rpm.conf similarity index 100% rename from .rust2rpm.conf rename to rust2rpm.conf