From a1b2c106e54af6f3b4bea07b5a0a5d07cf5d799a 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 03:09:57 +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: 张少宁 --- ocaml.spec | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ocaml.spec b/ocaml.spec index 4c67073..cc11982 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -1,11 +1,15 @@ +%ifarch sw_64 +%global native_compiler 0 +%global natdynlink 0 +%else %global native_compiler 1 - %global natdynlink 1 +%endif Name: ocaml Version: 4.14.1 -Release: 3 +Release: 4 Summary: OCaml compiler and programming environment License: LGPL-2.1-only URL: http://www.ocaml.org @@ -31,6 +35,12 @@ Obsoletes: %{name}-ocamldoc %global __ocaml_requires_opts -c -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo.byte' %global __ocaml_provides_opts -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo.byte' +%ifarch sw_64 +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}ocaml\\(Backend_intf\\)\.* +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}ocaml\\(Inlining_decision_intf\\)\.* +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}ocaml\\(Simplify_boxed_integer_ops_intf\\)\.* +%endif + %description OCaml is a high-level, strongly-typed, functional and object-oriented programming language from the ML family of languages. This package @@ -241,6 +251,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata %{_mandir}/man3/* %changelog +* Tue Feb 18 2025 zhangshaoning - 4.14.1-4 +- Add sw_64 support + * Fri Jun 07 2024 Wenlong Zhang - 4.14.1-3 - Add LoongArch native support for ocaml -- Gitee