SHA256
3
0
forked from pool/zstd

Accepting request 1138092 from Archiving

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1138092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zstd?expand=0&rev=35
This commit is contained in:
Ana Guerrero 2024-01-12 22:44:01 +00:00 committed by Git OBS Bridge
commit 715cabf8bf
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 29 13:21:02 UTC 2023 - ecsos <ecsos@opensuse.org>
- Disable build of gzip for Leap 15.x to fix build error.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 25 11:41:00 UTC 2023 - Ben Greiner <code@bnavigator.de> Thu May 25 11:41:00 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -16,6 +16,11 @@
# #
%if 0%{?suse_version} <= 1500
%define with_gzip 0
%else
%define with_gzip 1
%endif
%define libname libzstd1 %define libname libzstd1
Name: zstd Name: zstd
Version: 1.5.5 Version: 1.5.5
@ -83,6 +88,7 @@ targeting faster compression than zlib at comparable ratios.
Needed for compiling programs that link with the library. Needed for compiling programs that link with the library.
%if %with_gzip
%package gzip %package gzip
Summary: zstd and zlib based gzip drop-in Summary: zstd and zlib based gzip drop-in
Group: Productivity/Archiving/Compression Group: Productivity/Archiving/Compression
@ -99,6 +105,7 @@ targeting faster compression than zlib at comparable ratios.
This subpackage provides a compatible alternative to gzip(1) using This subpackage provides a compatible alternative to gzip(1) using
an optimized deflate/zlib handling. an optimized deflate/zlib handling.
%endif
%prep %prep
%autosetup -p1 %autosetup -p1
@ -123,9 +130,11 @@ export CXXFLAGS="%{optflags} -std=c++11"
%make_install V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} %make_install V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir}
install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1 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}/gzip
ln -s zstd %{buildroot}/%{_bindir}/gunzip ln -s zstd %{buildroot}/%{_bindir}/gunzip
ln -s zstdcat %{buildroot}/%{_bindir}/zcat ln -s zstdcat %{buildroot}/%{_bindir}/zcat
%endif
%post -n %{libname} -p /sbin/ldconfig %post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
@ -155,9 +164,11 @@ ln -s zstdcat %{buildroot}/%{_bindir}/zcat
%files -n lib%{name}-devel-static %files -n lib%{name}-devel-static
%{_libdir}/libzstd.a %{_libdir}/libzstd.a
%if %with_gzip
%files gzip %files gzip
%{_bindir}/gzip %{_bindir}/gzip
%{_bindir}/gunzip %{_bindir}/gunzip
%{_bindir}/zcat %{_bindir}/zcat
%endif
%changelog %changelog