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