代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/ocaml-ocamlbuild 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%ifnarch %{ocaml_native_compiler}
%global debug_package %{nil}
%endif
Name: ocaml-ocamlbuild
Version: 0.14.2
Release: 1
Summary: Build tool for OCaml libraries and programs
License: LGPLv2+ with exceptions
URL: https://github.com/ocaml/ocamlbuild
Source0: https://github.com/ocaml/ocamlbuild/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: ocaml >= 4.04.0
%description
OCamlbuild is a build tool for building OCaml libraries and programs.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains development files for %{name}.
%package doc
Summary: Documentation for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description doc
This package contains the manual for %{name}.
%prep
%autosetup -n ocamlbuild-%{version} -p1
%build
make configure \
OCAMLBUILD_PREFIX=%{_prefix} \
OCAMLBUILD_BINDIR=%{_bindir} \
OCAMLBUILD_LIBDIR=%{_libdir}/ocaml \
OCAMLBUILD_MANDIR=%{_mandir} \
%ifarch %{ocaml_native_compiler}
OCAML_NATIVE=true
OCAML_NATIVE_TOOLS=true
%else
OCAML_NATIVE=false
OCAML_NATIVE_TOOLS=false
%endif
make \
%ifarch %{ocaml_native_compiler}
OCAMLC="ocamlc.opt -g" \
OCAMLOPT="ocamlopt.opt -g"
%else
OCAMLC="ocamlc -g" \
OCAMLOPT="ocamlopt -g"
%endif
%install
make install \
DESTDIR=$RPM_BUILD_ROOT \
CHECK_IF_PREINSTALLED=false
pushd $RPM_BUILD_ROOT/usr/bin
%ifarch %{ocaml_native_compiler}
ln -sf ocamlbuild.native ocamlbuild
%else
ln -sf ocamlbuild.byte ocamlbuild
%endif
popd
rm $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild/META
%files
%doc Changes Readme.md VERSION
%license LICENSE
%{_bindir}/ocamlbuild
%{_bindir}/ocamlbuild.byte
%ifarch %{ocaml_native_compiler}
%{_bindir}/ocamlbuild.native
%endif
%{_mandir}/man1/ocamlbuild.1*
%{_libdir}/ocaml/ocamlbuild
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/ocamlbuild/*.a
%exclude %{_libdir}/ocaml/ocamlbuild/*.o
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmx
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmxa
%endif
%exclude %{_libdir}/ocaml/ocamlbuild/*.mli
%files devel
%license LICENSE
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/ocamlbuild/*.a
%{_libdir}/ocaml/ocamlbuild/*.o
%{_libdir}/ocaml/ocamlbuild/*.cmx
%{_libdir}/ocaml/ocamlbuild/*.cmxa
%endif
%{_libdir}/ocaml/ocamlbuild/*.mli
%files doc
%license LICENSE
%doc manual/*
%changelog
* Tue Jul 25 2023 wangkai <[email protected]> - 0.14.2-1
- Update to 0.14.2
* Mon May 23 2022 yaoxin <[email protected]> - 0.14.0-1
- Update to 0.14.0
* Thu Jan 20 2022 xu_ping <[email protected]> - 0.12.0-2
- fix build error due to `Format.dprintf` does not shadow `Log.dprintf`
* Fri Oct 9 2020 maminjie <[email protected]> - 0.12.0-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。