diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | libXt-support-sw_64.patch | 25 | ||||
-rw-r--r-- | libXt.spec | 103 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 130 insertions, 0 deletions
@@ -0,0 +1 @@ +/libXt-1.3.1.tar.xz diff --git a/libXt-support-sw_64.patch b/libXt-support-sw_64.patch new file mode 100644 index 0000000..90d3dbb --- /dev/null +++ b/libXt-support-sw_64.patch @@ -0,0 +1,25 @@ +From d900b21bed8c9ed15c85e2e87f76fbe4d656a3b2 Mon Sep 17 00:00:00 2001 +From: yangchenguang <yangchenguang@kylinsec.com.cn> +Date: Wed, 17 Jul 2024 10:09:14 +0800 +Subject: [PATCH] libXt support sw_64 + +Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn> +--- + include/X11/Xtos.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/X11/Xtos.h b/include/X11/Xtos.h +index 84910c0..9a3844d 100644 +--- a/include/X11/Xtos.h ++++ b/include/X11/Xtos.h +@@ -59,6 +59,7 @@ SOFTWARE. + # endif + # elif defined (_LP64) || \ + defined(__alpha) || defined(__alpha__) || \ ++ defined(__sw_64) || defined(__sw_64__) || \ + defined(__ia64__) || defined(ia64) || \ + defined(__sparc64__) || \ + defined(__s390x__) || \ +-- +2.39.1 + diff --git a/libXt.spec b/libXt.spec new file mode 100644 index 0000000..846785a --- /dev/null +++ b/libXt.spec @@ -0,0 +1,103 @@ +%bcond_without static + +Name: libXt +Version: 1.3.1 +Release: 1 +License: MIT +Summary: X.Org X11 libXt runtime library +URL: https://www.x.org +Source0: https://www.x.org/releases/individual/lib/%{name}-%{version}.tar.xz + +Patch1000: libXt-support-sw_64.patch + +BuildRequires: make gcc +BuildRequires: pkgconfig(glib-2.0) >= 2.40 +BuildRequires: pkgconfig(ice) +BuildRequires: pkgconfig(kbproto) +BuildRequires: pkgconfig(sm) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xproto) +Requires: libX11 >= 1.6 + +%description +X.Org X11 libXt runtime library + +%package devel +Summary: X.Org X11 libXt development package +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for %{name}. + +%package_help + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +%configure --enable-unit-tests --with-xfile-search-path="%{_sysconfdir}/X11/%%L/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%l/%%T/\%%N%%C%%S:%{_sysconfdir}/X11/%%T/%%N%%C%%S:%{_sysconfdir}/X11/%%L/%%T/%%N%%S:%{_sysconfdir}/X\11/%%l/%%T/%%N%%S:%{_sysconfdir}/X11/%%T/%%N%%S:%{_datadir}/X11/%%L/%%T/%%N%%C%%S:%{_datadir}/X1\1/%%l/%%T/%%N%%C%%S:%{_datadir}/X11/%%T/%%N%%C%%S:%{_datadir}/X11/%%L/%%T/%%N%%S:%{_datadir}/X11/%%\l/%%T/%%N%%S:%{_datadir}/X11/%%T/%%N%%S" \ +%if %{with static} + --disable-static +%endif + +%make_build + +%check +%make_build check + +%install +%make_install +mkdir -p -m 0755 $RPM_BUILD_ROOT%{_datadir}/X11/app-defaults +%delete_la + +%files +%license COPYING +%{_libdir}/*.so.* +%dir %{_datadir}/X11/app-defaults + +%files devel +%{_includedir}/X11/*.h +%{_libdir}/*.so +%if %{without static} +%{_libdir}/*.a +%endif +%{_libdir}/pkgconfig/*.pc + +%files help +%{_mandir}/man3/*.3* +%{_docdir}/%{name}/*.xml + +%changelog +* Sun Nov 17 2024 Funda Wang <fundawang@yeah.net> - 1.3.1-1 +- update to 1.3.1 + +* Wed Jul 17 2024 yangchenguang <yangchenguang@kylinsec.com.cn> - 1.3.0-2 +- Modify sw_64 patch use all arch + +* Thu Jul 20 2023 zhangpan <zhangpan103@h-partners.com> - 1.3.0-1 +- update to 1.3.0 + +* Wed Nov 23 2022 wuzx<wuzx1226@qq.com> - 1.2.1-4 +- Add sw64 architecture + +* Sat Oct 22 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-3 +- disable static library by default + +* Mon Jun 06 2022 wangkerong <wangkerong@h-partners.com> - 1.2.1-2 +- enable test + +* Thu Nov 25 2021 xingxing <xingxing9@huawei.com> - 1.2.1-1 +- updata to 1.2.1 + +* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.2.0-0 +- updata package + +* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.5-11 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:change the directory of the license file + +* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.5-10 +- Package init @@ -0,0 +1 @@ +9acd189c68750b5028cf120e53c68009 libXt-1.3.1.tar.xz |