]> git.pld-linux.org Git - packages/zziplib.git/blame - zziplib.spec
- updated to 0.13.68
[packages/zziplib.git] / zziplib.spec
CommitLineData
f966d557
JB
1#
2# Conditional build:
68b7b84b 3%bcond_without apidocs # API documentation
f966d557 4#
ee7ac94e 5Summary: ZZipLib - libZ-based ZIP-access Library
57c081c6 6Summary(pl.UTF-8): ZZipLib - biblioteka dostępu do archiwów ZIP
ee7ac94e 7Name: zziplib
68b7b84b
JB
8Version: 0.13.68
9Release: 1
ee7ac94e 10Epoch: 1
af958746 11License: LGPL v2 or MPL 1.1
ee7ac94e 12Group: Libraries
5c1f4f5a 13Source0: http://downloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
68b7b84b
JB
14# Source0-md5: 8b0cc7c506b172a4938c3338b122c2f0
15Patch0: %{name}-test.patch
cf5d9bba 16Patch1: %{name}-manpages.patch
ee7ac94e 17URL: http://zziplib.sourceforge.net/
5e2bfe70
JB
18BuildRequires: autoconf >= 2.61
19BuildRequires: automake >= 1:1.7
ff22d209 20BuildRequires: docbook-dtd412-xml
e2e58fc2 21BuildRequires: libtool >= 1:1.4.3
ff22d209 22BuildRequires: pkgconfig
23BuildRequires: python
24BuildRequires: python-modules
5a3841d9 25BuildRequires: xmlto
ff22d209 26BuildRequires: zip
ee7ac94e
JB
27BuildRequires: zlib-devel
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31ZZipLib provides read access to zipped files in a zip-archive, using
32compression based solely on free algorithms provided by zlib. ZZipLib
33provides an additional API to transparently access files being either
34real files or zipped files with the same filepath argument. This is
35handy to package many files being shared data into a single zip file -
36as it is sometimes used with gamedata or script repositories. The
37library itself is fully multithreaded, and it is namespace clean using
38the zzip_ prefix for its exports and declarations.
39
31432000
JR
40%description -l pl.UTF-8
41ZZipLib pozwala na odczyt plików skompresowanych w archiwach zip,
42używając do dekompresji wolnodostępnych algorytmów z biblioteki zlib.
43ZZipLib dostarcza dodatkowe API do przezroczystego dostępu do plików
ee7ac94e 44rzeczywistych lub umieszczonych w archiwach zip przy pomocy takiej
31432000 45samej ścieżki. Jest to przydatne przy trzymaniu wielu plików w jednym
ee7ac94e 46archiwum, co bywa stosowane w przypadku danych dla gier lub
31432000
JR
47repozytoriów. Biblioteka jest w pełni wielowątkowa i ma czystą
48przestrzeń nazw (używa prefiksu zzip_).
ee7ac94e
JB
49
50%package devel
51Summary: ZZipLib - Development Files
57c081c6 52Summary(pl.UTF-8): Pliki dla programistów ZZipLib
ee7ac94e 53Group: Development/Libraries
f966d557 54Requires: %{name} = %{epoch}:%{version}-%{release}
ee7ac94e
JB
55
56%description devel
57These are the header files needed to develop programs using zziplib.
58
31432000 59%description devel -l pl.UTF-8
9a66056f 60Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
31432000 61korzystających z biblioteki zziplib.
ee7ac94e
JB
62
63%package static
64Summary: ZZipLib static library
57c081c6 65Summary(pl.UTF-8): Statyczna biblioteka ZZipLib
ee7ac94e 66Group: Development/Libraries
f966d557 67Requires: %{name}-devel = %{epoch}:%{version}-%{release}
ee7ac94e
JB
68
69%description static
70ZZipLib static library.
71
31432000 72%description static -l pl.UTF-8
ee7ac94e
JB
73Statyczna biblioteka ZZipLib.
74
68b7b84b
JB
75%package apidocs
76Summary: API documentation for ZZipLib library
77Summary(pl.UTF-8): Dokumentacja API biblioteki ZZipLib
78Group: Documentation
79%{?noarchpackage}
80
81%description apidocs
82API documentation for ZZipLib library.
83
84%description apidocs -l pl.UTF-8
85Dokumentacja API biblioteki ZZipLib.
86
ee7ac94e
JB
87%prep
88%setup -q
8a61db9e 89%patch0 -p1
cf5d9bba 90%patch1 -p1
ee7ac94e
JB
91
92%build
1b0c54be 93%{__libtoolize}
b65aed4f 94%{__aclocal} -I m4
1b0c54be 95%{__autoconf}
33af8714 96%{__autoheader}
1b0c54be 97%{__automake}
5a3841d9 98%configure \
99 --disable-builddir
ee7ac94e
JB
100
101%{__make}
8c3d8361 102%{__make} -j1 check
68b7b84b 103%if %{with apidocs}
ee7ac94e 104%{__make} doc
d7c28ea3 105%endif
ee7ac94e
JB
106
107%install
108rm -rf $RPM_BUILD_ROOT
1b0c54be 109
ee7ac94e
JB
110%{__make} install \
111 DESTDIR=$RPM_BUILD_ROOT
1b0c54be 112
68b7b84b 113%if %{with apidocs}
1b0c54be
JB
114%{__make} install-man3 -C docs \
115 DESTDIR=$RPM_BUILD_ROOT
d7c28ea3 116%endif
ee7ac94e 117
af958746
JB
118# we don't need these compat symlinks
119%{__rm} $RPM_BUILD_ROOT%{_libdir}/libzzip*-0.so.{10,11,12}
68b7b84b
JB
120# obsoleted by pkg-config
121%{__rm} $RPM_BUILD_ROOT%{_libdir}/libzzip*.la
af958746 122
ee7ac94e
JB
123%clean
124rm -rf $RPM_BUILD_ROOT
125
126%post -p /sbin/ldconfig
127%postun -p /sbin/ldconfig
128
129%files
130%defattr(644,root,root,755)
af958746 131%doc ChangeLog README TODO docs/COPYING.ZLIB
24e9164b
JB
132%attr(755,root,root) %{_bindir}/zzcat
133%attr(755,root,root) %{_bindir}/zzdir
134%attr(755,root,root) %{_bindir}/zzxor*
135%attr(755,root,root) %{_bindir}/unzip-mem
136%attr(755,root,root) %{_bindir}/unzzip*
137%attr(755,root,root) %{_libdir}/libzzip-0.so.*.*.*
138%attr(755,root,root) %ghost %{_libdir}/libzzip-0.so.13
139%attr(755,root,root) %{_libdir}/libzzipfseeko-0.so.*.*.*
140%attr(755,root,root) %ghost %{_libdir}/libzzipfseeko-0.so.13
141%attr(755,root,root) %{_libdir}/libzzipmmapped-0.so.*.*.*
142%attr(755,root,root) %ghost %{_libdir}/libzzipmmapped-0.so.13
143%attr(755,root,root) %{_libdir}/libzzipwrap-0.so.*.*.*
144%attr(755,root,root) %ghost %{_libdir}/libzzipwrap-0.so.13
ee7ac94e
JB
145
146%files devel
147%defattr(644,root,root,755)
24e9164b
JB
148%attr(755,root,root) %{_libdir}/libzzip.so
149%attr(755,root,root) %{_libdir}/libzzipfseeko.so
150%attr(755,root,root) %{_libdir}/libzzipmmapped.so
151%attr(755,root,root) %{_libdir}/libzzipwrap.so
24e9164b
JB
152%{_includedir}/zzip
153%{_includedir}/zzip*.h
68b7b84b 154%if %{with apidocs}
24e9164b
JB
155%{_mandir}/man3/__zzip_*.3*
156%{_mandir}/man3/zzip_*.3*
d7c28ea3 157%endif
24e9164b
JB
158%{_pkgconfigdir}/zzip-zlib-config.pc
159%{_pkgconfigdir}/zzipfseeko.pc
160%{_pkgconfigdir}/zziplib.pc
161%{_pkgconfigdir}/zzipmmapped.pc
162%{_pkgconfigdir}/zzipwrap.pc
163%{_aclocaldir}/zziplib.m4
ee7ac94e
JB
164
165%files static
166%defattr(644,root,root,755)
24e9164b
JB
167%{_libdir}/libzzip.a
168%{_libdir}/libzzipfseeko.a
169%{_libdir}/libzzipmmapped.a
170%{_libdir}/libzzipwrap.a
68b7b84b
JB
171
172%if %{with apidocs}
173%files apidocs
174%defattr(644,root,root,755)
175%doc docs/*.{html,css}
176%endif
This page took 0.110593 seconds and 4 git commands to generate.