diff --git a/.gitignore b/.gitignore index bace32f..cae6b8f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /nettle-sys-2.1.0.crate /nettle-sys-2.1.1.crate /nettle-sys-2.2.0.crate +/nettle-sys-2.3.0.crate diff --git a/nettle-sys-fix-metadata-auto.diff b/nettle-sys-fix-metadata-auto.diff index 075f3ba..cf69fc7 100644 --- a/nettle-sys-fix-metadata-auto.diff +++ b/nettle-sys-fix-metadata-auto.diff @@ -1,5 +1,5 @@ ---- nettle-sys-2.2.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ nettle-sys-2.2.0/Cargo.toml 2023-05-17T13:41:19.037440+00:00 +--- nettle-sys-2.3.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ nettle-sys-2.3.0/Cargo.toml 2023-10-20T09:01:43.044608+00:00 @@ -55,5 +55,3 @@ [build-dependencies.tempfile] version = "3" diff --git a/rust-nettle-sys.spec b/rust-nettle-sys.spec index 63c41fe..f1307f4 100644 --- a/rust-nettle-sys.spec +++ b/rust-nettle-sys.spec @@ -1,25 +1,25 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate nettle-sys Name: rust-nettle-sys -Version: 2.2.0 +Version: 2.3.0 Release: %autorelease Summary: Low-level Rust bindings for the Nettle cryptographic library License: LGPL-3.0 OR GPL-2.0 OR GPL-3.0 URL: https://crates.io/crates/nettle-sys Source: %{crates_source} -# Automatically generated patch to strip foreign dependencies +# Automatically generated patch to strip dependencies and normalize metadata Patch: nettle-sys-fix-metadata-auto.diff # * drop two elliptic curves that are disabled in nettle in Fedora: # - nettle_get_secp_192r1 # - nettle_get_secp_224r1 Patch: 0001-build-drop-unavailable-ECC-functions.patch -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Low-level Rust bindings for the Nettle cryptographic library.} @@ -56,7 +56,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 %generate_buildrequires diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 94bb075..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,5 +0,0 @@ -[DEFAULT] -buildrequires = - pkgconfig(nettle) -lib.requires = - pkgconfig(nettle) diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..dc6482f --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,4 @@ +[requires] +build = ["pkgconfig(nettle)"] +lib = ["pkgconfig(nettle)"] + diff --git a/sources b/sources index 8fac9fc..1eb8b80 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nettle-sys-2.2.0.crate) = db72ab5f0bfd79230489d1310ba6d91ff55ec8d7229f0c21cc309fcf50aba6c8db44fda946c01642b4b9d348c7d113d77d3c13f7cc395f7fde7e9c50cbb6e90f +SHA512 (nettle-sys-2.3.0.crate) = f453608d860edf86ba62ed959aa1d04301c06d13bef5179b2a69f7faebe1e1ea41fce163aa4a48617d21fc493cce16c28cc11a051ccfd13d0be93c66405aa5d3