commit 34a50630a62c7a7a8655c4137dac7bb212c6c66d Author: MSVSphere Packaging Team Date: Fri Dec 20 17:02:06 2024 +0300 import rust-rustls-webpki-0.102.8-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da90d42 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/rustls-webpki-0.102.8.crate diff --git a/.rust-rustls-webpki.metadata b/.rust-rustls-webpki.metadata new file mode 100644 index 0000000..2dc19f4 --- /dev/null +++ b/.rust-rustls-webpki.metadata @@ -0,0 +1 @@ +c302ef5247352a90b1267c4bcd641e8011f5a389 SOURCES/rustls-webpki-0.102.8.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..cadbe40 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,4 @@ +[tests] +run = ["none"] +comments = ["missing dev-dependencies: rcgen ^0.13"] + diff --git a/SOURCES/rustls-webpki-fix-metadata.diff b/SOURCES/rustls-webpki-fix-metadata.diff new file mode 100644 index 0000000..5dca999 --- /dev/null +++ b/SOURCES/rustls-webpki-fix-metadata.diff @@ -0,0 +1,23 @@ +--- rustls-webpki-0.102.8/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rustls-webpki-0.102.8/Cargo.toml 2024-09-16T21:12:45.660150+00:00 +@@ -132,12 +132,6 @@ + name = "tls_server_certs" + path = "tests/tls_server_certs.rs" + +-[dependencies.aws-lc-rs] +-version = "1.9" +-features = ["aws-lc-sys"] +-optional = true +-default-features = false +- + [dependencies.pki-types] + version = "1.7" + default-features = false +@@ -180,7 +174,6 @@ + "ring?/alloc", + "pki-types/alloc", + ] +-aws_lc_rs = ["dep:aws-lc-rs"] + default = [ + "std", + "ring", diff --git a/SPECS/rust-rustls-webpki.spec b/SPECS/rust-rustls-webpki.spec new file mode 100644 index 0000000..56d4ab7 --- /dev/null +++ b/SPECS/rust-rustls-webpki.spec @@ -0,0 +1,162 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +# * missing dev-dependencies: rcgen ^0.13 +%bcond_with check +%global debug_package %{nil} + +%global crate rustls-webpki + +Name: rust-rustls-webpki +Version: 0.102.8 +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 + +%global _description %{expand: +Web PKI X.509 Certificate Verification.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md +%{crate_instdir}/ +# exclude integration tests and associated data from installed files +%exclude %{crate_instdir}/tests/ +%exclude %{crate_instdir}/third-party/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +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 %{crate_instdir}/Cargo.toml + +%package -n %{name}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +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 %{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 + +%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 +# drop tests which require files that are not included in published crates +rm tests/integration.rs + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.102.8-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Sep 16 2024 Fabio Valentini - 0.102.8-1 +- Update to version 0.102.8; Fixes RHBZ#2308182 + +* Sat Jul 27 2024 Fabio Valentini - 0.102.6-1 +- Update to version 0.102.6; Fixes RHBZ#2299343 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.102.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jul 06 2024 Fabio Valentini - 0.102.5-1 +- Update to version 0.102.5; Fixes RHBZ#2295564 + +* Thu May 16 2024 Fabio Valentini - 0.102.4-1 +- Update to version 0.102.4; Fixes RHBZ#2276429 + +* Sat Apr 20 2024 Fabio Valentini - 0.102.2-1 +- Update to version 0.102.2; Fixes RHBZ#2252298 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.101.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Oct 25 2023 Fabio Valentini - 0.101.7-1 +- Update to version 0.101.7; Fixes RHBZ#2219642 + +* Tue Oct 10 2023 Fabio Valentini - 0.100.3-1 +- Update to version 0.100.3 + +* Wed Aug 23 2023 Fabio Valentini - 0.100.2-1 +- Update to version 0.100.2 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.100.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 28 2023 Fabio Valentini - 0.100.1-1 +- Initial import (#2214364) +## END: Generated by rpmautospec