git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Parallelize building rpm

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Sep 27, 2005, 02:48 UTC
Message-ID
<4338B307.7010405@zytor.com>

Allow parallelization of rpm build by adding %{_smp_mflags} to the specfile. The absence of this macro in a specfile means a make should not be parallelized.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>

--- commit b8d5dfede58c6e787b06edf9a179b54876ef04db tree fb5f6eabbc1cf9c57f0d6c2f52db334faa704269 parent 4ae95682694a1cd05ee2029fe241ad90d43c8c0e author H. Peter Anvin <hpa@hera.kernel.org> Mon, 26 Sep 2005 19:43:24 -0700 committer H. Peter Anvin <hpa@hera.kernel.org> Mon, 26 Sep 2005 19:43:24 -0700

 git-core.spec.in |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/git-core.spec.in b/git-core.spec.in
--- a/git-core.spec.in
+++ b/git-core.spec.in
@@ -23,12 +23,12 @@ elsewhere for tools for ordinary humans 
 %setup -q
 
 %build
-make COPTS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \
+make %{_smp_mflags} COPTS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \
      prefix=%{_prefix} all %{!?_without_docs: doc}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
+make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
      prefix=%{_prefix} mandir=%{_mandir} \
      install %{!?_without_docs: install-doc}
 
@@ -45,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT
 %{!?_without_docs: %{_mandir}/man7/*.7*}
 
 %changelog
+* Mon Sep 26 2005 H. Peter Anvin <hpa@zytor.com>
+- add %{_smp_mflags}
+
 * Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1
 - update to 0.99.6
 
Next: Junio C Hamano
Message 1 of 2 in “Parallelize building rpm”
  1. Parallelize building rpmH. Peter Anvin, Sep 27, 2005
  2. Junio C HamanoSep 27, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.