3 %bcond_without geoip # without GeoIP support
4 %bcond_without gnutls # build with tls=gnutls
5 %bcond_with openssl # build with tls=openssl
7 %if %{with gnutls} || %{with openssl}
10 Summary: Fast, Flexible and Lightweight Web server
11 Summary(pl.UTF-8): Cherokee - serwer WWW
16 Group: Networking/Daemons
17 Source0: http://www.cherokee-project.com/download/0.99/%{version}/%{name}-%{version}.tar.gz
18 # Source0-md5: 236f17981c0c8908f6911fda239fc3a4
20 Source2: %{name}.sysconfig
21 Patch0: %{name}-config.patch
22 Patch1: %{name}-php-path.patch
23 Patch2: %{name}-panic_path.patch
24 URL: http://www.cherokee-project.com/
25 %{?with_geoip:BuildRequires: GeoIP-devel}
26 BuildRequires: autoconf
27 BuildRequires: automake
28 %{?with_gnutls:BuildRequires: gnutls-devel >= 0.9.99}
29 BuildRequires: libtool
30 BuildRequires: mysql-devel
31 BuildRequires: openldap-devel
32 %{?with_openssl:BuildRequires: openssl-devel}
33 BuildRequires: pam-devel
34 BuildRequires: pcre-devel
35 BuildRequires: pkgconfig
36 BuildRequires: python-docutils
37 BuildRequires: rpm-pythonprov
38 BuildRequires: rpmbuild(macros) >= 1.268
39 BuildRequires: zlib-devel
40 Requires(post,preun): rc-scripts
41 Requires(postun): /usr/sbin/groupdel
42 Requires(postun): /usr/sbin/userdel
43 Requires(pre): /bin/id
44 Requires(pre): /usr/bin/getgid
45 Requires(pre): /usr/sbin/groupadd
46 Requires(pre): /usr/sbin/useradd
47 Requires: %{name}-libs = %{version}-%{release}
49 Provides: group(cherokee)
51 Provides: user(cherokee)
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 %define _sysconfdir /etc/cherokee
56 %define _wwwhome /home/services/%{name}
57 %define _wwwroot %{_wwwhome}/html
60 Cherokee is a flexible, very fast, lightweight Web server. It is
61 implemented entirely in C, and has no dependencies beyond a standard C
62 library. It is embeddable and extensible with plug-ins. It supports
63 on-the-fly configuration by reading files or strings, TLS/SSL (via
64 GNUTLS or OpenSSL), virtual hosts, authentication, cache friendly
65 features, PHP, custom error management, and much more.
67 %description -l pl.UTF-8
68 Cherokee to elastyczny, bardzo szybki i lekki serwer WWW. Jest
69 zaimplementowany całkowicie w C i nie ma zależności poza standardową
70 biblioteką C. Jest osadzalny i rozbudowywalny poprzez wtyczki.
71 Obsługuje konfigurację w locie poprzez odczyt plików lub łańcuchów
72 znaków, TLS/SSL (poprzez GNUTLS lub OpenSSL), hosty wirtualne,
73 uwierzytelnianie, opcje związane z pamięcią podręczną, PHP, własne
74 zarządzanie błędami i wiele więcej.
77 Summary: Cherokee web server libraries
78 Summary(pl.UTF-8): Biblioteki serwera WWW Cherokee
82 Cherokee web server libraries.
84 %description libs -l pl.UTF-8
85 Biblioteki serwera WWW Cherokee.
88 Summary: Header files for Cherokee web server
89 Summary(pl.UTF-8): Pliki nagłówkowe dla serwera WWW Cherokee
90 Group: Development/Libraries
91 Requires: %{name}-libs = %{version}-%{release}
94 Header files for Cherokee web server.
96 %description devel -l pl.UTF-8
97 Pliki nagłówkowe dla serwera WWW Cherokee.
113 --enable-os-string="PLD Linux" \
114 %{?with_tls:--enable-tls=%{?with_gnutls:gnutls}%{?with_openssl:openssl}} \
116 --with-wwwroot=%{_wwwroot} \
117 %{!?with_geoip:--without-geoip} \
118 PHPCGI=%{_bindir}/php.fcgi
123 rm -rf $RPM_BUILD_ROOT
124 install -d $RPM_BUILD_ROOT{/etc/{pam.d,sysconfig,rc.d/init.d},/var/log/%{name}}
127 DESTDIR=$RPM_BUILD_ROOT
129 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
130 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
132 # users don't need this
133 mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/cherokee-panic
135 # modules dlopened by *.so
136 rm -f $RPM_BUILD_ROOT%{_libdir}/cherokee/lib*.la
140 mv $RPM_BUILD_ROOT%{_docdir}/%{name} html
143 rm -rf $RPM_BUILD_ROOT
146 %groupadd -g 161 cherokee
148 %useradd -u 161 -d %{_wwwhome} -c "Cherokee User" -g cherokee cherokee
149 %addusertogroup cherokee http
152 /sbin/chkconfig --add %{name}
153 %service %{name} restart "Cherokee webserver"
157 if [ "$1" = "0" ]; then
158 %service %{name} stop
159 /sbin/chkconfig --del %{name}
163 if [ "$1" = "0" ]; then
165 %groupremove cherokee
169 %post libs -p /sbin/ldconfig
170 %postun libs -p /sbin/ldconfig
173 %defattr(644,root,root,755)
174 %doc AUTHORS ChangeLog TODO html contrib/*to*.py
175 %dir %attr(750,root,root) %{_sysconfdir}
176 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cherokee.conf
177 %dir %attr(750,root,root) %{_sysconfdir}/ssl
179 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/cherokee
180 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cherokee
181 %attr(754,root,root) /etc/rc.d/init.d/cherokee
183 %attr(755,root,root) %{_bindir}/cget
184 %attr(755,root,root) %{_bindir}/cherokee-tweak
185 %attr(755,root,root) %{_bindir}/spawn-fcgi
186 %attr(755,root,root) %{_sbindir}/cherokee
187 %attr(755,root,root) %{_sbindir}/cherokee-admin
188 %attr(755,root,root) %{_sbindir}/cherokee-panic
189 %attr(755,root,root) %{_sbindir}/cherokee-worker
191 %dir %{_libdir}/cherokee
192 %attr(755,root,root) %{_libdir}/cherokee/libplugin_admin.so
193 %attr(755,root,root) %{_libdir}/cherokee/libplugin_and.so
194 %attr(755,root,root) %{_libdir}/cherokee/libplugin_cgi.so
195 %attr(755,root,root) %{_libdir}/cherokee/libplugin_combined.so
196 %attr(755,root,root) %{_libdir}/cherokee/libplugin_common.so
197 %attr(755,root,root) %{_libdir}/cherokee/libplugin_custom_error.so
198 %attr(755,root,root) %{_libdir}/cherokee/libplugin_dbslayer.so
199 %attr(755,root,root) %{_libdir}/cherokee/libplugin_deflate.so
200 %attr(755,root,root) %{_libdir}/cherokee/libplugin_directory.so
201 %attr(755,root,root) %{_libdir}/cherokee/libplugin_dirlist.so
202 %attr(755,root,root) %{_libdir}/cherokee/libplugin_error_nn.so
203 %attr(755,root,root) %{_libdir}/cherokee/libplugin_error_redir.so
204 %attr(755,root,root) %{_libdir}/cherokee/libplugin_extensions.so
205 %attr(755,root,root) %{_libdir}/cherokee/libplugin_fastcgi.so
206 %attr(755,root,root) %{_libdir}/cherokee/libplugin_fcgi.so
207 %attr(755,root,root) %{_libdir}/cherokee/libplugin_file.so
208 %{?with_geoip:%attr(755,root,root) %{_libdir}/cherokee/libplugin_geoip.so}
209 %attr(755,root,root) %{_libdir}/cherokee/libplugin_gzip.so
210 %attr(755,root,root) %{_libdir}/cherokee/libplugin_header.so
211 %attr(755,root,root) %{_libdir}/cherokee/libplugin_htdigest.so
212 %attr(755,root,root) %{_libdir}/cherokee/libplugin_htpasswd.so
213 %attr(755,root,root) %{_libdir}/cherokee/libplugin_ldap.so
214 %attr(755,root,root) %{_libdir}/cherokee/libplugin_mirror.so
215 %attr(755,root,root) %{_libdir}/cherokee/libplugin_mysql.so
216 %attr(755,root,root) %{_libdir}/cherokee/libplugin_ncsa.so
217 %attr(755,root,root) %{_libdir}/cherokee/libplugin_not.so
218 %attr(755,root,root) %{_libdir}/cherokee/libplugin_or.so
219 %attr(755,root,root) %{_libdir}/cherokee/libplugin_pam.so
220 %attr(755,root,root) %{_libdir}/cherokee/libplugin_phpcgi.so
221 %attr(755,root,root) %{_libdir}/cherokee/libplugin_plain.so
222 %attr(755,root,root) %{_libdir}/cherokee/libplugin_proxy.so
223 %attr(755,root,root) %{_libdir}/cherokee/libplugin_redir.so
224 %attr(755,root,root) %{_libdir}/cherokee/libplugin_request.so
225 %attr(755,root,root) %{_libdir}/cherokee/libplugin_round_robin.so
226 %attr(755,root,root) %{_libdir}/cherokee/libplugin_scgi.so
227 %attr(755,root,root) %{_libdir}/cherokee/libplugin_server_info.so
228 %attr(755,root,root) %{_libdir}/cherokee/libplugin_w3c.so
230 %{_mandir}/man1/cget.1*
231 %{_mandir}/man1/cherokee.1*
232 %{_mandir}/man1/cherokee-admin.1*
233 %{_mandir}/man1/cherokee-tweak.1*
234 %{_mandir}/man1/cherokee-worker.1*
235 # Conflicts: lighttpd
236 #%%{_mandir}/man1/spawn-fcgi.1*
238 %dir %{_datadir}/cherokee
239 %dir %{_datadir}/cherokee/admin
240 %{_datadir}/cherokee/admin/cherokee.conf.sample
241 %{_datadir}/cherokee/admin/*.html
242 %attr(755,root,root) %{_datadir}/cherokee/admin/*.py
243 %{_datadir}/cherokee/admin/static
244 %{_datadir}/cherokee/deps
245 %{_datadir}/cherokee/icons
246 %{_datadir}/cherokee/mime_types.txt
247 %{_datadir}/cherokee/themes
251 %config(missingok) %{_wwwroot}/*
253 %dir %attr(750,cherokee,logs) /var/log/%{name}
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libcherokee-base.so.*.*.*
258 %attr(755,root,root) %ghost %{_libdir}/libcherokee-base.so.0
259 %attr(755,root,root) %{_libdir}/libcherokee-client.so.*.*.*
260 %attr(755,root,root) %ghost %{_libdir}/libcherokee-client.so.0
261 %attr(755,root,root) %{_libdir}/libcherokee-config.so.*.*.*
262 %attr(755,root,root) %ghost %{_libdir}/libcherokee-config.so.0
263 %attr(755,root,root) %{_libdir}/libcherokee-server.so.*.*.*
264 %attr(755,root,root) %ghost %{_libdir}/libcherokee-server.so.0
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_bindir}/cherokee-config
269 %attr(755,root,root) %{_libdir}/libcherokee-base.so
270 %attr(755,root,root) %{_libdir}/libcherokee-client.so
271 %attr(755,root,root) %{_libdir}/libcherokee-config.so
272 %attr(755,root,root) %{_libdir}/libcherokee-server.so
273 %{_libdir}/libcherokee-base.la
274 %{_libdir}/libcherokee-client.la
275 %{_libdir}/libcherokee-config.la
276 %{_libdir}/libcherokee-server.la
277 %{_includedir}/cherokee
278 %{_pkgconfigdir}/cherokee.pc
279 %{_aclocaldir}/cherokee.m4
280 %{_mandir}/man1/cherokee-config.1*