diff --git a/.gitignore b/.gitignore index cb46df9..368ddb1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /pcre2-sys-0.2.4.crate /pcre2-sys-0.2.5.crate /pcre2-sys-0.2.6.crate +/pcre2-sys-0.2.7.crate diff --git a/pcre2-sys-fix-metadata.diff b/pcre2-sys-fix-metadata.diff index 9f2f868..affc6fd 100644 --- a/pcre2-sys-fix-metadata.diff +++ b/pcre2-sys-fix-metadata.diff @@ -1,5 +1,5 @@ ---- 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 +--- pcre2-sys-0.2.7/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pcre2-sys-0.2.7/Cargo.toml 2023-12-02T11:10:11.887067+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 cd66fe9..76b0666 100644 --- a/rust-pcre2-sys.spec +++ b/rust-pcre2-sys.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate pcre2-sys Name: rust-pcre2-sys -Version: 0.2.6 +Version: 0.2.7 Release: %autorelease Summary: Low level bindings to PCRE2 @@ -16,7 +16,7 @@ Source: %{crates_source} # * exclude files that are only useful for upstream development Patch: pcre2-sys-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Low level bindings to PCRE2.} @@ -53,7 +53,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep # remove bundled copy of pcre2 rm -rv upstream/ diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index eb54307..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,5 +0,0 @@ -[DEFAULT] -buildrequires = - pkgconfig(libpcre2-8) -lib.requires = - pkgconfig(libpcre2-8) diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..f9fa0df --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[requires] +build = ["pkgconfig(libpcre2-8)"] +lib = ["pkgconfig(libpcre2-8)"] + diff --git a/sources b/sources index bd94156..8af6456 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pcre2-sys-0.2.6.crate) = f53d837ee42044cc61fd9467cedfd9d6ad735b4a4e344357d241709fe08bf0e50821fa00f8fec86b4b2e93640de1a98b3961d381f652afdb4cfef916ec5b4e13 +SHA512 (pcre2-sys-0.2.7.crate) = c17de0c0d41885fc47d947b7d865a0b324b51702ddba4b1c24bd6470855de488749e2042ad235e43378813ee1a8fff40a2b04795fb9e908e2cef323dd1595a89