{"thread":{"id":"1958","subject":"[PATCH] Parallelize building rpm","startedAt":"2005-09-27T02:48:39Z","lastAt":"2005-09-27T04:21:34Z","messageCount":2,"participants":["H. Peter Anvin","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"9356","messageId":"4338B307.7010405@zytor.com","threadId":"1958","inReplyTo":null,"subject":"[PATCH] Parallelize building rpm","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-09-27T02:48:39Z","receivedAt":"2005-09-27T02:48:39Z","isPatch":true,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Allow parallelization of rpm build by adding %{_smp_mflags} to the \nspecfile.  The absence of this macro in a specfile means a make should \nnot be parallelized.\n\nSigned-off-by: H. Peter Anvin <hpa@zytor.com>\n\n\n\n---\ncommit b8d5dfede58c6e787b06edf9a179b54876ef04db\ntree fb5f6eabbc1cf9c57f0d6c2f52db334faa704269\nparent 4ae95682694a1cd05ee2029fe241ad90d43c8c0e\nauthor H. Peter Anvin <hpa@hera.kernel.org> Mon, 26 Sep 2005 19:43:24 -0700\ncommitter H. Peter Anvin <hpa@hera.kernel.org> Mon, 26 Sep 2005 19:43:24 -0700\n\n git-core.spec.in |    7 +++++--\n 1 files changed, 5 insertions(+), 2 deletions(-)\n\ndiff --git a/git-core.spec.in b/git-core.spec.in\n--- a/git-core.spec.in\n+++ b/git-core.spec.in\n@@ -23,12 +23,12 @@ elsewhere for tools for ordinary humans \n %setup -q\n \n %build\n-make COPTS=\"$RPM_OPT_FLAGS\" WITH_OWN_SUBPROCESS_PY=YesPlease \\\n+make %{_smp_mflags} COPTS=\"$RPM_OPT_FLAGS\" WITH_OWN_SUBPROCESS_PY=YesPlease \\\n      prefix=%{_prefix} all %{!?_without_docs: doc}\n \n %install\n rm -rf $RPM_BUILD_ROOT\n-make DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \\\n+make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \\\n      prefix=%{_prefix} mandir=%{_mandir} \\\n      install %{!?_without_docs: install-doc}\n \n@@ -45,6 +45,9 @@ rm -rf $RPM_BUILD_ROOT\n %{!?_without_docs: %{_mandir}/man7/*.7*}\n \n %changelog\n+* Mon Sep 26 2005 H. Peter Anvin <hpa@zytor.com>\n+- add %{_smp_mflags}\n+\n * Fri Sep 16 2005 Chris Wright <chrisw@osdl.org> 0.99.6-1\n - update to 0.99.6\n \n"},{"id":"9358","messageId":"7voe6f6sz5.fsf@assigned-by-dhcp.cox.net","threadId":"1958","inReplyTo":"4338B307.7010405@zytor.com","subject":"Re: [PATCH] Parallelize building rpm","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-09-27T04:21:34Z","receivedAt":"2005-09-27T04:21:34Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"H. Peter Anvin\" <hpa@zytor.com> writes:\n\nCould you also fix COPTS while you are at it, please?  I think\nit is caleld CFLAGS these days.\n\n>  %build\n> -make COPTS=\"$RPM_OPT_FLAGS\" WITH_OWN_SUBPROCESS_PY=YesPlease \\\n> +make %{_smp_mflags} COPTS=\"$RPM_OPT_FLAGS\" WITH_OWN_SUBPROCESS_PY=YesPlease \\\n>       prefix=%{_prefix} all %{!?_without_docs: doc}\n"}]}