Parallelize building rpm
PATCH 1/1 Parallelize building rpm
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 <[email protected]>
---
commit b8d5dfede58c6e787b06edf9a179b54876ef04db
tree fb5f6eabbc1cf9c57f0d6c2f52db334faa704269
parent 4ae95682694a1cd05ee2029fe241ad90d43c8c0e
author H. Peter Anvin <[email protected]> Mon, 26 Sep 2005 19:43:24 -0700 committer H. Peter Anvin <[email protected]> Mon, 26 Sep 2005 19:43:24 -0700
git-core.spec.in | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
git-core.spec.in +5 -2
@@ -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 <[email protected]> +- add %{_smp_mflags} + * Fri Sep 16 2005 Chris Wright <[email protected]> 0.99.6-1 - update to 0.99.6
"H. Peter Anvin" <[email protected]> writes:
Could you also fix COPTS while you are at it, please? I think it is caleld CFLAGS these days.
Quoted 4 lines
%build
git-core.spec.in +1
-1-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}