[packages/dssim2] - disable debugsource packages, updated archs list

qboosh qboosh at pld-linux.org
Tue Dec 28 21:16:46 CET 2021


commit fcfcef68b8f29b87a18721ec692ffed94f62c029
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 28 21:17:31 2021 +0100

    - disable debugsource packages, updated archs list

 dssim2.spec | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/dssim2.spec b/dssim2.spec
index 70ef0ad..ddf20a1 100644
--- a/dssim2.spec
+++ b/dssim2.spec
@@ -18,9 +18,16 @@ URL:		https://kornel.ski/dssim
 BuildRequires:	cargo
 BuildRequires:	rust
 Obsoletes:	dssim < 2
-ExclusiveArch:	%{x8664} %{ix86}
+ExclusiveArch:	%{x8664} %{ix86} x32 aarch64 armv6hl armv7hl armv7hnl
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_debugsource_packages	0
+%ifarch	x32
+%define		target_opt	--target x86_64-unknown-linux-gnux32
+%else
+%define		target_opt	%{nil}
+%endif
+
 %description
 This tool computes (dis)similarity between two or more PNG images
 using an algorithm approximating human vision.
@@ -54,14 +61,16 @@ EOF
 %build
 export CARGO_HOME="$(pwd)/.cargo"
 
-cargo -v build --release --frozen
+cargo -v build --release --frozen %{target_opt}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 export CARGO_HOME="$(pwd)/.cargo"
 
-cargo -v install --frozen --path . --root $RPM_BUILD_ROOT%{_prefix}
+cargo -v install --frozen %{target_opt} \
+	--path . \
+	--root $RPM_BUILD_ROOT%{_prefix}
 
 %{__rm} $RPM_BUILD_ROOT%{_prefix}/.crates.toml
 %{__rm} $RPM_BUILD_ROOT%{_prefix}/.crates2.json
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dssim2.git/commitdiff/fcfcef68b8f29b87a18721ec692ffed94f62c029



More information about the pld-cvs-commit mailing list