]> git.pld-linux.org Git - packages/zziplib.git/blob - zziplib.spec
- updated to 0.13.38
[packages/zziplib.git] / zziplib.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # - build witout documentation
4 #
5 Summary:        ZZipLib - libZ-based ZIP-access Library
6 Summary(pl):    ZZipLib - biblioteka dostêpu do archiwów ZIP
7 Name:           zziplib
8 Version:        0.13.38
9 Release:        1
10 Epoch:          1
11 License:        LGPL with exceptions (see COPYING.ZZIP)
12 Vendor:         Guido Draheim <guidod@gmx.de>
13 Group:          Libraries
14 Source0:        http://dl.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
15 # Source0-md5:  3eccd9b39c057eb49652e90914abfdf5
16 URL:            http://zziplib.sourceforge.net/
17 BuildRequires:  autoconf >= 2.50
18 BuildRequires:  automake
19 BuildRequires:  libtool >= 1:1.4.3
20 BuildRequires:  xmlto
21 BuildRequires:  zlib-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 ZZipLib provides read access to zipped files in a zip-archive, using
26 compression based solely on free algorithms provided by zlib. ZZipLib
27 provides an additional API to transparently access files being either
28 real files or zipped files with the same filepath argument. This is
29 handy to package many files being shared data into a single zip file -
30 as it is sometimes used with gamedata or script repositories. The
31 library itself is fully multithreaded, and it is namespace clean using
32 the zzip_ prefix for its exports and declarations.
33
34 %description -l pl
35 ZZipLib pozwala na odczyt plików skompresowanych w archiwach zip,
36 u¿ywaj±c do dekompresji wolnodostêpnych algorytmów z biblioteki zlib.
37 ZZipLib dostarcza dodatkowe API do przezroczystego dostêpu do plików
38 rzeczywistych lub umieszczonych w archiwach zip przy pomocy takiej
39 samej ¶cie¿ki. Jest to przydatne przy trzymaniu wielu plików w jednym
40 archiwum, co bywa stosowane w przypadku danych dla gier lub
41 repozytoriów. Biblioteka jest w pe³ni wielow±tkowa i ma czyst±
42 przestrzeñ nazw (u¿ywa prefiksu zzip_).
43
44 %package devel
45 Summary:        ZZipLib - Development Files
46 Summary(pl):    Pliki dla programistów ZZipLib
47 Group:          Development/Libraries
48 Requires:       %{name} = %{epoch}:%{version}-%{release}
49
50 %description devel
51 These are the header files needed to develop programs using zziplib.
52
53 %description devel -l pl
54 Ten pakiet zawiera plikia nag³ówkowe potrzebne do tworzenia programów
55 korzystaj±cych z biblioteki zziplib.
56
57 %package static
58 Summary:        ZZipLib static library
59 Summary(pl):    Statyczna biblioteka ZZipLib
60 Group:          Development/Libraries
61 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
62
63 %description static
64 ZZipLib static library.
65
66 %description static -l pl
67 Statyczna biblioteka ZZipLib.
68
69 %prep
70 %setup -q
71
72 %{__perl} -pi -e 's/use strict/#&/' docs/*.pl
73
74 %build
75 %{__libtoolize}
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure \
81         --disable-builddir
82
83 %{__make}
84 %if %{with doc}
85 %{__make} doc
86 %endif
87
88 %install
89 rm -rf $RPM_BUILD_ROOT
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 %if %{with doc}
95 %{__make} install-man3 -C docs \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 rm -f docs/zziplib[012].html
99 %endif
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %files
108 %defattr(644,root,root,755)
109 %doc ChangeLog TODO docs/COPYING.Z*
110 %attr(755,root,root) %{_bindir}/zz[!i]*
111 %attr(755,root,root) %{_bindir}/unzz*
112 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113
114 %files devel
115 %defattr(644,root,root,755)
116 %if %{with doc}
117 %doc docs/*.html
118 %endif
119 %attr(755,root,root) %{_libdir}/lib*.so
120 %{_libdir}/lib*.la
121 %{_includedir}/*
122 %if %{with doc}
123 %{_mandir}/man3/*.3*
124 %endif
125 %{_pkgconfigdir}/*.pc
126 %{_aclocaldir}/*.m4
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/lib*.a
This page took 0.034307 seconds and 3 git commands to generate.