3 %bcond_without doc # - build witout documentation
5 Summary: ZZipLib - libZ-based ZIP-access Library
6 Summary(pl): ZZipLib - biblioteka dostêpu do archiwów ZIP
11 License: LGPL with exceptions (see COPYING.ZZIP)
12 Vendor: Guido Draheim <guidod@gmx.de>
14 Source0: http://dl.sourceforge.net/zziplib/%{name}-%{version}.tar.gz
15 # Source0-md5: 693b93a36162d7d3e90f25f5bc71074b
16 URL: http://zziplib.sourceforge.net/
17 BuildRequires: autoconf >= 2.50
18 BuildRequires: automake
19 BuildRequires: libtool >= 1:1.4.3
20 BuildRequires: zlib-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 ZZipLib provides read access to zipped files in a zip-archive, using
25 compression based solely on free algorithms provided by zlib. ZZipLib
26 provides an additional API to transparently access files being either
27 real files or zipped files with the same filepath argument. This is
28 handy to package many files being shared data into a single zip file -
29 as it is sometimes used with gamedata or script repositories. The
30 library itself is fully multithreaded, and it is namespace clean using
31 the zzip_ prefix for its exports and declarations.
34 ZZipLib pozwala na odczyt plików skompresowanych w archiwach zip,
35 u¿ywaj±c do dekompresji wolnodostêpnych algorytmów z biblioteki zlib.
36 ZZipLib dostarcza dodatkowe API do przezroczystego dostêpu do plików
37 rzeczywistych lub umieszczonych w archiwach zip przy pomocy takiej
38 samej ¶cie¿ki. Jest to przydatne przy trzymaniu wielu plików w jednym
39 archiwum, co bywa stosowane w przypadku danych dla gier lub
40 repozytoriów. Biblioteka jest w pe³ni wielow±tkowa i ma czyst±
41 przestrzeñ nazw (u¿ywa prefiksu zzip_).
44 Summary: ZZipLib - Development Files
45 Summary(pl): Pliki dla programistów ZZipLib
46 Group: Development/Libraries
47 Requires: %{name} = %{epoch}:%{version}-%{release}
50 These are the header files needed to develop programs using zziplib.
52 %description devel -l pl
53 Ten pakiet zawiera plikia nag³ówkowe potrzebne do tworzenia programów
54 korzystaj±cych z biblioteki zziplib.
57 Summary: ZZipLib static library
58 Summary(pl): Statyczna biblioteka ZZipLib
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
63 ZZipLib static library.
65 %description static -l pl
66 Statyczna biblioteka ZZipLib.
71 %{__perl} -pi -e 's/use strict/#&/' docs/*.pl
86 rm -rf $RPM_BUILD_ROOT
89 DESTDIR=$RPM_BUILD_ROOT
92 %{__make} install-man3 -C docs \
93 DESTDIR=$RPM_BUILD_ROOT
95 rm -f docs/zziplib[012].html
99 rm -rf $RPM_BUILD_ROOT
101 %post -p /sbin/ldconfig
102 %postun -p /sbin/ldconfig
105 %defattr(644,root,root,755)
106 %doc ChangeLog TODO docs/COPYING.Z*
107 %attr(755,root,root) %{_bindir}/zz[!i]*
108 %attr(755,root,root) %{_libdir}/lib*.so.*.*
111 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_bindir}/zzip-config
116 %attr(755,root,root) %{_libdir}/lib*.so
124 %defattr(644,root,root,755)