forked from gdraheim/zziplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zziplib.spec
158 lines (134 loc) · 4.6 KB
/
zziplib.spec
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
# norootforbuild
Summary: ZZipLib - libZ-based ZIP-access Library with an Easy-to-Use API
Name: zziplib
Version: 0.13.78
Release: 1
License: LGPLv2.1+
Group: System/Libraries
URL: https://github.com/gdraheim/zziplib
Vendor: Guido Draheim <guidod@gmx.de>
Source0: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}
Distribution: Original
Packager: Guido Draheim <guidod@gmx.de>
Requires: zlib
BuildRequires: zlib-devel
BuildRequires: SDL-devel
BuildRequires: zip
Provides: libzzip0 = %version
Provides: libzzip-0.so.10
Provides: zziplib-lib010 = %version
#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 doc
Summary: ZZipLib - Documentation Files
Group: Development/Languages/C and C++
BuildRequires: python
# BuildRequires: xmlto
PreReq: scrollkeeper
%package devel
Summary: ZZipLib - Development Files
Group: Development/Languages/C and C++
Requires: zziplib = %version
Requires: pkgconfig
%package SDL_rwops-devel
Summary: ZZipLib - Development Files for SDL_rwops
Group: Development/Languages/C and C++
Requires: zziplib = %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.
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
CFLAGS="$RPM_OPT_FLAGS" \
sh configure --prefix=%{_prefix} \
--mandir=%{_mandir} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--with-docdir=%{_docdir} \
--disable-static --with-pic \
--enable-sdl TIMEOUT=9
%__make zzip64-setup
%build
%__make %{?jobs:-j%jobs}
%__make %{?jobs:-j%jobs} zzip64-build
%__make %{?jobs:-j%jobs} doc
%check
%__make check
%__make test-sdl
%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
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%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)
%doc ChangeLog README TODO
%{_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/*
%changelog
* So Mar 11 2012 guidod <guidod@gmx.de> 0.13.62-1
- next version