diff --git a/libXt-1.2.1-sw.patch b/libXt-1.2.1-sw.patch new file mode 100755 index 0000000..787b605 --- /dev/null +++ b/libXt-1.2.1-sw.patch @@ -0,0 +1,11 @@ +diff -Naur libXt-1.2.1.org/include/X11/Xtos.h libXt-1.2.1.sw/include/X11/Xtos.h +--- libXt-1.2.1.org/include/X11/Xtos.h 2022-02-26 01:04:27.600000000 +0000 ++++ libXt-1.2.1.sw/include/X11/Xtos.h 2022-02-26 01:05:17.470000000 +0000 +@@ -55,6 +55,7 @@ + + #if defined (_LP64) || \ + defined(__alpha) || defined(__alpha__) || \ ++ defined(__sw_64) || defined(__sw_64__) || \ + defined(__ia64__) || defined(ia64) || \ + defined(__sparc64__) || \ + defined(__s390x__) || \ diff --git a/libXt.spec b/libXt.spec index 7e59ebe..de9473d 100644 --- a/libXt.spec +++ b/libXt.spec @@ -2,11 +2,14 @@ Name: libXt Version: 1.2.1 -Release: 3 +Release: 4 License: MIT Summary: X.Org X11 libXt runtime library URL: https://www.x.org Source0: https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2 +%ifarch sw_64 +Patch1: libXt-1.2.1-sw.patch +%endif BuildRequires: xorg-x11-util-macros autoconf automake libtool make glib2-devel BuildRequires: pkgconfig(xproto) pkgconfig(x11) pkgconfig(sm) @@ -69,6 +72,9 @@ mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults %{_docdir}/%{name}/*.xml %changelog +* Wed Nov 23 2022 wuzx - 1.2.1-4 +- Add sw64 architecture + * Sat Oct 22 2022 wangkerong - 1.2.1-3 - disable static library by default