- Use _smp_mflags instead of nproc for parallel build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-rpm-macros?expand=0&rev=29
This commit is contained in:
Olaf Hering 2019-11-03 18:06:32 +00:00 committed by Git OBS Bridge
parent 6acae0361b
commit 7bad2438d0
2 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
- Print potential BuildRequires during build
- Package sml for camlp5
- SLE_12 has still no license macro, package as doc instead
- Use _smp_mflags instead of nproc for parallel build
-------------------------------------------------------------------
Wed Oct 9 05:48:16 UTC 2019 - ohering@suse.de

View File

@ -314,6 +314,7 @@ ocaml setup.ml -configure \\\
dune build \\\
--verbose \\\
${dune_for_release} \\\
%%{?_smp_mflags} \\\
'@install' \\\
$OCAML_DUNE_BUILD_INSTALL_ARGS
%%ocaml_dune_install \
@ -329,6 +330,7 @@ ocaml setup.ml -configure \\\
dune install \\\
--verbose \\\
${dune_for_release} \\\
%%{?_smp_mflags} \\\
--prefix=%%{_prefix} \\\
--libdir=$(ocamlc -where) \\\
--destdir=%%{buildroot} \\\
@ -352,6 +354,7 @@ ocaml setup.ml -configure \\\
if dune runtest \\\
--verbose \\\
${dune_for_release} \\\
%%{?_smp_mflags} \\\
$OCAML_DUNE_RUNTEST_ARGS ; \
then \
echo "dune runtest succeeded" ; \