[packages/dssim2/rust-macros] use rust macros
atler
atler at pld-linux.org
Mon Jan 24 10:33:31 CET 2022
commit 5e1f7c668c9b497fa079336c92fff4efd71d9bc6
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jan 24 10:28:55 2022 +0100
use rust macros
dssim2.spec | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/dssim2.spec b/dssim2.spec
index ddf20a1..c10240f 100644
--- a/dssim2.spec
+++ b/dssim2.spec
@@ -21,13 +21,6 @@ Obsoletes: dssim < 2
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.
@@ -61,14 +54,14 @@ EOF
%build
export CARGO_HOME="$(pwd)/.cargo"
-cargo -v build --release --frozen %{target_opt}
+%cargo_build --frozen
%install
rm -rf $RPM_BUILD_ROOT
export CARGO_HOME="$(pwd)/.cargo"
-cargo -v install --frozen %{target_opt} \
+%cargo_install --frozen \
--path . \
--root $RPM_BUILD_ROOT%{_prefix}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dssim2.git/commitdiff/5e1f7c668c9b497fa079336c92fff4efd71d9bc6
More information about the pld-cvs-commit
mailing list