[projects/template-specs] bump macros for x32; add EA

atler atler at pld-linux.org
Wed Mar 31 11:43:19 CEST 2021


commit 3ae781910ad476381e90c5d92ed437f6373eeb1f
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 31 11:38:22 2021 +0200

    bump macros for x32; add EA

 rust.spec | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/rust.spec b/rust.spec
index d792e2c..51704a0 100644
--- a/rust.spec
+++ b/rust.spec
@@ -14,10 +14,11 @@ Source1:	%{name}-crates-%{version}.tar.xz
 # Source1-md5:	-
 URL:		-
 BuildRequires:	cargo
-BuildRequires:	rpmbuild(macros) >= 2.003
+BuildRequires:	rpmbuild(macros) >= 2.004
 BuildRequires:	rust
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
+ExclusiveArch:	%{rust_arches}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,11 +42,7 @@ EOF
 %build
 export CARGO_HOME="$(pwd)/.cargo"
 
-%cargo_build \
-%ifarch x32
-	--target x86_64-unknown-linux-gnux32 \
-%endif
-	--frozen
+%cargo_build --frozen
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/3ae781910ad476381e90c5d92ed437f6373eeb1f



More information about the pld-cvs-commit mailing list