public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-sev] update-8.0.0: Use rust2rpm.toml `supported-arches` instead of ExclusiveArch
@ 2026-10-23 19:05 Cole Robinson
  0 siblings, 0 replies; only message in thread
From: Cole Robinson @ 2026-10-23 19:05 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/rust-sev
            Branch : update-8.0.0
            Commit : 1b8df0d6ed6b69cf4c34949ec2c418b4822bf6b7
            Author : Cole Robinson <crobinso@redhat.com>
            Date   : 2024-12-14T19:38:16-05:00
            Stats  : +9/-6 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/rust-sev/c/1b8df0d6ed6b69cf4c34949ec2c418b4822bf6b7?branch=update-8.0.0

            Log:
            Use rust2rpm.toml `supported-arches` instead of ExclusiveArch

Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
diff --git a/rust-sev.spec b/rust-sev.spec
index b7abdbb..b1d83df 100644
--- a/rust-sev.spec
+++ b/rust-sev.spec
@@ -4,6 +4,9 @@
 
 %global crate sev
 
+# compile and run tests only on supported architectures
+%global supported_arches x86_64
+
 Name:           rust-sev
 Version:        4.0.0
 Release:        %autorelease
@@ -12,11 +15,6 @@ Summary:        Library for AMD SEV
 License:        Apache-2.0
 URL:            https://crates.io/crates/sev
 Source:         %{crates_source}
-
-# SEV is an AMD x86_64 CPU feature so doesn't make sense to
-# try to build on other arches
-ExclusiveArch:  x86_64
-
 # Manually created patch for downstream crate metadata changes
 # * Mark rdrand dep optional like is done upstream
 Patch:          sev-fix-metadata.diff
@@ -98,15 +96,19 @@ use the "snp" 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.toml b/rust2rpm.toml
index 55dff92..7e6f989 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -2,6 +2,7 @@
 cargo-toml-patch-comments = [
     "Mark rdrand dep optional like is done upstream",
 ]
+supported-arches = ["x86_64"]
 
 
 [features]

diff --git a/sev-fix-metadata.diff b/sev-fix-metadata.diff
index 0eb250c..7bb97a9 100644
--- a/sev-fix-metadata.diff
+++ b/sev-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- sev-4.0.0/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ sev-4.0.0/Cargo.toml	2024-12-15T00:32:26.892440+00:00
++++ sev-4.0.0/Cargo.toml	2024-12-15T00:38:10.086667+00:00
 @@ -178,7 +178,7 @@
  hw_tests = []
  openssl = [

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-23 19:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-23 19:05 [rpms/rust-sev] update-8.0.0: Use rust2rpm.toml `supported-arches` instead of ExclusiveArch Cole Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox