diff --git a/.gitignore b/.gitignore index 310b7f5..ea575d3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /pcre2-sys-0.2.6.crate /pcre2-sys-0.2.7.crate /pcre2-sys-0.2.8.crate +/pcre2-sys-0.2.9.crate diff --git a/pcre2-sys-fix-metadata.diff b/pcre2-sys-fix-metadata.diff index 8c06c44..b7864f3 100644 --- a/pcre2-sys-fix-metadata.diff +++ b/pcre2-sys-fix-metadata.diff @@ -1,5 +1,5 @@ ---- pcre2-sys-0.2.8/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pcre2-sys-0.2.8/Cargo.toml 2024-01-05T21:42:05.157915+00:00 +--- pcre2-sys-0.2.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pcre2-sys-0.2.9/Cargo.toml 2024-06-25T09:28:32.739579+00:00 @@ -27,6 +27,10 @@ categories = ["external-ffi-bindings"] license = "Unlicense OR MIT" diff --git a/rust-pcre2-sys.spec b/rust-pcre2-sys.spec index 0570e54..e4b6bd0 100644 --- a/rust-pcre2-sys.spec +++ b/rust-pcre2-sys.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate pcre2-sys Name: rust-pcre2-sys -Version: 0.2.8 +Version: 0.2.9 Release: %autorelease Summary: Low level bindings to PCRE2 @@ -17,6 +17,7 @@ Source: %{crates_source} Patch: pcre2-sys-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: pkgconfig(libpcre2-8) %global _description %{expand: Low level bindings to PCRE2.} @@ -60,7 +61,6 @@ rm -rv upstream/ %generate_buildrequires %cargo_generate_buildrequires -echo 'pkgconfig(libpcre2-8)' %build %cargo_build diff --git a/rust2rpm.toml b/rust2rpm.toml index f9fa0df..a5927e8 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,4 +1,15 @@ +[package] +cargo-toml-patch-comments = [ + "exclude files that are only useful for upstream development", +] + [requires] build = ["pkgconfig(libpcre2-8)"] lib = ["pkgconfig(libpcre2-8)"] +[scripts] +prep.post = [ + "# remove bundled copy of pcre2", + "rm -rv upstream/", +] + diff --git a/sources b/sources index 933bc85..64b1831 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pcre2-sys-0.2.8.crate) = 4f0b21a0dff41ccbfb1dd6387d63b066e71002a7b96f76d8ab5ff34c056cd862337c1ef08daf30436fdf68eba4eb98f6e8a1ad6d2903e2e348ed9b85e2a7f616 +SHA512 (pcre2-sys-0.2.9.crate) = c94d9520334302228f916b3599a6efd372ed2871aa3c85c3df55e66fed2d2e7033caece4385586d8ff55f55005338b0f042df97ff82f7d6b22d71ed3791fdb52