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