The package rpms/rust-ring.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-ring.git/commit/?id=778d059dc23....
Change: +%ifarch %{supported_arches}
Thanks.
Full change: ============
commit 778d059dc23a2f984abc96a968c0244489028836 Author: Fabio Valentini decathorpe@gmail.com Date: Sat Apr 1 16:14:39 2023 +0200
Remove ExcludeArch but only compile on supported architectures
diff --git a/ring-fix-metadata-auto.diff b/ring-fix-metadata-auto.diff index 3c41da5..797c2b0 100644 --- a/ring-fix-metadata-auto.diff +++ b/ring-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- ring-0.16.20/Cargo.toml 2021-02-01T22:20:41+00:00 -+++ ring-0.16.20/Cargo.toml 2023-03-18T22:05:06.357486+00:00 ++++ ring-0.16.20/Cargo.toml 2023-04-01T14:08:54.743609+00:00 @@ -60,10 +60,6 @@ std = ["alloc"] test_logging = [] diff --git a/ring-fix-metadata.diff b/ring-fix-metadata.diff index 303fe84..8b66123 100644 --- a/ring-fix-metadata.diff +++ b/ring-fix-metadata.diff @@ -1,5 +1,5 @@ --- ring-0.16.20/Cargo.toml 2021-02-01T22:20:41+00:00 -+++ ring-0.16.20/Cargo.toml 2023-03-18T22:06:09.210728+00:00 ++++ ring-0.16.20/Cargo.toml 2023-04-01T14:09:25.801749+00:00 @@ -23,25 +23,10 @@ readme = "doc/link-to-readme.md" keywords = ["crypto", "cryptography", "rand", "ECC", "RSA"] diff --git a/rust-ring.spec b/rust-ring.spec index d6f8af0..381a57a 100644 --- a/rust-ring.spec +++ b/rust-ring.spec @@ -4,6 +4,10 @@
%global crate ring
+# compile and run tests only on supported architectures +# https://bugzilla.redhat.com/show_bug.cgi?id=1869980 +%global supported_arches x86_64 %{ix86} aarch64 %{arm} + Name: rust-ring Version: 0.16.20 Release: %autorelease @@ -20,10 +24,6 @@ Patch: ring-fix-metadata-auto.diff # * set package.license in metadata to match package license Patch: ring-fix-metadata.diff
-# * ring does not support ppc64le and s390x: -# https://bugzilla.redhat.com/show_bug.cgi?id=1869980 -ExcludeArch: ppc64le s390x - BuildRequires: rust-packaging >= 21
%global _description %{expand: @@ -161,17 +161,21 @@ use the "wasm32_c" 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 %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}
arch-excludes@lists.fedoraproject.org