From c58b9692796bc4af9cd274c2ec3405e0f2ec0750 Mon Sep 17 00:00:00 2001 From: yinhongchang Date: Tue, 2 Apr 2024 09:36:37 +0800 Subject: [PATCH] build for aarch64 --- wine.spec | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/wine.spec b/wine.spec index 8b5d14c..d96ed1e 100644 --- a/wine.spec +++ b/wine.spec @@ -37,7 +37,7 @@ Name: wine Version: 9.0 -Release: 2 +Release: 3 Summary: A compatibility layer for windows applications License: LGPL-2.1-or-later @@ -80,11 +80,11 @@ Source501: wine-tahoma.conf Source502: wine-README-tahoma # Autoconf 2.72 support - https://bugzilla.redhat.com/show_bug.cgi?id=2143724 -Patch -P100: wine-7.22-autoconf-2.72.patch +Patch100: wine-7.22-autoconf-2.72.patch -Patch -P511: wine-cjk.patch +Patch511: wine-cjk.patch -Patch -P900: wine-staging-9.0.patch +Patch900: wine-staging-9.0.patch %if 0%{?wine_staging} # wine-staging patches @@ -93,12 +93,7 @@ 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 +ExclusiveArch: aarch64 %endif BuildRequires: bison @@ -652,18 +647,20 @@ export CFLAGS="`echo $CFLAGS | sed -e 's/-fexceptions//'`" unset PKG_CONFIG_PATH %configure \ - --enable-archs=i386,x86_64 \ --sysconfdir=%{_sysconfdir}/wine \ --x-includes=%{_includedir} --x-libraries=%{_libdir} \ - --with-dbus \ + --without-hal --with-dbus \ --with-x \ %ifarch %{arm} --with-float-abi=hard \ %endif +%ifarch x86_64 aarch64 + --enable-win64 \ +%endif %{?wine_staging: --with-xattr} \ --disable-tests -make %{?_smp_flags} +make %{?_smp_mflags} TARGETFLAGS="" %install @@ -1584,8 +1581,6 @@ fi %{_libdir}/wine/%{winesodir}/wineusb.so %{_libdir}/wine/%{winesodir}/winevulkan.so %{_libdir}/wine/%{winepedir}/winevulkan.dll -%{_libdir}/wine/%{winepedir}/winewayland.drv -%{_libdir}/wine/%{winesodir}/winewayland.so %{_libdir}/wine/%{winepedir}/winex11.drv %{_libdir}/wine/%{winesodir}/winex11.so %{_libdir}/wine/%{winepedir}/wing32.dll @@ -2194,7 +2189,6 @@ fi %{_libdir}/wine/i386-windows/libwininet.a %{_libdir}/wine/i386-windows/libwinmm.a %{_libdir}/wine/i386-windows/libwinnls32.a -%{_libdir}/wine/i386-windows/libwinscard.a %{_libdir}/wine/i386-windows/libwinspool.a %{_libdir}/wine/i386-windows/libwintab32.a %{_libdir}/wine/i386-windows/libwintrust.a @@ -2615,7 +2609,6 @@ fi %{_libdir}/wine/i386-windows/wineusb.sys %{_libdir}/wine/i386-windows/winevdm.exe %{_libdir}/wine/i386-windows/winevulkan.dll -%{_libdir}/wine/i386-windows/winewayland.drv %{_libdir}/wine/i386-windows/winex11.drv %{_libdir}/wine/i386-windows/winexinput.sys %{_libdir}/wine/i386-windows/wing.dll16 @@ -2630,7 +2623,6 @@ fi %{_libdir}/wine/i386-windows/winnls32.dll %{_libdir}/wine/i386-windows/winoldap.mod16 %{_libdir}/wine/i386-windows/winprint.dll -%{_libdir}/wine/i386-windows/winscard.dll %{_libdir}/wine/i386-windows/winsock.dll16 %{_libdir}/wine/i386-windows/winspool.drv %{_libdir}/wine/i386-windows/winsta.dll @@ -2716,12 +2708,6 @@ fi %{_libdir}/wine/i386-windows/xolehlp.dll %{_libdir}/wine/i386-windows/xpsprint.dll %{_libdir}/wine/i386-windows/xpssvcs.dll -%{_libdir}/wine/x86_64-unix/winscard.so -%{_libdir}/wine/x86_64-windows/winscard.dll - - - - %if 0%{?wine_staging} %ifarch x86_64 aarch64 @@ -3701,6 +3687,9 @@ fi %endif %changelog +* Thu Feb 29 2024 Yin HongChang - 9.0-3 +- compile wine-9.0 for success + * Fri Jan 19 2024 Li Shunlong - 9.0-2 * Tue Jan 16 2024 Michael Cronenworth - 9.0-1 @@ -3912,3 +3901,4 @@ fi * Tue Dec 08 2020 Michael Cronenworth 6.0-0.1rc1 - version update + -- Gitee