The install copies ocamlbuild & ocamlbuild.{byte or native}.

Symlink them instead.
This commit is contained in:
Richard W.M. Jones 2017-09-20 12:33:26 +01:00
parent f30caafe4a
commit f313d9c8b6

View File

@ -69,6 +69,16 @@ make install \
DESTDIR=$RPM_BUILD_ROOT \
CHECK_IF_PREINSTALLED=false
# The install copies ocamlbuild & ocamlbuild.{byte or native}.
# Symlink them instead.
pushd $RPM_BUILD_ROOT/usr/bin
%ifarch %{ocaml_native_compiler}
ln -sf ocamlbuild.native ocamlbuild
%else
ln -sf ocamlbuild.byte ocamlbuild
%endif
popd
# Install the man page, which for some reason is not copied
# in by the make install rule above.
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/