[packages/zziplib] Up to 0.13.80

arekm arekm at pld-linux.org
Thu Nov 26 09:28:32 CET 2026


commit f3f35f1cc2d5afc8ebfcafadafa605f7975c411d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 26 03:40:36 2026 +0100

    Up to 0.13.80

 zziplib-aligned-access.patch | 13 +++++++++++++
 zziplib-fpe.patch            | 11 -----------
 zziplib-mmapped-docs.patch   | 13 +++++++++++++
 zziplib-test-readme.patch    | 12 ++++++++++++
 zziplib.spec                 | 20 ++++++++++++++------
 5 files changed, 52 insertions(+), 17 deletions(-)
---
diff --git a/zziplib.spec b/zziplib.spec
index cec8a44..87e411c 100644
--- a/zziplib.spec
+++ b/zziplib.spec
@@ -6,16 +6,18 @@
 Summary:	ZZipLib - libZ-based ZIP-access Library
 Summary(pl.UTF-8):	ZZipLib - biblioteka dostępu do archiwów ZIP
 Name:		zziplib
-Version:	0.13.72
+Version:	0.13.80
 Release:	1
 Epoch:		1
 License:	LGPL v2 or MPL 1.1
 Group:		Libraries
 #Source0Download: https://github.com/gdraheim/zziplib/tags
 Source0:	https://github.com/gdraheim/zziplib/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	43555e7eafc5c1a1178a35e716c40500
-Patch0:		%{name}-fpe.patch
-Patch1:		%{name}-manpages.patch
+# Source0-md5:	323b8faf6c5226c9878aea2db9e78f83
+Patch0:		%{name}-manpages.patch
+Patch1:		%{name}-aligned-access.patch
+Patch2:		%{name}-test-readme.patch
+Patch3:		%{name}-mmapped-docs.patch
 URL:		http://zziplib.sourceforge.net/
 BuildRequires:	autoconf >= 2.61
 BuildRequires:	automake >= 1:1.7
@@ -91,6 +93,8 @@ Dokumentacja API biblioteki ZZipLib.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 # stick to autotools for now
 %{__mv} old.configure.ac configure.ac
@@ -105,7 +109,11 @@ Dokumentacja API biblioteki ZZipLib.
 %configure
 
 %{__make}
-%{?with_tests:%{__make} -j1 check}
+%if %{with tests}
+# shipped test/test.zip holds an outdated README; let make regenerate it
+%{__rm} test/test.zip
+%{__make} -j1 check
+%endif
 %if %{with apidocs}
 %{__make} doc
 %endif
@@ -134,7 +142,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README TODO docs/COPYING.ZLIB
+%doc ChangeLog README.MD TODO docs/COPYING.ZLIB
 %attr(755,root,root) %{_bindir}/zzcat
 %attr(755,root,root) %{_bindir}/zzdir
 %attr(755,root,root) %{_bindir}/zzxor*
diff --git a/zziplib-aligned-access.patch b/zziplib-aligned-access.patch
new file mode 100644
index 0000000..68f1676
--- /dev/null
+++ b/zziplib-aligned-access.patch
@@ -0,0 +1,13 @@
+# unbalanced if/fi: the closing "fi" sits outside AC_CACHE_CHECK, which breaks configure with current autoconf
+--- zziplib-0.13.80.orig/m4/ax_check_aligned_access_required.m4	2026-11-26 03:30:32.933333333 +0100
++++ zziplib-0.13.80/m4/ax_check_aligned_access_required.m4	2026-11-26 03:30:33.006348795 +0100
+@@ -55,8 +55,8 @@
+      [ax_cv_have_aligned_access_required=yes],
+      [ax_cv_have_aligned_access_required=no],
+      [ax_cv_have_aligned_access_required=no])
+-  ])
+ fi
++  ])
+ if test "$ax_cv_have_aligned_access_required" = yes ; then
+   AC_DEFINE([HAVE_ALIGNED_ACCESS_REQUIRED], [1],
+     [Define if pointers to integers require aligned access])
diff --git a/zziplib-fpe.patch b/zziplib-fpe.patch
deleted file mode 100644
index 307f755..0000000
--- a/zziplib-fpe.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- zziplib-0.13.72/bins/unzip-mem.c.orig	2021-01-05 00:05:08.000000000 +0100
-+++ zziplib-0.13.72/bins/unzip-mem.c	2022-02-06 18:37:25.525184220 +0100
-@@ -201,7 +201,7 @@ static void zzip_mem_entry_direntry_done
-     printf("--------  ------  ------- -----                           ----\n");
-     printf("%8li%c       %8li%c %3li%%                     %8li %s\n",
- 	   L sum_usize, exp, L sum_csize, exp, 
--	   L (100 - (sum_csize*100/sum_usize)), L sum_files, 
-+	   L (100 - (sum_usize == 0 ? 0 : (sum_csize*100/sum_usize))), L sum_files, 
- 	   sum_files == 1 ? "file" : "files");
- }
- 
diff --git a/zziplib-mmapped-docs.patch b/zziplib-mmapped-docs.patch
new file mode 100644
index 0000000..e2b5e8e
--- /dev/null
+++ b/zziplib-mmapped-docs.patch
@@ -0,0 +1,13 @@
+# zzipmakedocs.py takes the first #include as the main header; with format.h first no mmapped man pages are generated
+--- zziplib-0.13.80.orig/zzip/mmapped.c	2026-11-26 03:38:15.963333333 +0100
++++ zziplib-0.13.80/zzip/mmapped.c	2026-11-26 03:38:16.037843537 +0100
+@@ -27,8 +27,8 @@
+ #define _GNU_SOURCE _glibc_developers_are_idiots_to_call_strndup_gnu_specific_
+ #endif
+ 
+-#include <zzip/format.h>
+ #include <zzip/mmapped.h>
++#include <zzip/format.h>
+ #include <zzip/fetch.h>
+ #include <zzip/__debug.h>
+ #include <zzip/__errno.h>
diff --git a/zziplib-test-readme.patch b/zziplib-test-readme.patch
new file mode 100644
index 0000000..164b93b
--- /dev/null
+++ b/zziplib-test-readme.patch
@@ -0,0 +1,12 @@
+# test data file moved to test/README; top-level README no longer exists (README.MD)
+--- zziplib-0.13.80.orig/test/Makefile.am	2026-11-26 03:32:22.023528711 +0100
++++ zziplib-0.13.80/test/Makefile.am	2026-11-26 03:32:22.030722372 +0100
+@@ -19,7 +19,7 @@
+ 
+ # -------------------------------------------------------------------
+ NULL=/dev/null
+-README = $(top_srcdir)/README
++README = $(srcdir)/README
+ testdatadir = $(top_builddir)/testdata.d
+ 
+ testzip testzips : test.zip test1.zip test2.zip test3.zip 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zziplib.git/commitdiff/f3f35f1cc2d5afc8ebfcafadafa605f7975c411d



More information about the pld-cvs-commit mailing list