commit b0a1271e179c72d0000a246077d8108731ac735e
Author: Jakub Bogusz <[email protected]>
Date:   Sat Apr 24 17:47:39 2021 +0200

    - try with x32

 rav1e.spec | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/rav1e.spec b/rav1e.spec
index 0e18f85..f503c79 100644
--- a/rav1e.spec
+++ b/rav1e.spec
@@ -24,9 +24,15 @@ BuildRequires:       rust
 # for tests only?
 #BuildRequires:        aom-devel
 #BuildRequires:        dav1d-devel
-ExclusiveArch: %{ix86} %{x8664} aarch64
+ExclusiveArch: %{ix86} %{x8664} x32 aarch64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch        x32
+%define                target_opt      --target x86_64-unknown-linux-gnux32
+%else
+%define                target_opt      %{nil}
+%endif
+
 %description
 rav1e is an AV1 video encoder. It is designed to eventually cover all
 use cases, though in its current form it is most suitable for cases
@@ -90,16 +96,16 @@ EOF
 %build
 export CARGO_HOME="$(pwd)/.cargo"
 
-cargo -v build --release --frozen
+cargo -v build --release --frozen %{target_opt}
 
-cargo -v cbuild --release --frozen
+cargo -v cbuild --release --frozen %{target_opt}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-cargo -v install --frozen --path . --root $RPM_BUILD_ROOT%{_prefix}
+cargo -v install --frozen --path %{target_opt} . --root 
$RPM_BUILD_ROOT%{_prefix}
 
-cargo -v cinstall --frozen --release \
+cargo -v cinstall --frozen --release %{target_opt} \
        --destdir $RPM_BUILD_ROOT \
        --prefix %{_prefix} \
        --bindir %{_bindir} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rav1e.git/commitdiff/b0a1271e179c72d0000a246077d8108731ac735e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to