diff --git a/ocaml-ocp-indent.spec b/ocaml-ocp-indent.spec index 332bdfb..15da799 100644 --- a/ocaml-ocp-indent.spec +++ b/ocaml-ocp-indent.spec @@ -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 - 1.7.0-6 - OCaml 4.10.0+beta1 rebuild. +- Use dune install --destdir option. * Fri Dec 06 2019 Richard W.M. Jones - 1.7.0-5 - OCaml 4.09.0 (final) rebuild.