Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
This commit is contained in:
wzx 2022-10-20 10:27:03 +08:00
parent 256d519a95
commit 4b81626282
2 changed files with 32 additions and 1 deletions

24
fontconfig-2.13.94-sw.patch Executable file
View File

@ -0,0 +1,24 @@
diff -Naur fontconfig-2.13.94.org/configure fontconfig-2.13.94.sw/configure
--- fontconfig-2.13.94.org/configure 2022-02-25 06:55:07.530000000 +0000
+++ fontconfig-2.13.94.sw/configure 2022-02-25 06:57:04.540000000 +0000
@@ -21822,7 +21822,7 @@
typedef unsigned long long uint64_t;
#endif
-#elif defined __alpha || (defined __mips && defined _ABIN32)
+#elif defined __alpha || defined __sw_64 || (defined __mips && defined _ABIN32)
#if !defined _NO_LONGLONG
typedef long int64_t;
typedef unsigned long uint64_t;
diff -Naur fontconfig-2.13.94.org/m4/ax_create_stdint_h.m4 fontconfig-2.13.94.sw/m4/ax_create_stdint_h.m4
--- fontconfig-2.13.94.org/m4/ax_create_stdint_h.m4 2022-02-25 06:55:07.380000000 +0000
+++ fontconfig-2.13.94.sw/m4/ax_create_stdint_h.m4 2022-02-25 06:57:34.340000000 +0000
@@ -412,7 +412,7 @@
typedef unsigned long long uint64_t;
#endif
-#elif defined __alpha || (defined __mips && defined _ABIN32)
+#elif defined __alpha || defined __sw_64 || (defined __mips && defined _ABIN32)
#if !defined _NO_LONGLONG
typedef long int64_t;
typedef unsigned long uint64_t;

View File

@ -2,7 +2,7 @@
Name: fontconfig Name: fontconfig
Version: 2.13.94 Version: 2.13.94
Release: 2 Release: 3
Summary: Fontconfig is a library for configuring and customizing font access Summary: Fontconfig is a library for configuring and customizing font access
License: MIT and Public Domain and UCD License: MIT and Public Domain and UCD
URL: http://fontconfig.org URL: http://fontconfig.org
@ -11,6 +11,7 @@ Source1: fc-cache
Source2: FcConfigGetFilename.3 Source2: FcConfigGetFilename.3
Patch6000: backport-fontconfig-disable-network-required-test.patch Patch6000: backport-fontconfig-disable-network-required-test.patch
Patch6001: fontconfig-2.13.94-sw.patch
BuildRequires: libxml2-devel freetype-devel >= %{freetype_version} fontpackages-devel libuuid-devel BuildRequires: libxml2-devel freetype-devel >= %{freetype_version} fontpackages-devel libuuid-devel
BuildRequires: autoconf automake libtool gettext itstool gperf BuildRequires: autoconf automake libtool gettext itstool gperf
@ -43,6 +44,9 @@ applications that uses fontconfig.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%ifnarch sw_64
%patch6001 -R -p1
%endif
cp %{SOURCE2} $RPM_BUILD_DIR/%{name}-%{version}/doc cp %{SOURCE2} $RPM_BUILD_DIR/%{name}-%{version}/doc
%build %build
@ -120,6 +124,9 @@ HOME=/root /usr/bin/fc-cache -s
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Thu Oct 20 2022 wuzx<wuzx1226@qq.com> - 2.13.94-3
- add sw64 patch
* Mon Jun 13 2022 wuchaochao <cyanrose@yeah.net> - 2.13.94-2 * Mon Jun 13 2022 wuchaochao <cyanrose@yeah.net> - 2.13.94-2
- fix changelog - fix changelog