Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit b48636631a3cf1d28652bd9759f512d68576dbc1)
This commit is contained in:
wzx 2022-11-23 16:06:00 +08:00 committed by openeuler-sync-bot
parent 6699d0343e
commit ad24453be4
2 changed files with 18 additions and 1 deletions

11
libXfont2-2.0.5-sw.patch Executable file
View File

@ -0,0 +1,11 @@
diff -Naur libXfont2-2.0.5.org/src/util/fontxlfd.c libXfont2-2.0.5.sw/src/util/fontxlfd.c
--- libXfont2-2.0.5.org/src/util/fontxlfd.c 2022-02-26 07:10:25.040000000 +0000
+++ libXfont2-2.0.5.sw/src/util/fontxlfd.c 2022-02-26 07:11:03.520000000 +0000
@@ -197,6 +197,7 @@
#if defined(i386) || defined(__i386__) || \
defined(ia64) || defined(__ia64__) || \
defined(__alpha__) || defined(__alpha) || \
+ defined(__sw_64__) || defined(__sw_64) || \
defined(__hppa__) || \
defined(__amd64__) || defined(__amd64) || \
defined(sgi)

View File

@ -1,10 +1,13 @@
Name: libXfont2
Version: 2.0.5
Release: 2
Release: 3
Summary: X.Org X11 libXfont2 runtime library
License: MIT
URL: https://xorg.freedesktop.org/
Source0: https://www.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
%ifarch sw_64
Patch1: libXfont2-2.0.5-sw.patch
%endif
BuildRequires: autoconf automake libtool pkgconfig(fontsproto) freetype-devel
BuildRequires: xorg-x11-util-macros libfontenc-devel xorg-x11-xtrans-devel
@ -60,6 +63,9 @@ export CFLAGS="$RPM_OPT_FLAGS -Os"
%doc README.md
%changelog
* Fri Nov 11 2022 wuzx<wuzx1226@qq.com> - 2.0.5-3
- Add sw64 architecture
* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 2.0.5-2
- Rebuild for next release