The package rpms/rust-webpki-roots.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-roots.git/commit/?id=....
Change:
+%ifarch %{supported_arches}
Thanks.
Full change:
============
commit ad99bb87e1085379fbd6d1002941e607927ae4e7
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Wed Jun 28 18:23:19 2023 +0200
Update to version 0.23.1; Fixes RHBZ#2183557
diff --git a/.gitignore b/.gitignore
index 6b24c8c..e5611ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/webpki-roots-0.21.1.crate
/webpki-roots-0.22.6.crate
+/webpki-roots-0.23.1.crate
diff --git a/rust-webpki-roots.spec b/rust-webpki-roots.spec
index 6004fe1..93983ef 100644
--- a/rust-webpki-roots.spec
+++ b/rust-webpki-roots.spec
@@ -4,8 +4,11 @@
%global crate webpki-roots
+# compile and run tests only on supported architectures
+%global supported_arches x86_64 %{ix86} aarch64 %{arm}
+
Name: rust-webpki-roots
-Version: 0.22.6
+Version: 0.23.1
Release: %autorelease
Summary: Mozilla's CA root certificates for use with webpki
@@ -16,9 +19,6 @@ Source: %{crates_source}
# * prevent development-only executable from being built
Patch: webpki-roots-fix-metadata.diff
-# ring is not available on ppc64le and s390x
-ExcludeArch: ppc64le s390x
-
BuildRequires: rust-packaging >= 21
%global _description %{expand:
@@ -60,15 +60,19 @@ use the "default" 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 774feae..aa00084 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (webpki-roots-0.22.6.crate) =
00413a8354e2277f50c29851ed49a97f76bacb2017d61b10333981d15bcee13eceef8711e87d2aef1ed4f8a85763c6b1e7e21d61a57e7f689fe4aa6e67f4c140
+SHA512 (webpki-roots-0.23.1.crate) =
0fc144a385c92cc641f8683e935ccc3c30678404094f75b1b4396adbdaa40a2a758cc196c3df6f550a3e617bc780bf5d1448b752a3a1cd626605e28dbf307fb6
diff --git a/webpki-roots-fix-metadata.diff b/webpki-roots-fix-metadata.diff
index 364a5a7..4ed71e9 100644
--- a/webpki-roots-fix-metadata.diff
+++ b/webpki-roots-fix-metadata.diff
@@ -1,10 +1,10 @@
---- webpki-roots-0.22.6/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ webpki-roots-0.22.6/Cargo.toml 2023-03-18T21:25:06.575320+00:00
-@@ -19,6 +19,7 @@
+--- webpki-roots-0.23.1/Cargo.toml 1970-01-01T00:00:01+00:00
++++ webpki-roots-0.23.1/Cargo.toml 2023-06-28T16:22:48.212333+00:00
+@@ -18,6 +18,7 @@
readme = "README.md"
license = "MPL-2.0"
repository = "https://github.com/rustls/webpki-roots"
+autobins = false
[dependencies.webpki]
- version = "0.22.0"
+ version = "0.100.0"