From 35105c33934597356003da50515873a407610205 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 19 Apr 2024 20:17:57 +0200 Subject: [PATCH] Update to version 2.1.2; Fixes RHBZ#2252308 --- .gitignore | 1 + rust-rustls-pemfile.spec | 19 +++++++++++++++++-- rustls-pemfile-fix-metadata.diff | 23 +++++++++++++++++++++++ sources | 2 +- 4 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 rustls-pemfile-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 6b0b605..a663539 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /rustls-pemfile-1.0.2.crate /rustls-pemfile-1.0.3.crate /rustls-pemfile-1.0.4.crate +/rustls-pemfile-2.1.2.crate diff --git a/rust-rustls-pemfile.spec b/rust-rustls-pemfile.spec index a1260c5..e421aa7 100644 --- a/rust-rustls-pemfile.spec +++ b/rust-rustls-pemfile.spec @@ -1,17 +1,20 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate rustls-pemfile Name: rust-rustls-pemfile -Version: 1.0.4 +Version: 2.1.2 Release: %autorelease Summary: Basic .pem file parser for keys and certificates License: Apache-2.0 OR ISC OR MIT URL: https://crates.io/crates/rustls-pemfile Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: rustls-pemfile-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -49,6 +52,18 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep diff --git a/rustls-pemfile-fix-metadata.diff b/rustls-pemfile-fix-metadata.diff new file mode 100644 index 0000000..aee4aa1 --- /dev/null +++ b/rustls-pemfile-fix-metadata.diff @@ -0,0 +1,23 @@ +--- rustls-pemfile-2.1.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rustls-pemfile-2.1.2/Cargo.toml 2024-04-15T14:39:45.698163+00:00 +@@ -27,10 +27,6 @@ + name = "integration" + required-features = ["std"] + +-[[bench]] +-name = "benchmark" +-harness = false +- + [dependencies.base64] + version = "0.22" + features = ["alloc"] +@@ -40,9 +36,6 @@ + version = "1.3" + package = "rustls-pki-types" + +-[dev-dependencies.bencher] +-version = "0.1.5" +- + [features] + default = ["std"] + std = ["base64/std"] diff --git a/sources b/sources index 575c66c..298fe25 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rustls-pemfile-1.0.4.crate) = bc748ee06f2c101d8e54e8c4555e88c5ca824ac7bb0182f8e49bfe1fc66d418d2a3da8e454f3741697f491ad0c7bc8e924a752697023a191c1bb6eb98c48aa37 +SHA512 (rustls-pemfile-2.1.2.crate) = 35127c68250c31f2fd6924355ec37d5318d8a86ad38da48e68b3ea6e241deeb019eb967c510e95230be6d6c3357b0a85aa022942d21a50423632f8e2496177cb