]> git.pld-linux.org Git - packages/zziplib.git/commitdiff
- updated to 0.13.68 auto/th/zziplib-0.13.68-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 31 Dec 2020 07:45:54 +0000 (08:45 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 31 Dec 2020 07:45:54 +0000 (08:45 +0100)
- removed outdated ac patch
- added test patch (fixes readme test)
- drop .la files, separated -apidocs

zziplib-ac.patch [deleted file]
zziplib-test.patch [new file with mode: 0644]
zziplib.spec

diff --git a/zziplib-ac.patch b/zziplib-ac.patch
deleted file mode 100644 (file)
index 39ef005..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- zziplib-0.13.47/m4/ax_enable_builddir_uname.m4.orig        2006-08-07 22:58:48.000000000 +0200
-+++ zziplib-0.13.47/m4/ax_enable_builddir_uname.m4     2006-08-24 15:06:18.215971000 +0200
-@@ -96,7 +96,7 @@
- AS_VAR_PUSHDEF([SED],[ax_enable_builddir_sed])dnl
- pushdef([END],[Makefile.mk])dnl
-   SRC="$ax_enable_builddir_srcdir"
--  if test ".$SUB" = "." ; then
-+  if test ".$SUB" = ".." ; then
-     if test -f "$TOP/Makefile" ; then
-       AC_MSG_NOTICE([skipping TOP/Makefile - left untouched])
-     else
diff --git a/zziplib-test.patch b/zziplib-test.patch
new file mode 100644 (file)
index 0000000..6a6ccd8
--- /dev/null
@@ -0,0 +1,13 @@
+--- zziplib-0.13.68/test/Makefile.am.orig      2018-02-05 21:00:56.000000000 +0100
++++ zziplib-0.13.68/test/Makefile.am   2020-12-31 08:15:12.935029301 +0100
+@@ -47,8 +47,8 @@
+ check-readme : $(zzcat)  test.zip
+       @ test -f test.zip || $(MAKE) tmp/../test.zip 
+       test -s test.zip
+-      @ echo :$@: checking $(zzcat) test/README 
+-      @ $(zzcat) test/README >test.out
++      @ echo :$@: checking $(zzcat) $(README) 
++      @ $(zzcat) $(README) >test.out
+       @ if diff test.out $(README) >$(NULL) \
+       ; then rm test.out ; echo check OK ; true \
+       ; else rm test.out ; echo check FAIL ; false ; fi
index d5c75e07302ba9db956dc9934edc0e6502815ab6..a44bfd2bca19a7f1f398dc520d07ab667493b3f1 100644 (file)
@@ -1,18 +1,18 @@
 #
 # Conditional build:
-%bcond_without doc     # build without documentation
+%bcond_without apidocs # API documentation
 #
 Summary:       ZZipLib - libZ-based ZIP-access Library
 Summary(pl.UTF-8):     ZZipLib - biblioteka dostępu do archiwów ZIP
 Name:          zziplib
-Version:       0.13.62
-Release:       2
+Version:       0.13.68
+Release:       1
 Epoch:         1
 License:       LGPL v2 or MPL 1.1
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
-# Source0-md5: 5fe874946390f939ee8f4abe9624b96c
-Patch0:                %{name}-ac.patch
+# Source0-md5: 8b0cc7c506b172a4938c3338b122c2f0
+Patch0:                %{name}-test.patch
 Patch1:                %{name}-manpages.patch
 URL:           http://zziplib.sourceforge.net/
 BuildRequires: autoconf >= 2.61
@@ -72,6 +72,18 @@ ZZipLib static library.
 %description static -l pl.UTF-8
 Statyczna biblioteka ZZipLib.
 
+%package apidocs
+Summary:       API documentation for ZZipLib library
+Summary(pl.UTF-8):     Dokumentacja API biblioteki ZZipLib
+Group:         Documentation
+%{?noarchpackage}
+
+%description apidocs
+API documentation for ZZipLib library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki ZZipLib.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -88,7 +100,7 @@ Statyczna biblioteka ZZipLib.
 
 %{__make}
 %{__make} -j1 check
-%if %{with doc}
+%if %{with apidocs}
 %{__make} doc
 %endif
 
@@ -98,13 +110,15 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%if %{with doc}
+%if %{with apidocs}
 %{__make} install-man3 -C docs \
        DESTDIR=$RPM_BUILD_ROOT
 %endif
 
 # we don't need these compat symlinks
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libzzip*-0.so.{10,11,12}
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libzzip*.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -131,20 +145,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%if %{with doc}
-%doc docs/*.{html,css}
-%endif
 %attr(755,root,root) %{_libdir}/libzzip.so
 %attr(755,root,root) %{_libdir}/libzzipfseeko.so
 %attr(755,root,root) %{_libdir}/libzzipmmapped.so
 %attr(755,root,root) %{_libdir}/libzzipwrap.so
-%{_libdir}/libzzip.la
-%{_libdir}/libzzipfseeko.la
-%{_libdir}/libzzipmmapped.la
-%{_libdir}/libzzipwrap.la
 %{_includedir}/zzip
 %{_includedir}/zzip*.h
-%if %{with doc}
+%if %{with apidocs}
 %{_mandir}/man3/__zzip_*.3*
 %{_mandir}/man3/zzip_*.3*
 %endif
@@ -161,3 +168,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libzzipfseeko.a
 %{_libdir}/libzzipmmapped.a
 %{_libdir}/libzzipwrap.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/*.{html,css}
+%endif
This page took 0.140355 seconds and 4 git commands to generate.