- Use dune install --destdir option.

This commit is contained in:
Richard W.M. Jones 2020-01-19 21:06:20 +00:00
parent 7f759c0f36
commit 9cc2e4ba36
1 changed files with 6 additions and 3 deletions

View File

@ -61,7 +61,11 @@ dune build %{?_smp_mflags} --profile=release
%install
dune install --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml
dune install \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--libdir=%{_libdir}/ocaml \
--mandir=%{_mandir}
chmod 755 %{buildroot}%{_libdir}/ocaml/%{libname}/*/*.cmxs
@ -72,8 +76,6 @@ rmdir %{buildroot}%{_datadir}/%{libname}/vim
rmdir %{buildroot}%{_datadir}/%{libname}
# Reinstall documents using %%doc later
rm -fr %{buildroot}%{_prefix}/doc
mkdir -p %{buildroot}%{_datadir}
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
%check
#Tests only run on a git checkout
@ -108,6 +110,7 @@ mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
%changelog
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-6
- OCaml 4.10.0+beta1 rebuild.
- Use dune install --destdir option.
* Fri Dec 06 2019 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-5
- OCaml 4.09.0 (final) rebuild.