!15 [sync] PR-12: add loongarch64 and sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-09-21 12:18:41 +00:00 committed by Gitee
commit 0a71e3b205
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <panchenbo@kylinsec.com.cn> - 0.78-4
- add loongarch64 and sw_64 support
* Thu Jun 03 2021 wulei <wulei80@huawei.com> - 0.78-3
- fixes failed: Could not find a C compiler