From b0a1271e179c72d0000a246077d8108731ac735e Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 24 Apr 2021 17:47:39 +0200 Subject: [PATCH] - 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} \ -- 2.44.0