From 08b9576f0c227456754dfe1cf4e4da04cef6fec3 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 23 Jun 2023 20:45:42 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 and remove broken subpackage --- README.md | 3 --- rsa-fix-metadata.diff | 11 ++++++++++ rsa-metadata.diff | 20 ----------------- rust-rsa.spec | 50 ++++++++++++++++--------------------------- rust2rpm.conf | 3 +++ 5 files changed, 33 insertions(+), 54 deletions(-) delete mode 100644 README.md create mode 100644 rsa-fix-metadata.diff delete mode 100644 rsa-metadata.diff create mode 100644 rust2rpm.conf diff --git a/README.md b/README.md deleted file mode 100644 index 0fc8429..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-rsa - -The rust-rsa package \ No newline at end of file diff --git a/rsa-fix-metadata.diff b/rsa-fix-metadata.diff new file mode 100644 index 0000000..29063ff --- /dev/null +++ b/rsa-fix-metadata.diff @@ -0,0 +1,11 @@ +--- rsa-0.5.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ rsa-0.5.0/Cargo.toml 2023-06-23T18:40:58.339813+00:00 +@@ -87,7 +87,7 @@ + default-features = false + + [dependencies.zeroize] +-version = ">=1, <1.5" ++version = "1" + features = ["alloc", "zeroize_derive"] + [dev-dependencies.base64] + version = "0.13.0" diff --git a/rsa-metadata.diff b/rsa-metadata.diff deleted file mode 100644 index 4bea6a7..0000000 --- a/rsa-metadata.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- rsa-0.5.0/Cargo.toml.orig 2022-03-14 15:27:03.543900924 +0000 -+++ rsa-0.5.0/Cargo.toml 2022-03-14 15:29:05.024682199 +0000 -@@ -44,7 +44,7 @@ - features = ["spin_no_std"] - - [dependencies.num-bigint] --version = "0.7.0" -+version = ">=0.7.0" - features = ["i128", "u64_digit", "prime", "zeroize"] - default-features = false - package = "num-bigint-dig" -@@ -87,7 +87,7 @@ - default-features = false - - [dependencies.zeroize] --version = ">=1, <1.5" -+version = ">=1" - features = ["alloc", "zeroize_derive"] - [dev-dependencies.base64] - version = "0.13.0" diff --git a/rust-rsa.spec b/rust-rsa.spec index 62b9dcc..6573cb4 100644 --- a/rust-rsa.spec +++ b/rust-rsa.spec @@ -1,23 +1,22 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate rsa -Name: rust-%{crate} +Name: rust-rsa Version: 0.5.0 Release: %autorelease Summary: Pure Rust RSA implementation -# Upstream license specification: MIT OR Apache-2.0 -License: MIT or ASL 2.0 +License: MIT OR Apache-2.0 URL: https://crates.io/crates/rsa Source: %{crates_source} -Patch0: rsa-metadata.diff +# Manually created patch for downstream crate metadata changes +# * relax zeroize dependency (MSRV is not relevant for Fedora packages) +Patch: rsa-fix-metadata.diff -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: Pure Rust RSA implementation.} @@ -34,9 +33,10 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,7 +48,7 @@ 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 %package -n %{name}+alloc-devel Summary: %{summary} @@ -60,7 +60,7 @@ This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+expose-internals-devel Summary: %{summary} @@ -72,19 +72,7 @@ This package contains library source intended for building other packages which use the "expose-internals" feature of the "%{crate}" crate. %files -n %{name}+expose-internals-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml - -%package -n %{name}+nightly-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+nightly-devel %{_description} - -This package contains library source intended for building other packages which -use the "nightly" feature of the "%{crate}" crate. - -%files -n %{name}+nightly-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pem-devel Summary: %{summary} @@ -96,7 +84,7 @@ This package contains library source intended for building other packages which use the "pem" feature of the "%{crate}" crate. %files -n %{name}+pem-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pkcs5-devel Summary: %{summary} @@ -108,7 +96,7 @@ This package contains library source intended for building other packages which use the "pkcs5" feature of the "%{crate}" crate. %files -n %{name}+pkcs5-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} @@ -120,7 +108,7 @@ This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_crate-devel Summary: %{summary} @@ -132,7 +120,7 @@ This package contains library source intended for building other packages which use the "serde_crate" feature of the "%{crate}" crate. %files -n %{name}+serde_crate-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -144,7 +132,7 @@ This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 diff --git a/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..1715b93 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,3 @@ +[DEFAULT] +unwanted-features = + nightly