From 407c9e4a43ff1ecd2f3117ba4dc7b395b57cf226 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 5 Aug 2023 23:49:01 +0200 Subject: [PATCH] Regenerate with rust2rpm v24 --- rust-pkcs1.spec | 35 +++++++++++++++++------------------ rust2rpm.conf | 2 ++ 2 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 rust2rpm.conf diff --git a/rust-pkcs1.spec b/rust-pkcs1.spec index 7fa0303..30be5c7 100644 --- a/rust-pkcs1.spec +++ b/rust-pkcs1.spec @@ -1,26 +1,23 @@ -# Generated by rust2rpm 20 +# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate pkcs1 -Name: rust-%{crate} +Name: rust-pkcs1 Version: 0.2.4 Release: %autorelease Summary: Pure Rust implementation of PKCS#1 (RFC 8017) -# Upstream license specification: Apache-2.0 OR MIT -License: ASL 2.0 or MIT +License: Apache-2.0 OR MIT URL: https://crates.io/crates/pkcs1 Source: %{crates_source} -ExclusiveArch: %{rust_arches} - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #1: RSA -Cryptography Specifications Version 2.2 (RFC 8017).} +Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #1: +RSA Cryptography Specifications Version 2.2 (RFC 8017).} %description %{_description} @@ -34,9 +31,11 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel -%license LICENSE-APACHE LICENSE-MIT -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -48,7 +47,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 +59,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}+pem-devel Summary: %{summary} @@ -72,7 +71,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}+pem-rfc7468-devel Summary: %{summary} @@ -84,7 +83,7 @@ This package contains library source intended for building other packages which use the "pem-rfc7468" feature of the "%{crate}" crate. %files -n %{name}+pem-rfc7468-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -96,7 +95,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 %package -n %{name}+zeroize-devel Summary: %{summary} @@ -108,7 +107,7 @@ This package contains library source intended for building other packages which use the "zeroize" feature of the "%{crate}" crate. %files -n %{name}+zeroize-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..60007b3 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Pure Rust implementation of PKCS#1 (RFC 8017)