!11 [sync] PR-7: 【轻量级 PR】:Add sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2025-02-19 08:57:09 +00:00 committed by Gitee
commit dc097f1957
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <zhangshaoning@uniontech.com> - 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