]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in,make-dist: Use xz instead of bzip2 spec-dwz-bcond
authorZack Cerza <zack@redhat.com>
Fri, 25 Oct 2024 22:49:20 +0000 (16:49 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 25 Oct 2024 23:04:50 +0000 (17:04 -0600)
xz supports multi-threaded compression and yields smaller artifacts.

Signed-off-by: Zack Cerza <zack@redhat.com>
ceph.spec.in
make-dist

index bfa4209112b22e7fe32fcf061a8d363c64474945..feae42e3a9305f3f4ff8bcdf8c9b167c3a03746a 100644 (file)
@@ -232,7 +232,7 @@ License:    LGPL-2.1 and LGPL-3.0 and CC-BY-SA-3.0 and GPL-2.0 and BSL-1.0 and BSD-
 Group:         System/Filesystems
 %endif
 URL:           http://ceph.com/
-Source0:       %{?_remote_tarball_prefix}@TARBALL_BASENAME@.tar.bz2
+Source0:       %{?_remote_tarball_prefix}@TARBALL_BASENAME@.tar.xz
 %if 0%{?suse_version}
 # _insert_obs_source_lines_here
 ExclusiveArch:  x86_64 aarch64 ppc64le s390x riscv64
index 033bedebd87f09f50a82b1c63b357bd5ac51b41c..3450518adfe4bfd9462f52d2b712869bb8352da6 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -217,6 +217,6 @@ mv $outfile.all.tar $outfile.tar
 rm $outfile
 
 echo "compressing..."
-bzip2 -9 $outfile.tar
+xz -T0 -6 -z $outfile.tar
 
 echo "done."