* [PATCH] Parallelize building rpm
@ 2005-09-27 2:48 H. Peter Anvin
2005-09-27 4:21 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: H. Peter Anvin @ 2005-09-27 2:48 UTC (permalink / raw)
To: Git Mailing List
[-- Attachment #1: Type: text/plain, Size: 208 bytes --]
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>
[-- Attachment #2: git-makej-patch --]
[-- Type: text/plain, Size: 1284 bytes --]
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Parallelize building rpm
2005-09-27 2:48 [PATCH] Parallelize building rpm H. Peter Anvin
@ 2005-09-27 4:21 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2005-09-27 4:21 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: git
"H. Peter Anvin" <hpa@zytor.com> writes:
Could you also fix COPTS while you are at it, please? I think
it is caleld CFLAGS these days.
> %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}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-27 4:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-27 2:48 [PATCH] Parallelize building rpm H. Peter Anvin
2005-09-27 4:21 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).