You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-packaging/0014-Set-BuildArch-noarch-w...

31 lines
880 B

From cbd5313fb9d5ca1aa59ffa3dffaa8d1ad9e68d69 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date: Sat, 8 Jun 2019 20:01:12 +0200
Subject: [PATCH 14/14] Set BuildArch: noarch with %__cargo_skip_build
We do not need to spawn 7 tasks for each architecture to copy same files
over and over.
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
rust2rpm/templates/main.spec | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rust2rpm/templates/main.spec b/rust2rpm/templates/main.spec
index 69d23d7..a3e3c2e 100644
--- a/rust2rpm/templates/main.spec
+++ b/rust2rpm/templates/main.spec
@@ -39,6 +39,9 @@ Patch0: {{ patch_file }}
{% endif %}
ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
BuildRequires: rust-packaging
{% if not generate_buildrequires %}
--
2.22.0.rc3