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