[packages/rav1e] - no features flags for cargo-c
qboosh
qboosh at pld-linux.org
Sun Apr 25 20:36:09 CEST 2021
commit 949174c297719251ce1f84b5035869b2e8f5f5b0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 25 20:38:02 2021 +0200
- no features flags for cargo-c
rav1e.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/rav1e.spec b/rav1e.spec
index fb98ecb..c114a40 100644
--- a/rav1e.spec
+++ b/rav1e.spec
@@ -28,9 +28,11 @@ ExclusiveArch: %{ix86} %{x8664} x32 aarch64
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%ifarch x32
-%define target_opt --target x86_64-unknown-linux-gnux32 --no-default-features --features "binaries signal_support"
+%define target_opt --target x86_64-unknown-linux-gnux32
+%define features --no-default-features --features "binaries signal_support"
%else
%define target_opt %{nil}
+%define features %{nil}
%endif
%description
@@ -96,14 +98,16 @@ EOF
%build
export CARGO_HOME="$(pwd)/.cargo"
-cargo -v build --release --frozen %{target_opt}
+cargo -v build --release --frozen %{target_opt} %{features}
cargo -v cbuild --release --frozen %{target_opt}
%install
rm -rf $RPM_BUILD_ROOT
-cargo -v install --frozen --path %{target_opt} . --root $RPM_BUILD_ROOT%{_prefix}
+cargo -v install --frozen %{target_opt} %{features} \
+ --path . \
+ --root $RPM_BUILD_ROOT%{_prefix}
cargo -v cinstall --frozen --release %{target_opt} \
--destdir $RPM_BUILD_ROOT \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rav1e.git/commitdiff/949174c297719251ce1f84b5035869b2e8f5f5b0
More information about the pld-cvs-commit
mailing list