From c8c81d2398af939fa2cd4d57e8e4d6651abe445f Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Sun, 27 Nov 2022 22:37:06 -0600 Subject: [PATCH] Fixes for ARM64 build --- wine.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wine.spec b/wine.spec index 2ff0429..ad5bba7 100644 --- a/wine.spec +++ b/wine.spec @@ -98,8 +98,13 @@ Source900: https://github.com/wine-staging/wine-staging/archive/v%{version}.tar. %endif %if !%{?no64bit} +%if 0%{fedora} > 36 ExclusiveArch: %{ix86} x86_64 aarch64 %else +# Fedora 36 Clang doesn't build PE binaries on ARM at the moment +ExclusiveArch: %{ix86} x86_64 +%endif +%else ExclusiveArch: %{ix86} %endif @@ -783,6 +788,9 @@ unset PKG_CONFIG_PATH # setup for alternatives usage %ifarch x86_64 aarch64 +%ifarch aarch64 +mv %{buildroot}%{_bindir}/wine %{buildroot}%{_bindir}/wine64 +%endif mv %{buildroot}%{_bindir}/wineserver %{buildroot}%{_bindir}/wineserver64 %endif %ifarch %{ix86} %{arm}