From 872735211ab9f1436eaf4567b3047b25063f1a9c Mon Sep 17 00:00:00 2001 From: Lukas Javorsky Date: Wed, 22 Jun 2022 17:39:57 +0000 Subject: [PATCH] [6/6] Cleanup old patches and use the new ones --- zlib.spec | 55 +++++++++++++++++++++++-------------------------------- 1 file changed, 23 insertions(+), 32 deletions(-) diff --git a/zlib.spec b/zlib.spec index 254067f..2fa9366 100644 --- a/zlib.spec +++ b/zlib.spec @@ -13,30 +13,24 @@ Source: https://www.zlib.net/zlib-%{version}.tar.xz Patch0: zlib-1.2.5-minizip-fixuncrypt.patch # resolves: #805113 Patch1: zlib-1.2.11-optimized-s390.patch -# IBM Z optimalizations -Patch7: zlib-1.2.11-IBM-Z-hw-accelrated-deflate-s390x.patch -# IBM CRC32 optimalization for POWER archs -Patch8: zlib-1.2.11-optimized-CRC32-framework.patch -# fixed firefox crash + added test case -Patch9: zlib-1.2.11-firefox-crash-fix.patch +# IBM Z hardware-accelerated deflate +# ref: https://github.com/madler/zlib/pull/410 +Patch18: zlib-1.2.12-IBM-Z-hw-accelerated-deflate.patch +# IBM optimized crc32 for Power 8+ processors +# ref: https://github.com/madler/zlib/pull/478 +Patch19: zlib-1.2.12-power-optimizations.patch +# Patch for s390x crc32vx +# ref: https://github.com/iii-i/zlib/releases/tag/crc32vx-v3 +Patch20: zlib-1.2.12-s390x-vectorize-crc32.patch +# Fix for configure +# ref: https://github.com/madler/zlib/pull/607/commits/80d086357a55b94a13e43756cf3e131f25eef0e4 +Patch21: zlib-1.2.12-fix-configure.patch # fixed covscan issues -Patch10: zlib-1.2.11-covscan-issues.patch -# fix for IBM Z optimalizations -Patch11: zlib-1.2.11-IBM-Z-hw-accelrated-deflate-fix.patch -# permit a deflateParams() parameter change -Patch12: zlib-1.2.11-permit-deflateParams-change.patch -# fixed DFLTCC compression level switching issues -# enabled HW compression for compression levels 1 through 6 -Patch13: zlib-1.2.11-IBM-DFLTCC-compression-level-switching-issues.patch -# fixed inflateSyncPoint() bad return value on z15 -Patch14: zlib-1.2.11-inflateSyncPoint-return-value-fix.patch +Patch22: zlib-1.2.11-covscan-issues.patch # fixed issues found by covscan for rhel-9 # ref: https://github.com/madler/zlib/pull/554 -Patch15: zlib-1.2.11-covscan-issues-rhel9.patch -# Fix for s390x vectorize CRC32 -Patch16: zlib-1.2.11-s390x-vectorize-crc32.patch -# Fix the compressBound() on z15 -Patch17: zlib-1.2.11-IBM-Z-hw-accelrated-deflate-compressBound-fix.patch +Patch23: zlib-1.2.11-covscan-issues-rhel9.patch + BuildRequires: make BuildRequires: automake, autoconf, libtool @@ -92,20 +86,17 @@ developing applications which use minizip. %prep %setup -q %patch0 -p1 -b .fixuncrypt +%patch18 -p1 +%patch19 -p1 +%patch20 -p1 +%patch21 -p1 +%patch22 -p1 +%patch23 -p1 +# Patch19 conflicts with Patch1, so the Patch1 has to be applied after, +# because it is arch specific %ifarch s390 s390x %patch1 -p1 -b .optimized-deflate %endif -%patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 -%patch11 -p1 -%patch12 -p1 -%patch13 -p1 -%patch14 -p1 -%patch15 -p1 -%patch16 -p1 -%patch17 -p1 iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp