diff --git a/ocaml-labltk.spec b/ocaml-labltk.spec index e7ea43ac05f7869678673fc55d8989c9627efb28..a8ec0d042a210e9a636ad36bbe24ebdc6e94c5e6 100644 --- a/ocaml-labltk.spec +++ b/ocaml-labltk.spec @@ -1,7 +1,7 @@ -%define anolis_release 1 +%define anolis_release 2 %undefine _package_note_flags -%ifarch %{ocaml_native_compiler} +%ifnarch sw_64 %global native_compiler 1 %else %global native_compiler 0 @@ -62,12 +62,12 @@ echo -e 'all:\ninstall:\n' > browser/Makefile # Build does not work in parallel. 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 @@ -115,5 +115,8 @@ install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk %doc Changes README.mlTk %changelog +* Tue Mar 11 2025 Chunchao Zhang - 8.06.13-2 +- Add sw_64 support + * Mon Mar 20 2023 Yuanhong Peng - 8.06.13-1 - Init from upstream