File: zziplib.spec

package info (click to toggle)
zziplib 0.13.56-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,760 kB
  • ctags: 2,135
  • sloc: sh: 12,147; ansic: 7,392; perl: 2,826; python: 2,190; makefile: 968; sed: 44
file content (163 lines) | stat: -rw-r--r-- 4,859 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# norootforbuild
%define lib   lib010
Summary:      ZZipLib - libZ-based ZIP-access Library
Name:         zziplib
Version:      0.13.56
Release:      1
License:      LGPL
Group:        Development/Libraries
URL:          http://zziplib.sf.net
Vendor:       Guido Draheim <guidod@gmx.de>
Source0:      http://prdownloads.sf.net/%{name}/%{name}-%{version}.tar.bz2
BuildRoot:    /var/tmp/%{name}-%{version}-%{release}

Distribution: Original
Packager:     Guido Draheim <guidod@gmx.de>
Requires:      zlib
BuildRequires: zlib-devel
BuildRequires: SDL-devel
BuildRequires: zip

#Begin3
# Author1:        too@iki.fi (Tomi Ollila)
# Author2:        guidod@gmx.de (Guido Draheim)
# Maintained-by:  guidod@gmx.de (Guido Draheim)
# Primary-Site:   zziplib.sf.net
# Keywords:       zip zlib inflate archive gamedata
# Platforms:      zlib posix
# Copying-Policy: Lesser GPL Version 2
#End

%package %lib
Summary:      ZZipLib - Documentation Files
Group:        Development/Libraries
Provides:     zziplib = %version
Provides:     libzzip0 = %version
Provides:     libzzip-0.so.10

%package doc
Summary:      ZZipLib - Documentation Files
Group:        Development/Libraries
BuildRequires: python
BuildRequires: xmlto
PreReq: scrollkeeper

%package devel
Summary:      ZZipLib - Development Files
Group:        Development/Libraries
Requires:     zziplib-%lib = %version
Requires:     pkgconfig

%package SDL_rwops-devel
Summary:      ZZipLib - Development Files for SDL_rwops
Group:        Development/Libraries
Requires:     zziplib-%lib = %version
Requires:     pkgconfig
BuildRequires: SDL-devel

%description
 : zziplib provides read access to zipped files in a zip-archive,
 : using compression based solely on free algorithms provided by zlib.

%description %lib
 : zziplib provides read access to zipped files in a zip-archive,
 : using compression based solely on free algorithms provided by zlib.
 zziplib provides an additional API to transparently access files
 being either real files or zipped files with the same filepath argument.
 This is handy to package many files being shared data into a single
 zip file - as it is sometimes used with gamedata or script repositories.
 The library itself is fully multithreaded, and it is namespace clean
 using the zzip_ prefix for its exports and declarations.

%description doc
 : zziplib provides read access to zipped files in a zip-archive,
 : using compression based solely on free algorithms provided by zlib.
 these are the (html) docs, mostly generated actually.

%description devel
 : zziplib provides read access to zipped files in a zip-archive,
 : using compression based solely on free algorithms provided by zlib.
 these are the header files needed to develop programs using zziplib.
 there are test binaries to hint usage of the library in user programs.

%description SDL_rwops-devel
 : zziplib provides read access to zipped files in a zip-archive,
 : using compression based solely on free algorithms provided by zlib.
 these are example headers and implementation along with a pkgconfig
 script that allows to easily use zziplib through SDL_rwops calls.

%prep
#'
%setup
# fixing relink problems during install too
# LDFLAGS="-L%buildroot%_libdir" \
#

CFLAGS="$RPM_OPT_FLAGS" \
sh configure --prefix=%{_prefix} \
             --with-docdir=%{_docdir} \
             --mandir=%{_mandir} \
             --bindir=%{_bindir} \
             --libdir=%{_libdir} \
             --enable-sdl  TIMEOUT=9
%__make zzip64-setup

%build
%__make %{?jobs:-j%jobs}
%__make check
%__make test-sdl
%__make %{?jobs:-j%jobs} zzip64-build
%__make %{?jobs:-j%jobs} doc

%install
%__rm -rf %{buildroot}
%__make zzip64-install DESTDIR=%{buildroot}
%__make install DESTDIR=%{buildroot}
%__make zzip32-postinstall DESTDIR=%{buildroot}
%__make zzip-postinstall
%__make install-doc DESTDIR=%{buildroot}
%__make install-mans DESTDIR=%{buildroot}
%__make install-sdl DESTDIR=%{buildroot}

%clean
%__rm -rf %{buildroot}

%files %lib
      %defattr(-,root,root)
      %{_libdir}/lib*.so.*

%post %lib
/sbin/ldconfig || true
%postun %lib
/sbin/ldconfig || true

%files doc
      %defattr(-,root,root)
      %{_datadir}/doc/*
%dir  %{_datadir}/omf/%{name}
      %{_datadir}/omf/%{name}/*

%post doc
test ! -f %_bindir/scrollkeeper-update || %_bindir/scrollkeeper-update
%postun doc
test ! -f %_bindir/scrollkeeper-update || %_bindir/scrollkeeper-update

%files devel
      %defattr(-,root,root)
      %{_bindir}/*
%dir  %{_includedir}/zzip
      %{_includedir}/zzip/*
      %{_includedir}/*.h
      %{_libdir}/lib*.so
      %{_libdir}/lib*.a
      %{_libdir}/lib*.la
      %{_libdir}/pkgconfig/zzip*
      %{_datadir}/aclocal/%{name}*.m4
      %{_mandir}/man3/*

%files SDL_rwops-devel
      %defattr(-,root,root)
      %{_libdir}/pkgconfig/SDL*zzip*
%dir  %{_includedir}/SDL_rwops_zzip
      %{_includedir}/SDL_rwops_zzip/*