Enabled Z hardware-accelerated deflate for compression levels 1 through 6 (#1972057)

This commit is contained in:
Ondrej Dubaj 2021-07-15 09:13:57 +02:00
parent 59fb3beffd
commit 18d1f95995

View File

@ -2,7 +2,7 @@
Name: zlib
Version: 1.2.11
Release: 26%{?dist}
Release: 27%{?dist}
Summary: Compression and decompression library
# /contrib/dotzlib/ have Boost license
License: zlib and Boost
@ -108,19 +108,15 @@ mv ChangeLog.tmp ChangeLog
%build
export CFLAGS="$RPM_OPT_FLAGS"
%ifarch s390 s390x
CFLAGS+=" -DDFLTCC"
%endif
export MKFLAGS=""
%ifarch s390 s390x
MKFLAGS+="OBJA=dfltcc.o PIC_OBJA=dfltcc.lo"
%endif
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
# no-autotools, %%configure is not compatible
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
%make_build $MKFLAGS
%ifarch s390 s390x
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} --dfltcc
%else
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
%endif
%make_build
%if %{with minizip}
cd contrib/minizip
@ -181,6 +177,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
%changelog
* Thu Jul 01 2021 Ondrej Dubaj <odubaj@redhat.com> - 1.2.11-27
- Enabled Z hardware-accelerated deflate for compression levels 1 through 6 (#1972057)
* Wed Mar 31 2021 Ondrej Dubaj <odubaj@redhat.com> - 1.2.11-26
- fixed covscan issues for rhel-9