!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:
commit
dc097f1957
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user