]>
Commit | Line | Data |
---|---|---|
f966d557 JB |
1 | # |
2 | # Conditional build: | |
68b7b84b | 3 | %bcond_without apidocs # API documentation |
f966d557 | 4 | # |
ee7ac94e | 5 | Summary: ZZipLib - libZ-based ZIP-access Library |
57c081c6 | 6 | Summary(pl.UTF-8): ZZipLib - biblioteka dostępu do archiwów ZIP |
ee7ac94e | 7 | Name: zziplib |
68b7b84b JB |
8 | Version: 0.13.68 |
9 | Release: 1 | |
ee7ac94e | 10 | Epoch: 1 |
af958746 | 11 | License: LGPL v2 or MPL 1.1 |
ee7ac94e | 12 | Group: Libraries |
5c1f4f5a | 13 | Source0: http://downloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2 |
68b7b84b JB |
14 | # Source0-md5: 8b0cc7c506b172a4938c3338b122c2f0 |
15 | Patch0: %{name}-test.patch | |
cf5d9bba | 16 | Patch1: %{name}-manpages.patch |
ee7ac94e | 17 | URL: http://zziplib.sourceforge.net/ |
5e2bfe70 JB |
18 | BuildRequires: autoconf >= 2.61 |
19 | BuildRequires: automake >= 1:1.7 | |
ff22d209 | 20 | BuildRequires: docbook-dtd412-xml |
e2e58fc2 | 21 | BuildRequires: libtool >= 1:1.4.3 |
ff22d209 | 22 | BuildRequires: pkgconfig |
23 | BuildRequires: python | |
24 | BuildRequires: python-modules | |
5a3841d9 | 25 | BuildRequires: xmlto |
ff22d209 | 26 | BuildRequires: zip |
ee7ac94e JB |
27 | BuildRequires: zlib-devel |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | ZZipLib provides read access to zipped files in a zip-archive, using | |
32 | compression based solely on free algorithms provided by zlib. ZZipLib | |
33 | provides an additional API to transparently access files being either | |
34 | real files or zipped files with the same filepath argument. This is | |
35 | handy to package many files being shared data into a single zip file - | |
36 | as it is sometimes used with gamedata or script repositories. The | |
37 | library itself is fully multithreaded, and it is namespace clean using | |
38 | the zzip_ prefix for its exports and declarations. | |
39 | ||
31432000 JR |
40 | %description -l pl.UTF-8 |
41 | ZZipLib pozwala na odczyt plików skompresowanych w archiwach zip, | |
42 | używając do dekompresji wolnodostępnych algorytmów z biblioteki zlib. | |
43 | ZZipLib dostarcza dodatkowe API do przezroczystego dostępu do plików | |
ee7ac94e | 44 | rzeczywistych lub umieszczonych w archiwach zip przy pomocy takiej |
31432000 | 45 | samej ścieżki. Jest to przydatne przy trzymaniu wielu plików w jednym |
ee7ac94e | 46 | archiwum, co bywa stosowane w przypadku danych dla gier lub |
31432000 JR |
47 | repozytoriów. Biblioteka jest w pełni wielowątkowa i ma czystą |
48 | przestrzeń nazw (używa prefiksu zzip_). | |
ee7ac94e JB |
49 | |
50 | %package devel | |
51 | Summary: ZZipLib - Development Files | |
57c081c6 | 52 | Summary(pl.UTF-8): Pliki dla programistów ZZipLib |
ee7ac94e | 53 | Group: Development/Libraries |
f966d557 | 54 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ee7ac94e JB |
55 | |
56 | %description devel | |
57 | These are the header files needed to develop programs using zziplib. | |
58 | ||
31432000 | 59 | %description devel -l pl.UTF-8 |
9a66056f | 60 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów |
31432000 | 61 | korzystających z biblioteki zziplib. |
ee7ac94e JB |
62 | |
63 | %package static | |
64 | Summary: ZZipLib static library | |
57c081c6 | 65 | Summary(pl.UTF-8): Statyczna biblioteka ZZipLib |
ee7ac94e | 66 | Group: Development/Libraries |
f966d557 | 67 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
ee7ac94e JB |
68 | |
69 | %description static | |
70 | ZZipLib static library. | |
71 | ||
31432000 | 72 | %description static -l pl.UTF-8 |
ee7ac94e JB |
73 | Statyczna biblioteka ZZipLib. |
74 | ||
68b7b84b JB |
75 | %package apidocs |
76 | Summary: API documentation for ZZipLib library | |
77 | Summary(pl.UTF-8): Dokumentacja API biblioteki ZZipLib | |
78 | Group: Documentation | |
79 | %{?noarchpackage} | |
80 | ||
81 | %description apidocs | |
82 | API documentation for ZZipLib library. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja 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 | |
108 | rm -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 |
124 | rm -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 |