tools/mkrpm: switch payload to gzip to reduce turnaround time
authorOlaf Hering <olaf@aepfle.de>
Thu, 30 Aug 2018 10:05:11 +0000 (12:05 +0200)
committerWei Liu <wei.liu2@citrix.com>
Fri, 7 Sep 2018 14:02:06 +0000 (15:02 +0100)
rpmbuild -bb spents alot of time in compressing the binaries. Reduce the
turnaround time of 'make rpmball' by using gzip as compression tool.
This reduces the buildtime from 'w9.xzdio'/138 seconds to 'w1.gzdio'/88
seconds in my environment.
The downside is an increased filesize of xen.rpm, 19MB vs. 37MB.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/misc/mkrpm

index f9363a145626b24efb7e90ef615c17c6e2e2ad23..ae40e1a4c48e5cfcd88323db54306d955158ac26 100644 (file)
@@ -37,6 +37,7 @@ Group:   System/Hypervisor
 URL: http://xenbits.xenproject.org/xen.git
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+%define _binary_payload w1.gzdio
 %define __spec_install_post /usr/lib/rpm/brp-compress || :
 %define debug_package %{nil}