From 7bad2438d04e6816dba3307eb31a5194c96bb559085b200bba9127a726dc651c Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sun, 3 Nov 2019 18:06:32 +0000 Subject: [PATCH] - 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 --- ocaml-rpm-macros.changes | 1 + ocaml-rpm-macros.spec | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ocaml-rpm-macros.changes b/ocaml-rpm-macros.changes index e50ca5e..a2e647c 100644 --- a/ocaml-rpm-macros.changes +++ b/ocaml-rpm-macros.changes @@ -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 diff --git a/ocaml-rpm-macros.spec b/ocaml-rpm-macros.spec index 7e2e2c2..0bedcfc 100644 --- a/ocaml-rpm-macros.spec +++ b/ocaml-rpm-macros.spec @@ -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" ; \