The package rpms/rust-webpki.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-webpki.git/commit/?id=4f1b46....
Change:
+%ifarch %{supported_arches}
Thanks.
Full change:
============
commit 4f1b46eeb64d6590ee2da8df04e22774ba7e2a8f
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Thu Aug 31 22:11:33 2023 +0200
Update to version 0.22.1; Fixes RHBZ#2236328
diff --git a/.gitignore b/.gitignore
index be40cb2..1c485ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/webpki-0.21.4.crate
/webpki-0.22.0.crate
+/webpki-0.22.1.crate
diff --git a/rust-webpki.spec b/rust-webpki.spec
index 5478764..637bfe5 100644
--- a/rust-webpki.spec
+++ b/rust-webpki.spec
@@ -1,11 +1,15 @@
# Generated by rust2rpm 24
-%bcond_without check
+# * missing dev-dependencies: rcgen ^0.11.1
+%bcond_with check
%global debug_package %{nil}
%global crate webpki
+# compile and run tests only on supported architectures
+%global supported_arches x86_64 %{ix86} aarch64 %{arm}
+
Name: rust-webpki
-Version: 0.22.0
+Version: 0.22.1
Release: %autorelease
Summary: Web PKI X.509 Certificate Verification
@@ -18,12 +22,9 @@ URL:
https://crates.io/crates/webpki
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * bump base64 dev-dependency from 0.9 to 0.13
-# * drop profiles that set compiler flags that are incompatible with packaging
+# * specify license with SPDX identifier in crate metadata
Patch: webpki-fix-metadata.diff
-# ring is not available on ppc64le and s390x
-ExcludeArch: ppc64le s390x
-
BuildRequires: rust-packaging >= 21
%global _description %{expand:
@@ -44,7 +45,8 @@ use the "%{crate}" crate.
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
-# these files are only used by integration tests
+# exclude integration tests and associated data from installed files
+%exclude %{crate_instdir}/tests/
%exclude %{crate_instdir}/third-party/
%package -n %{name}+default-devel
@@ -91,15 +93,19 @@ use the "std" feature of the "%{crate}" crate.
%cargo_generate_buildrequires
%build
+%ifarch %{supported_arches}
%cargo_build
+%endif
%install
%cargo_install
%if %{with check}
+%ifarch %{supported_arches}
%check
%cargo_test
%endif
+%endif
%changelog
%autochangelog
diff --git a/rust2rpm.conf b/rust2rpm.conf
new file mode 100644
index 0000000..53a9929
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,6 @@
+[DEFAULT]
+supported-arches =
+ x86_64
+ %{ix86}
+ aarch64
+ %{arm}
diff --git a/sources b/sources
index ddbefea..493adba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (webpki-0.22.0.crate) =
7c2916d47f2232587e3ccaa8fefc8b576addaf84b55166011032e471f91ce54a79d2fca7fcc1144552c254f5baead708fba2b0ce76a1c34286838a8744b0f570
+SHA512 (webpki-0.22.1.crate) =
8af6c45f71cd14c7bc0ae69cd8bbd998da55dadbb0ae0bc6a5fcf2c4f2b6e7aa973750ff6c0def1e876190369ec1113a67e7dca3cb47b64ad6dd2b217694f5e1
diff --git a/webpki-fix-metadata.diff b/webpki-fix-metadata.diff
index a703ea7..6762f83 100644
--- a/webpki-fix-metadata.diff
+++ b/webpki-fix-metadata.diff
@@ -1,33 +1,20 @@
---- webpki-0.22.0/Cargo.toml 1970-01-01T00:00:00+00:00
-+++ webpki-0.22.0/Cargo.toml 2023-03-18T21:22:36.870752+00:00
-@@ -24,21 +24,6 @@
+--- webpki-0.22.1/Cargo.toml 1970-01-01T00:00:01+00:00
++++ webpki-0.22.1/Cargo.toml 2023-08-31T21:05:25.688338+00:00
+@@ -51,7 +51,7 @@
+ "cryptography",
+ "no-std",
+ ]
+-license-file = "LICENSE"
++license = "ISC"
repository = "https://github.com/briansmith/webpki"
- [package.metadata.docs.rs]
- all-features = true
--[profile.bench]
--opt-level = 3
--lto = true
--codegen-units = 1
--debug = false
--debug-assertions = false
--rpath = false
--
--[profile.release]
--opt-level = 3
--lto = true
--codegen-units = 1
--debug = false
--debug-assertions = false
--rpath = false
- [lib]
- name = "webpki"
-@@ -49,7 +34,7 @@
- [dependencies.untrusted]
+ [package.metadata.docs.rs]
+@@ -84,7 +84,7 @@
version = "0.7.1"
+
[dev-dependencies.base64]
-version = "0.9.1"
+version = "0.13"
- [features]
- alloc = ["ring/alloc"]
+ [dev-dependencies.rcgen]
+ version = "0.11.1"
commit 78153a2d139cf2559ba666487c7ace5ed7a89dd7
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jul 22 00:41:43 2023 +0000
Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>