Sync from SUSE:SLFO:Main zstd revision a9acfad07db63016c51ba194656ec692

This commit is contained in:
2025-03-22 23:11:07 +01:00
parent cb205798f3
commit b379c71bfb
7 changed files with 53 additions and 43 deletions

View File

@@ -1,17 +0,0 @@
Index: zstd-1.5.4/programs/zstd.1
===================================================================
--- zstd-1.5.4.orig/programs/zstd.1
+++ zstd-1.5.4/programs/zstd.1
@@ -171,6 +171,12 @@ do not store the original filename and t
.TP
\fB\-\-best\fR
alias to the option \fB\-9\fR\.
+.SS Parallel Zstd OPTIONS
+Additional options for the pzstd utility
+.TP
+\fB\-p\fR, \fB\-\-processes\fR
+ number of threads to use for (de)compression (default:4)
+.
.SS "Environment Variables"
Employing environment variables to set parameters has security implications\. Therefore, this avenue is intentionally limited\. Only \fBZSTD_CLEVEL\fR and \fBZSTD_NBTHREADS\fR are currently supported\. They set the compression level and number of threads to use during compression, respectively\.
.P

BIN
zstd-1.5.5.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,17 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAADCgAvFiEETvSsY0VfyfRUXZt974/plSi1L/0FAmQsotIRHHNpZ25pbmdA
enN0ZC5uZXQACgkQ74/plSi1L/16Jg//RoYFnXQxQFDLy1I47fIGKzBn7U5YXeeT
qbCfXqkv0Mr/XUW0z9eWXpKBTMIN+mARX/1gNiM7wIpb1jrah11ZJR6u3k5C/NFZ
pqM/HNxDdAjV+C/t6/fgT8VcZEq1jDOI7BM7fZPhi5kLp7UgWmfZfePIF3qMtadp
QewGQ9fzzc96XqNFycNZPRGHNVbj7YbT2tGK9RpiWDFbo23c8wuwibur7jX28jPQ
6esAmGckzirb3lElByQ4oJwtVwP0lkAtFwJZx/E3EhCszrvnS2j+X+6DgF3Fhz3E
7e9YCS5tF0wUr2WMhLeAAFbVYcKezYlLpym7KM5BX6LjAEbaX4eEx66KJECI0LYm
HrPo33mBkJcUEX5sXs2P3QQ3phLOIg/TC9ECN7YORLoZca/nj1C7JgdIJ6VFHFZK
4JMSO0DOxNiCuvDy+EU9EwCIKhfNTl/vlcyqMjrMJxZ9QO3bykcKUirsOgz8GpO7
RwPupGog0E+pDv3GemSYn7kU+N2Vba4b/T/65WpssMJ4zC2z7jMFvEbeoyhKsV2m
xClHq4bgk3Tt2WlUS9fH5DMramwhXKIncPsXNlg3rTqiik3GuE+56AijsE/CBAlo
MHGAV/IvR2XIo+khZ5wIix15YW/WEbdxB4uT0CeKlBt+XXLTQ/kLAEI3o+IhA4EB
jBu+O1qqDVI=
=3yPb
-----END PGP SIGNATURE-----

BIN
zstd-1.5.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

17
zstd-1.5.7.tar.gz.sig Normal file
View File

@@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJFBAADCgAvFiEETvSsY0VfyfRUXZt974/plSi1L/0FAme2UiwRHHNpZ25pbmdA
enN0ZC5uZXQACgkQ74/plSi1L/0AXQ/8Cws6GYY/1VLiBKsxKaOTeETM0poDGtzX
plYMAnbSrDLLoUKXN4ovy2Zrz6iJoi1WLdTwpYRR5En90tvaQaDHXrFDvf1bKJw0
C5ldy0xDxZ4TPJr7QBL3Xv1/XResNnFjzYdKMKTa4R9gVPca4BTzszolq8VHyKp7
aj2NlDdm/jrq67o5GGDo3K+GzUlzvOgxfdV5+eBWyjCYLSzBEfI6kX6mRJ7BdYBL
JWk+OnmW7K9vQTYANkrNMTqeKxaI8OJxfs8zk14TqKYSMoyj1MUW94eknj+A6Inv
vEW749Pb/u1iUEouRdTuNyG6iDRi1Jm7e9huiocWzNqH7XSYZDDUA0LwGJamdn7y
VH9Au8tABEfzHX5KWS/HYkKEkOXagNdUp24Kma9CdhmTjZny9oOJKEvv4rtRMf+z
XgoSRIR5OxAv6u0aCgi9CR5xQyiMiklQ07x+r1CpMeaj+dzwOAM0nQtwPmXDVc4d
9fwe7fBmBtDHiKqJV5k526UndxRay1GdmS1TOTahDjAbivGpHrVvulabfVO1MbJn
PlzMaW+jZ6kJ1+YKZELlwXRi9NeoOSQAQcIheL/DOZ22ThnWKG3fQQ8Q5ismCAkm
Hw6ypXSD2mndquoq8eUTlpbjIiqj9CuhIvz9TDnkeJhkWzXhnlC7hA8RNamkKQ5W
LC1I0ec0Dkw=
=8zJz
-----END PGP SIGNATURE-----

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Thu Feb 27 11:12:09 UTC 2025 - Ali Abdallah <ali.abdallah@suse.com>
- update to 1.5.7:
* zstd now employs multiple threads by default
* Fix a rare bug in 32-bit mode
* Enhanced Compression Speed for Small Data Blocks
* Substantial --patch-from performance improvements
- Drop pzstd.1.patch - not upstream, but also not needed
- Changes between 1.5.5 and 1.5.6:
* Introduce a new stable parameter ZSTD_c_targetCBlockSize,
enabling the division of blocks into smaller segments to
enhance initial byte delivery speed for congested networks
* library allows allow ganular binary size selection
-------------------------------------------------------------------
Thu Apr 13 11:15:39 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package zstd
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,13 @@
%define libname libzstd1
%if 0%{?suse_version} <= 1500
%define with_gzip 0
%else
%define with_gzip 1
%endif
Name: zstd
Version: 1.5.5
Version: 1.5.7
Release: 0
Summary: Zstandard compression tools
License: BSD-3-Clause AND GPL-2.0-only
@@ -28,7 +33,6 @@ Source0: https://github.com/facebook/zstd/releases/download/v%{version}/%
Source1: https://github.com/facebook/zstd/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
Source2: zstd.keyring
Source99: baselibs.conf
Patch1: pzstd.1.patch
BuildRequires: gcc
# C++ is needed for pzstd only
BuildRequires: gcc-c++
@@ -83,15 +87,16 @@ targeting faster compression than zlib at comparable ratios.
Needed for compiling programs that link with the library.
%if %{with_gzip}
%package gzip
Summary: zstd and zlib based gzip drop-in
Group: Productivity/Archiving/Compression
Requires: %{name} >= %{version}
Conflicts: busybox-gzip
Conflicts: gzip
Conflicts: alternative(gzip)
Provides: gzip
Provides: alternative(gzip)
Requires: %{name} >= %{version}
%description gzip
Zstd, short for Zstandard, is a lossless compression algorithm,
@@ -99,6 +104,7 @@ targeting faster compression than zlib at comparable ratios.
This subpackage provides a compatible alternative to gzip(1) using
an optimized deflate/zlib handling.
%endif
%prep
%autosetup -p1
@@ -123,12 +129,13 @@ export CXXFLAGS="%{optflags} -std=c++11"
%make_install V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir}
install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
%if %{with_gzip}
ln -s zstd %{buildroot}/%{_bindir}/gzip
ln -s zstd %{buildroot}/%{_bindir}/gunzip
ln -s zstdcat %{buildroot}/%{_bindir}/zcat
%endif
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{libname}
%files
%license COPYING LICENSE
@@ -153,11 +160,15 @@ ln -s zstdcat %{buildroot}/%{_bindir}/zcat
%{_libdir}/libzstd.so
%files -n lib%{name}-devel-static
%license COPYING LICENSE
%{_libdir}/libzstd.a
%if %{with_gzip}
%files gzip
%license COPYING LICENSE
%{_bindir}/gzip
%{_bindir}/gunzip
%{_bindir}/zcat
%endif
%changelog