From 9bc2e110d9072006c0cf137eda6cb5a02e86689a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=91=E5=AE=81?= Date: Tue, 18 Feb 2025 05:46:53 +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 661c1ed8e75dda6c2046a47fd3002d2724903a7e) --- ocaml-camlp4.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ocaml-camlp4.spec b/ocaml-camlp4.spec index b9330e0..31dc0be 100644 --- a/ocaml-camlp4.spec +++ b/ocaml-camlp4.spec @@ -1,6 +1,13 @@ +%ifnarch sw_64 +%global native_compiler 1 +%else +%global native_compiler 0 +%global debug_package %{nil} +%endif + Name: ocaml-camlp4 Version: 4.14.1 -Release: 1 +Release: 2 Summary: Pre-Processor for OCaml License: LGPLv2+ with exceptions URL: https://github.com/ocaml/camlp4 @@ -33,7 +40,11 @@ This package contains runtime files. ./configure unset MAKEFLAGS +%if %{native_compiler} make all +%else +make byte +%endif %install install -d $RPM_BUILD_ROOT%{_bindir} @@ -65,6 +76,7 @@ make install \ %doc LICENSE %{_bindir}/camlp4* %{_bindir}/mkcamlp4 +%if %{native_compiler} %{_libdir}/ocaml/camlp4/*.a %{_libdir}/ocaml/camlp4/*.cmxa %{_libdir}/ocaml/camlp4/*.cmx @@ -77,8 +89,12 @@ make install \ %{_libdir}/ocaml/camlp4/Camlp4Printers/*.o %{_libdir}/ocaml/camlp4/Camlp4Top/*.cmx %{_libdir}/ocaml/camlp4/Camlp4Top/*.o +%endif %changelog +* Tue Feb 18 2025 zhangshaoning - 4.14.1-2 +- Add sw_64 support + * Thu Aug 31 2023 xu_ping <707078654@qq.com> -4.14.1-1 - update to 4.14.1