From 18d1f95995e91820cf280b9d41be7b826c7adbcb Mon Sep 17 00:00:00 2001 From: Ondrej Dubaj Date: Thu, 15 Jul 2021 09:13:57 +0200 Subject: [PATCH] Enabled Z hardware-accelerated deflate for compression levels 1 through 6 (#1972057) --- zlib.spec | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/zlib.spec b/zlib.spec index 70a1622..a4a003a 100644 --- a/zlib.spec +++ b/zlib.spec @@ -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 - 1.2.11-27 +- Enabled Z hardware-accelerated deflate for compression levels 1 through 6 (#1972057) + * Wed Mar 31 2021 Ondrej Dubaj - 1.2.11-26 - fixed covscan issues for rhel-9