From cc9303955b75ac1afab27431e2a637436c63db98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=91=E5=AE=81?= Date: Tue, 25 Feb 2025 03:26:00 +0000 Subject: [PATCH] Add sw_64 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张少宁 (cherry picked from commit 57ecb93aa72433e44c07d033de7f23bdf262babe) --- labltk.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/labltk.spec b/labltk.spec index 7776c73..4d83221 100644 --- a/labltk.spec +++ b/labltk.spec @@ -1,11 +1,11 @@ -%ifarch %{ocaml_native_compiler} +%ifnarch sw_64 %global native_compiler 1 %else %global native_compiler 0 %endif Name: ocaml-labltk Version: 8.06.13 -Release: 1 +Release: 2 Summary: Tcl/Tk interface for OCaml License: LGPLv2+ with exceptions URL: https://github.com/garrigue/labltk @@ -44,12 +44,12 @@ echo -e 'all:\ninstall:\n' > browser/Makefile %build ./configure -verbose unset MAKEFLAGS -%if !%{native_compiler} -make byte -%else +%if %{native_compiler} make all opt \ SHAREDCCCOMPOPTS="%{optflags} -fPIC" \ TK_LINK="%{__global_ldflags} -ltk8.6 -ltcl8.6" +%else +make byte %endif %install @@ -90,6 +90,9 @@ install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk %{_libdir}/ocaml/labltk/*.mli %changelog +* Tue Feb 25 2025 zhangshaoning - 8.06.13-2 +- Add sw_64 support + * Mon May 15 2023 liyanan - 8.06.13-1 - update version to 8.06.13 -- Gitee