From f6e03c7096d3749ebaec6895e89f630766dbf2d2 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 31 Aug 2023 21:21:59 +0200 Subject: [PATCH] Update to version 0.2.6; Fixes RHBZ#2215776 --- .gitignore | 1 + pcre2-sys-fix-metadata.diff | 13 +++++++++++++ rust-pcre2-sys.spec | 10 ++++++---- sources | 2 +- 4 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 pcre2-sys-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 674e16e..cb46df9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /pcre2-sys-0.2.2.crate /pcre2-sys-0.2.4.crate /pcre2-sys-0.2.5.crate +/pcre2-sys-0.2.6.crate diff --git a/pcre2-sys-fix-metadata.diff b/pcre2-sys-fix-metadata.diff new file mode 100644 index 0000000..9f2f868 --- /dev/null +++ b/pcre2-sys-fix-metadata.diff @@ -0,0 +1,13 @@ +--- pcre2-sys-0.2.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pcre2-sys-0.2.6/Cargo.toml 2023-08-31T19:20:30.255450+00:00 +@@ -27,6 +27,10 @@ + categories = ["external-ffi-bindings"] + license = "Unlicense OR MIT" + repository = "https://github.com/BurntSushi/rust-pcre2" ++exclude = [ ++ "/generate-bindings", ++ "/update-pcre2", ++] + + [dependencies.libc] + version = "0.2.146" diff --git a/rust-pcre2-sys.spec b/rust-pcre2-sys.spec index 603ddad..cd66fe9 100644 --- a/rust-pcre2-sys.spec +++ b/rust-pcre2-sys.spec @@ -5,14 +5,16 @@ %global crate pcre2-sys Name: rust-pcre2-sys -Version: 0.2.5 +Version: 0.2.6 Release: %autorelease Summary: Low level bindings to PCRE2 -# Upstream license specification: Unlicense/MIT License: Unlicense OR MIT URL: https://crates.io/crates/pcre2-sys Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * exclude files that are only useful for upstream development +Patch: pcre2-sys-fix-metadata.diff BuildRequires: rust-packaging >= 21 @@ -52,9 +54,9 @@ use the "default" feature of the "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 -# remove bundled copy of pcre2 -rm -rv pcre2/ %cargo_prep +# remove bundled copy of pcre2 +rm -rv upstream/ %generate_buildrequires %cargo_generate_buildrequires diff --git a/sources b/sources index e5ef52b..bd94156 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pcre2-sys-0.2.5.crate) = e18e14da73a84b09a2671881e12b1516f83c90ec0e4134afcab99b71688895f188e4f6bae0c7e3f18d0b7d69b3d19c44cccb4d8348fe613c2f8824edee4e35a6 +SHA512 (pcre2-sys-0.2.6.crate) = f53d837ee42044cc61fd9467cedfd9d6ad735b4a4e344357d241709fe08bf0e50821fa00f8fec86b4b2e93640de1a98b3961d381f652afdb4cfef916ec5b4e13