- Require current dune macros

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-dune?expand=0&rev=39
This commit is contained in:
Olaf Hering 2019-11-01 22:56:56 +00:00 committed by Git OBS Bridge
parent 22cb0739ec
commit c2c82a5049
2 changed files with 16 additions and 13 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
- Require current dune macros
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 15 18:14:03 UTC 2019 - ohering@suse.de Tue Oct 15 18:14:03 UTC 2019 - ohering@suse.de

View File

@ -28,10 +28,8 @@ Conflicts: ocaml-jbuilder
Conflicts: ocaml-jbuilder-debuginfo Conflicts: ocaml-jbuilder-debuginfo
Conflicts: ocaml-jbuilder-debugsource Conflicts: ocaml-jbuilder-debugsource
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
Requires: ocaml-findlib BuildRequires: ocaml(ocaml_base_version) < 4.06
BuildRequires: ocaml BuildRequires: ocaml-rpm-macros >= 20191101
BuildRequires: ocaml-rpm-macros >= 20191004
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
A composable build system for OCaml A composable build system for OCaml
@ -49,19 +47,19 @@ developing applications that use %{name}.
%autosetup -p1 %autosetup -p1
%build %build
ocaml configure.ml --libdir=$(ocamlc -where)
%make_build %make_build
%install %install
#make_install PREFIX='%{_prefix}' LIBDIR="$(ocamlc -where)" #make_install PREFIX='%{_prefix}' LIBDIR="$(ocamlc -where)"
./_boot/default/bin/main/main_dune.exe install \ if pushd _boot/default/bin/main
--prefix '%{_prefix}' \ then
--destdir '%{buildroot}' \ ln -svb main_dune.exe dune
--libdir "$(ocamlc -where)" \ export PATH="`readlink -f \"$PWD\"`:$PATH"
dune --build-dir _boot popd
find '%{buildroot}' -ls fi
rm -rfv %{buildroot}%{_prefix}/doc OCAML_DUNE_INSTALL_ARGS='dune --build-dir _boot'
mkdir -vp %{buildroot}%{_mandir} %ocaml_dune_install
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}
%ocaml_create_file_list %ocaml_create_file_list
%files -f %{name}.files %files -f %{name}.files