]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: use multi-threaded xz compression
authorKefu Chai <kchai@redhat.com>
Wed, 17 Feb 2021 03:25:37 +0000 (11:25 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Feb 2021 03:25:37 +0000 (11:25 +0800)
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>
ceph.spec.in

index 6c359cfd5267d87f2567688aa46d815a25069c93..949ccae7cafe15dea4b3f1e398200cb577906a4f 100644 (file)
 
 # 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