From cf8846b4dd23adbe9408c7e87fb03503ea9ed1f3 Mon Sep 17 00:00:00 2001 From: panchenbo Date: Tue, 22 Aug 2023 14:18:17 +0800 Subject: [PATCH] add loongarch64 and sw_64 support --- jimtcl.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jimtcl.spec b/jimtcl.spec index 2eec079..603c00a 100644 --- a/jimtcl.spec +++ b/jimtcl.spec @@ -1,6 +1,6 @@ Name: jimtcl Version: 0.78 -Release: 3 +Release: 4 Summary: A small embeddable Tcl interpreter License: BSD URL: http://jim.tcl.tk @@ -26,6 +26,12 @@ This package contains libraries and header files for developing applications tha %autosetup -p1 %build +%ifarch sw_64 loongarch64 +rm -rf autosetup/autosetup-config.sub +rm -rf autosetup/autosetup-config.guess +/usr/bin/cp -fv /usr/lib/rpm/%{_vendor}/config.guess autosetup/autosetup-config.guess +/usr/bin/cp -fv /usr/lib/rpm/%{_vendor}/config.sub autosetup/autosetup-config.sub +%endif export CC=gcc LD=ld AR=ar RANLIB=ranlib STRIP=strip %configure --full --shared --disable-option-checking %make_build @@ -57,6 +63,9 @@ cd $RPM_BUILD_ROOT%{_libdir}; ln -s libjim.so.* libjim.so %exclude %{_libdir}/jim/{tcltest.tcl,README.extensions} %changelog +* Tue Aug 22 2023 panchenbo - 0.78-4 +- add loongarch64 and sw_64 support + * Thu Jun 03 2021 wulei - 0.78-3 - fixes failed: Could not find a C compiler -- Gitee