so we can build the compressed src rpm and binary rpms with smaller
latency.
see also
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.3_release_notes/technology_previews_installation_and_booting
by default, rpm uses
w9.gzdio
which means: gzip level 9. but since xz is able to compress using
multiple threads, let's switch to xz.
xz's default compression level is 6, but ceph's source and binary
packages are relatively large. let's use a higher compression level.
Signed-off-by: Kefu Chai <kchai@redhat.com>
# disable dwz which compresses the debuginfo
%global _find_debuginfo_dwz_opts %{nil}
+# use multi-threaded xz compression: xz level 7 using ncpus threads
+%global _source_payload w7T%{_smp_build_ncpus}.xzdio
+%global _binary_payload w7T%{_smp_build_ncpus}.xzdio
#################################################################################
# main package definition