From 8da52a7d27a383cc4755ffe25c0266c53e7ac624 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 30 Jan 2024 01:13:38 +0100 Subject: [PATCH] Update to version 0.7.5; Fixes RHBZ#2041237 --- .gitignore | 1 + rust-pkcs1.spec | 16 ++++++++-------- rust2rpm.conf | 2 -- rust2rpm.toml | 3 +++ sources | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 rust2rpm.conf create mode 100644 rust2rpm.toml diff --git a/.gitignore b/.gitignore index 58d74f0..3c07384 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /*.src.rpm /pkcs1-0.2.4.crate +/pkcs1-0.7.5.crate diff --git a/rust-pkcs1.spec b/rust-pkcs1.spec index 30be5c7..855dad1 100644 --- a/rust-pkcs1.spec +++ b/rust-pkcs1.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate pkcs1 Name: rust-pkcs1 -Version: 0.2.4 +Version: 0.7.5 Release: %autorelease Summary: Pure Rust implementation of PKCS#1 (RFC 8017) @@ -13,7 +13,7 @@ License: Apache-2.0 OR MIT URL: https://crates.io/crates/pkcs1 Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #1: @@ -73,16 +73,16 @@ use the "pem" feature of the "%{crate}" crate. %files -n %{name}+pem-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+pem-rfc7468-devel +%package -n %{name}+pkcs8-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+pem-rfc7468-devel %{_description} +%description -n %{name}+pkcs8-devel %{_description} This package contains library source intended for building other packages which -use the "pem-rfc7468" feature of the "%{crate}" crate. +use the "pkcs8" feature of the "%{crate}" crate. -%files -n %{name}+pem-rfc7468-devel +%files -n %{name}+pkcs8-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel @@ -110,7 +110,7 @@ use the "zeroize" 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 60007b3..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,2 +0,0 @@ -[DEFAULT] -summary = Pure Rust implementation of PKCS#1 (RFC 8017) diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..fceeba6 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Pure Rust implementation of PKCS#1 (RFC 8017)" + diff --git a/sources b/sources index 6050590..4cb0728 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pkcs1-0.2.4.crate) = 35421e2c1c3110f5ee977604c513699ec836cca166b99b0f7533c74bc3fa08b4bb9e5304c88a93fcf081c7591ab983022e80f1a4c09a1cdfa01e64a50e97365b +SHA512 (pkcs1-0.7.5.crate) = a3584ce492116d6e617a733a0d3d5696404aa7b10ae95070313b4a41dbc21d0940850870b711e375ac8b54fdd179b4083d61c48e902e6efd8a3a11cb630076a3