From: Jakub Bogusz Date: Sat, 24 Apr 2021 15:47:39 +0000 (+0200) Subject: - try with x32 X-Git-Tag: auto/th/rav1e-0.4.1-1~3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=b0a1271e179c72d0000a246077d8108731ac735e;p=packages%2Frav1e.git - try with x32 --- 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} \