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.
31 lines
882 B
31 lines
882 B
From b345d23e7a11357d828751e4db47a0685cfe207b 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..b4734b7 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
|
|
|