diff --git a/ocaml.spec b/ocaml.spec index 4c670737f14f317472ee567ac91441d1fac2b6fc..cc11982eecefa5e03d0c486d260cf402491baee3 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