The package rpms/rust-rustls.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-rustls.git/commit/?id=225344....
Change:
+%ifarch %{supported_arches}
Thanks.
Full change:
============
commit 225344fcd752895e7da47c758de9d11a6a4c8a84
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Wed Jun 28 18:25:29 2023 +0200
Update to version 0.21.2; Fixes RHBZ#2182860
diff --git a/.gitignore b/.gitignore
index 0b264e1..1a68013 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/rustls-0.19.1.crate
/rustls-0.20.8.crate
+/rustls-0.21.1.crate
diff --git a/rust-rustls.spec b/rust-rustls.spec
index 9b48561..d4b006c 100644
--- a/rust-rustls.spec
+++ b/rust-rustls.spec
@@ -4,21 +4,17 @@
%global crate rustls
+# compile and run tests only on supported architectures
+%global supported_arches x86_64 %{ix86} aarch64 %{arm}
+
Name: rust-rustls
-Version: 0.20.8
+Version: 0.21.1
Release: %autorelease
Summary: Modern TLS library written in Rust
-# Upstream license specification: Apache-2.0/ISC/MIT
License: Apache-2.0 OR ISC OR MIT
URL:
https://crates.io/crates/rustls
Source: %{crates_source}
-# Manually created patch for downstream crate metadata changes
-# * drop unused, benchmark-only criterion dev-dependency to speed up builds
-Patch: rustls-fix-metadata.diff
-
-# ring is not available on ppc64le and s390x
-ExcludeArch: ppc64le s390x
BuildRequires: rust-packaging >= 21
@@ -159,17 +155,21 @@ use the "tls12" 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
# * files needed for integration tests are not included in published crates
%cargo_test -- --lib -- --skip msgs::message_test::test_read_fuzz_corpus
%cargo_test -- --doc
%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/rustls-fix-metadata.diff b/rustls-fix-metadata.diff
deleted file mode 100644
index d85df7c..0000000
--- a/rustls-fix-metadata.diff
+++ /dev/null
@@ -1,24 +0,0 @@
---- rustls-0.20.8/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ rustls-0.20.8/Cargo.toml 2023-03-18T21:17:17.212541+00:00
-@@ -50,11 +50,6 @@
- name = "bench"
- path = "examples/internal/bench.rs"
-
--[[bench]]
--name = "benchmarks"
--path = "benches/benchmarks.rs"
--harness = false
--
- [dependencies.log]
- version = "0.4.4"
- optional = true
-@@ -74,9 +69,6 @@
-
- [dev-dependencies.base64]
- version = "0.13.0"
--
--[dev-dependencies.criterion]
--version = "0.3.0"
-
- [dev-dependencies.env_logger]
- version = "0.9.0"
diff --git a/sources b/sources
index d7e4abd..a22f5c6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rustls-0.20.8.crate) =
4f56494987cd3a56f47dd07d31c7f73d262a4d003cf9cc11e0bce5fa85c87f18124b1c364186501736f0d40a1f193a24d5d73f37a491ff81ca8eff568559e547
+SHA512 (rustls-0.21.1.crate) =
df07a0612841f94c81d73334f4c38f887bc58ce5e4190a465c124ff56e1c6ca7051fffc754bbd314d4e6ddae50b0ad75511547e7505bcbaea7cf07ba1e2ea4dc