xz -2 is the most optimal to recompress tarballs into .src.rpm

This commit is contained in:
Mikhail Novosyolov 2018-12-28 19:20:23 +03:00
parent 01fdf67249
commit d18cb76b8d
2 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,7 @@ diff --git a/macros/mandriva.in b/macros/mandriva.in
index 3f742ad..958a869 100644 index 3f742ad..958a869 100644
--- a/macros/mandriva.in --- a/macros/mandriva.in
+++ b/macros/mandriva.in +++ b/macros/mandriva.in
@@ -127,8 +127,12 @@ @@ -127,8 +127,13 @@
# TODO: fix check script and implement support for using # TODO: fix check script and implement support for using
#%_multiarch_required_terminate_build 1 #%_multiarch_required_terminate_build 1
@ -27,7 +27,8 @@ index 3f742ad..958a869 100644
+# w6 is xz level 6 (default), T - threads +# w6 is xz level 6 (default), T - threads
+# note: w6T0.xzdio will result into 1 thread, w6T.xzdio will result into multiple threads! +# note: w6T0.xzdio will result into 1 thread, w6T.xzdio will result into multiple threads!
+%_binary_payload w6T.xzdio +%_binary_payload w6T.xzdio
+%_source_payload w6T.xzdio +# xz -2 is the most optimal for .src.rpm where compressed tarballs are recompressed
+%_source_payload w2T.xzdio
%_duplicate_files_terminate_build 1 %_duplicate_files_terminate_build 1
%_unpackaged_subdirs_terminate_build 0 %_unpackaged_subdirs_terminate_build 0

View file

@ -61,7 +61,7 @@ Summary: The RPM package management system
Name: rpm Name: rpm
Epoch: 1 Epoch: 1
Version: %{libver}.%{minorver} Version: %{libver}.%{minorver}
Release: %{?prereldate:0.%{prereldate}.}83 Release: %{?prereldate:0.%{prereldate}.}84
License: LGPLv2.1+ License: LGPLv2.1+
Group: System/Configuration/Packaging Group: System/Configuration/Packaging
Url: http://rpm5.org/ Url: http://rpm5.org/