diff --git a/.gitignore b/.gitignore index ad4cb64..633805f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /rustls-webpki-0.100.2.crate /rustls-webpki-0.100.3.crate /rustls-webpki-0.101.7.crate +/rustls-webpki-0.102.2.crate diff --git a/rust-rustls-webpki.spec b/rust-rustls-webpki.spec index cce4a72..bcb615a 100644 --- a/rust-rustls-webpki.spec +++ b/rust-rustls-webpki.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 # * missing dev-dependencies: rcgen ^0.11.1 %bcond_with check %global debug_package %{nil} @@ -6,13 +6,16 @@ %global crate rustls-webpki Name: rust-rustls-webpki -Version: 0.101.7 +Version: 0.102.2 Release: %autorelease Summary: Web PKI X.509 Certificate Verification License: ISC URL: https://crates.io/crates/rustls-webpki Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop support for aws-lc-rs crypto backend +Patch: rustls-webpki-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 @@ -62,6 +65,18 @@ use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+ring-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+ring-devel %{_description} + +This package contains library source intended for building other packages which +use the "ring" feature of the "%{crate}" crate. + +%files -n %{name}+ring-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch diff --git a/rustls-webpki-fix-metadata.diff b/rustls-webpki-fix-metadata.diff new file mode 100644 index 0000000..3345a55 --- /dev/null +++ b/rustls-webpki-fix-metadata.diff @@ -0,0 +1,23 @@ +--- rustls-webpki-0.102.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rustls-webpki-0.102.2/Cargo.toml 2024-04-19T19:36:30.435600+00:00 +@@ -90,12 +90,6 @@ + path = "benches/benchmark.rs" + harness = false + +-[dependencies.aws-lc-rs] +-version = "1" +-features = ["aws-lc-sys"] +-optional = true +-default-features = false +- + [dependencies.pki-types] + version = "1.2" + default-features = false +@@ -136,7 +130,6 @@ + "ring?/alloc", + "pki-types/alloc", + ] +-aws_lc_rs = ["dep:aws-lc-rs"] + default = [ + "std", + "ring", diff --git a/sources b/sources index b500303..2492ba3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rustls-webpki-0.101.7.crate) = 680e3d52f699c9d6200e2e738a4245a5114fc7122546c07d3f15f1e6741a52275061b3e016c2240f1dc3eb9f701f7346193bd82e827274fb73b8e9e0d5af4e68 +SHA512 (rustls-webpki-0.102.2.crate) = 697d44daa5e0a8ea2d12aa6f68026eb63a6e1c4420ee92656c9479df77e3f672ca2525442be55ab6183111fe594ac85661647150326223129ec23686792f6014