]> git.pld-linux.org Git - packages/cherokee.git/blame - cherokee.spec
- Version: 1.0.0 :)
[packages/cherokee.git] / cherokee.spec
CommitLineData
0f615d6e 1#
abf5f06b 2# TODO:
0f615d6e
JK
3# - think about moving modules to subpackages. At least, those with extra
4# dependencies.
d469ca68 5# - maybe there is no need to pack *.py (are *.pyc enough?)
01abcdff
JB
6#
7# Conditional build:
3319fba3 8%bcond_without geoip # without GeoIP support
56ea9d0b
JK
9%bcond_without mysql # without MySQL support
10%bcond_without ldap # without LDAP support
11%bcond_without ffmpeg # without ffmpeg support
01d41beb 12#
01d41beb 13Summary: Fast, Flexible and Lightweight Web server
56ec7482 14Summary(pl.UTF-8): Cherokee - serwer WWW
0e85b34f 15Name: cherokee
37b1fd2c 16Version: 1.0.0
d469ca68 17Release: 1
01d41beb 18License: GPL v2
8c503f01 19Group: Networking/Daemons
37b1fd2c
JK
20Source0: http://www.cherokee-project.com/download/1.0/%{version}/%{name}-%{version}.tar.gz
21# Source0-md5: 2287f647a0a6645347c525b3557f612c
01d41beb
ER
22Source1: %{name}.init
23Source2: %{name}.sysconfig
1bdedc57
ER
24Patch0: %{name}-config.patch
25Patch1: %{name}-php-path.patch
3b5f252d 26Patch2: %{name}-panic_path.patch
72ce7982 27URL: http://www.cherokee-project.com/
90a7df58 28%{?with_geoip:BuildRequires: GeoIP-devel}
1bdedc57
ER
29BuildRequires: autoconf
30BuildRequires: automake
56ea9d0b 31%{?with_ffmpeg:BuildRequires: ffmpeg-devel}
3319fba3 32BuildRequires: libtool
56ea9d0b
JK
33%{?with_mysql:BuildRequires: mysql-devel}
34%{?with_ldap:BuildRequires: openldap-devel}
abf5f06b 35BuildRequires: openssl-devel
cfbc51f9 36BuildRequires: pam-devel
01d41beb 37BuildRequires: pcre-devel
abf5f06b 38BuildRequires: php-fcgi
cfbc51f9 39BuildRequires: pkgconfig
8c2165c6 40BuildRequires: python-docutils
3319fba3 41BuildRequires: rpm-pythonprov
1bdedc57 42BuildRequires: rpmbuild(macros) >= 1.268
cfbc51f9 43BuildRequires: zlib-devel
1bdedc57
ER
44Requires(post,preun): rc-scripts
45Requires(postun): /usr/sbin/groupdel
46Requires(postun): /usr/sbin/userdel
47Requires(pre): /bin/id
48Requires(pre): /usr/bin/getgid
49Requires(pre): /usr/sbin/groupadd
50Requires(pre): /usr/sbin/useradd
d8be9859 51Requires: %{name}-libs = %{version}-%{release}
3319fba3 52Suggests: php-fcgi
e8c0b4db 53Suggests: %{name}-admin = %{version}-%{release}
1bdedc57
ER
54Provides: group(cherokee)
55Provides: group(http)
56Provides: user(cherokee)
bdfcbc7b 57Provides: webserver
8c503f01 58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
0e85b34f 59
01d41beb
ER
60%define _sysconfdir /etc/cherokee
61%define _wwwhome /home/services/%{name}
62%define _wwwroot %{_wwwhome}/html
63
0e85b34f 64%description
01d41beb
ER
65Cherokee is a flexible, very fast, lightweight Web server. It is
66implemented entirely in C, and has no dependencies beyond a standard C
a40f27e9 67library. It is embeddable and extensible with plug-ins. It supports
abf5f06b 68on-the-fly configuration by reading files or strings, TLS/SSL via
69OpenSSL, virtual hosts, authentication, cache friendly features, PHP,
70custom error management, and much more.
0e85b34f 71
fd499fdf 72%description -l pl.UTF-8
a40f27e9 73Cherokee to elastyczny, bardzo szybki i lekki serwer WWW. Jest
fd499fdf
JR
74zaimplementowany całkowicie w C i nie ma zależności poza standardową
75biblioteką C. Jest osadzalny i rozbudowywalny poprzez wtyczki.
76Obsługuje konfigurację w locie poprzez odczyt plików lub łańcuchów
abf5f06b 77znaków, TLS/SSL poprzez OpenSSL, hosty wirtualne, uwierzytelnianie,
78opcje związane z pamięcią podręczną, PHP, własne zarządzanie błędami i
79wiele więcej.
8c503f01 80
e8c0b4db
JK
81%package admin
82Summary: Cherokee web server administration interface
83Summary(pl.UTF-8): Interfejs administracyjny serwera WWW Cherokee
84Group: Networking/Daemons
85Requires: python
86Requires: python-modules
87Requires: %{name} = %{version}-%{release}
d8be9859 88
e8c0b4db
JK
89%description admin
90Cherokee web server administration interface.
d8be9859 91
e8c0b4db
JK
92%description admin -l pl.UTF-8
93Interfejs administracyjny serwera WWW Cherokee.
d8be9859 94
0e85b34f 95%package devel
8c503f01 96Summary: Header files for Cherokee web server
56ec7482 97Summary(pl.UTF-8): Pliki nagłówkowe dla serwera WWW Cherokee
8c503f01 98Group: Development/Libraries
d8be9859 99Requires: %{name}-libs = %{version}-%{release}
0e85b34f 100
101%description devel
8c503f01
JB
102Header files for Cherokee web server.
103
fd499fdf
JR
104%description devel -l pl.UTF-8
105Pliki nagłówkowe dla serwera WWW Cherokee.
0e85b34f 106
e8c0b4db
JK
107%package libs
108Summary: Cherokee web server libraries
109Summary(pl.UTF-8): Biblioteki serwera WWW Cherokee
110Group: Libraries
111
112%description libs
113Cherokee web server libraries.
114
115%description libs -l pl.UTF-8
116Biblioteki serwera WWW Cherokee.
117
0e85b34f 118%prep
119%setup -q
1bdedc57
ER
120%patch0 -p1
121%patch1 -p1
3b5f252d 122%patch2 -p1
0e85b34f 123
124%build
3319fba3 125%{__libtoolize}
1bdedc57
ER
126%{__aclocal} -I m4
127%{__autoconf}
128%{__autoheader}
129%{__automake}
abf5f06b 130export PHPCGI=%{_bindir}/php.fcgi
0e85b34f 131%configure \
cfbc51f9 132 --disable-static \
3319fba3 133 --enable-os-string="PLD Linux" \
3319fba3
KK
134 --sysconfdir=/etc \
135 --with-wwwroot=%{_wwwroot} \
abf5f06b 136 --with-wwwuser=cherokee \
137 --with-wwwgroup=http \
56ea9d0b
JK
138 %{!?with_geoip:--without-geoip} \
139 %{!?with_mysql:--without-mysql} \
140 %{!?with_ffmpeg:--without-ffmpeg} \
141 %{!?with_ldap:--without-ldap}
0e85b34f 142%{__make}
143
144%install
145rm -rf $RPM_BUILD_ROOT
2911a3cb 146install -d $RPM_BUILD_ROOT{/etc/{pam.d,sysconfig,rc.d/init.d},/var/log/%{name}}
8c503f01 147
223f9f35 148%{__make} -j1 install \
8c503f01
JB
149 DESTDIR=$RPM_BUILD_ROOT
150
01d41beb
ER
151install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
152install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
153
1bdedc57
ER
154# users don't need this
155mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/cherokee-panic
1bdedc57 156
cfbc51f9
JB
157# modules dlopened by *.so
158rm -f $RPM_BUILD_ROOT%{_libdir}/cherokee/lib*.la
159
01d41beb
ER
160# unify manual dir
161rm -rf html
162mv $RPM_BUILD_ROOT%{_docdir}/%{name} html
163
3b7d94a5
JK
164# provided via %doc
165rm $RPM_BUILD_ROOT/etc/cherokee/cherokee.conf.perf_sample
166
d469ca68
JK
167# compile python modules, otherwise *.pyc may get generated on runtime
168# and stay after package removal
169%py_comp $RPM_BUILD_ROOT%{_datadir}/cherokee/admin/
170
0bb5c2e0 171mv $RPM_BUILD_ROOT%{_localedir}/{sv_SE,sv}
3b7d94a5
JK
172%find_lang %{name}
173
d469ca68 174
8c503f01
JB
175%clean
176rm -rf $RPM_BUILD_ROOT
0e85b34f 177
1bdedc57
ER
178%pre
179%groupadd -g 161 cherokee
180%groupadd -g 51 http
181%useradd -u 161 -d %{_wwwhome} -c "Cherokee User" -g cherokee cherokee
182%addusertogroup cherokee http
183
01d41beb 184%post
01d41beb 185/sbin/chkconfig --add %{name}
c61a601c
ER
186%service %{name} restart "Cherokee webserver"
187exit 0
01d41beb
ER
188
189%preun
190if [ "$1" = "0" ]; then
191 %service %{name} stop
192 /sbin/chkconfig --del %{name}
193fi
194
1bdedc57 195%postun
1bdedc57 196if [ "$1" = "0" ]; then
c61a601c
ER
197 %userremove cherokee
198 %groupremove cherokee
1bdedc57
ER
199 %groupremove http
200fi
cfbc51f9 201
d8be9859
JB
202%post libs -p /sbin/ldconfig
203%postun libs -p /sbin/ldconfig
204
e8c0b4db 205%files
0e85b34f 206%defattr(644,root,root,755)
3b7d94a5 207%doc AUTHORS ChangeLog html contrib/*to*.py performance.conf.sample
0adbe1dc
ER
208%dir %attr(750,root,root) %{_sysconfdir}
209%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cherokee.conf
01d41beb 210
2911a3cb 211%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/cherokee
01d41beb
ER
212%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cherokee
213%attr(754,root,root) /etc/rc.d/init.d/cherokee
214
215%attr(755,root,root) %{_bindir}/cget
72ce7982 216%attr(755,root,root) %{_bindir}/cherokee-tweak
01d41beb 217%attr(755,root,root) %{_sbindir}/cherokee
3319fba3
KK
218%attr(755,root,root) %{_sbindir}/cherokee-panic
219%attr(755,root,root) %{_sbindir}/cherokee-worker
01d41beb 220
0e85b34f 221%dir %{_libdir}/cherokee
1bdedc57 222%attr(755,root,root) %{_libdir}/cherokee/libplugin_admin.so
72ce7982 223%attr(755,root,root) %{_libdir}/cherokee/libplugin_and.so
abf5f06b 224%attr(755,root,root) %{_libdir}/cherokee/libplugin_authlist.so
225%attr(755,root,root) %{_libdir}/cherokee/libplugin_bind.so
01d41beb
ER
226%attr(755,root,root) %{_libdir}/cherokee/libplugin_cgi.so
227%attr(755,root,root) %{_libdir}/cherokee/libplugin_combined.so
228%attr(755,root,root) %{_libdir}/cherokee/libplugin_common.so
3319fba3 229%attr(755,root,root) %{_libdir}/cherokee/libplugin_custom_error.so
abf5f06b 230%attr(755,root,root) %{_libdir}/cherokee/libplugin_custom.so
56ea9d0b 231%{?with_mysql:%attr(755,root,root) %{_libdir}/cherokee/libplugin_dbslayer.so}
3319fba3 232%attr(755,root,root) %{_libdir}/cherokee/libplugin_deflate.so
72ce7982 233%attr(755,root,root) %{_libdir}/cherokee/libplugin_directory.so
01d41beb 234%attr(755,root,root) %{_libdir}/cherokee/libplugin_dirlist.so
abf5f06b 235%attr(755,root,root) %{_libdir}/cherokee/libplugin_empty_gif.so
3319fba3 236%attr(755,root,root) %{_libdir}/cherokee/libplugin_error_nn.so
01d41beb 237%attr(755,root,root) %{_libdir}/cherokee/libplugin_error_redir.so
abf5f06b 238%attr(755,root,root) %{_libdir}/cherokee/libplugin_evhost.so
239%attr(755,root,root) %{_libdir}/cherokee/libplugin_exists.so
72ce7982 240%attr(755,root,root) %{_libdir}/cherokee/libplugin_extensions.so
3b7d94a5 241#%attr(755,root,root) %{_libdir}/cherokee/libplugin_fastcgi.so
8c2165c6 242%attr(755,root,root) %{_libdir}/cherokee/libplugin_fcgi.so
01d41beb 243%attr(755,root,root) %{_libdir}/cherokee/libplugin_file.so
abf5f06b 244%attr(755,root,root) %{_libdir}/cherokee/libplugin_from.so
245%attr(755,root,root) %{_libdir}/cherokee/libplugin_fullpath.so
0a169935 246%{?with_geoip:%attr(755,root,root) %{_libdir}/cherokee/libplugin_geoip.so}
01d41beb 247%attr(755,root,root) %{_libdir}/cherokee/libplugin_gzip.so
72ce7982 248%attr(755,root,root) %{_libdir}/cherokee/libplugin_header.so
01d41beb
ER
249%attr(755,root,root) %{_libdir}/cherokee/libplugin_htdigest.so
250%attr(755,root,root) %{_libdir}/cherokee/libplugin_htpasswd.so
abf5f06b 251%attr(755,root,root) %{_libdir}/cherokee/libplugin_ip_hash.so
56ea9d0b 252%{?with_ldap:%attr(755,root,root) %{_libdir}/cherokee/libplugin_ldap.so}
abf5f06b 253%attr(755,root,root) %{_libdir}/cherokee/libplugin_libssl.so
254%attr(755,root,root) %{_libdir}/cherokee/libplugin_method.so
56ea9d0b 255%{?with_mysql:%attr(755,root,root) %{_libdir}/cherokee/libplugin_mysql.so}
01d41beb 256%attr(755,root,root) %{_libdir}/cherokee/libplugin_ncsa.so
72ce7982
PZ
257%attr(755,root,root) %{_libdir}/cherokee/libplugin_not.so
258%attr(755,root,root) %{_libdir}/cherokee/libplugin_or.so
01d41beb 259%attr(755,root,root) %{_libdir}/cherokee/libplugin_pam.so
01d41beb 260%attr(755,root,root) %{_libdir}/cherokee/libplugin_plain.so
3b7d94a5
JK
261%attr(755,root,root) %{_libdir}/cherokee/libplugin_post_report.so
262%attr(755,root,root) %{_libdir}/cherokee/libplugin_post_track.so
3319fba3 263%attr(755,root,root) %{_libdir}/cherokee/libplugin_proxy.so
01d41beb 264%attr(755,root,root) %{_libdir}/cherokee/libplugin_redir.so
abf5f06b 265%attr(755,root,root) %{_libdir}/cherokee/libplugin_rehost.so
266%attr(755,root,root) %{_libdir}/cherokee/libplugin_render_rrd.so
72ce7982 267%attr(755,root,root) %{_libdir}/cherokee/libplugin_request.so
8c2165c6 268%attr(755,root,root) %{_libdir}/cherokee/libplugin_round_robin.so
abf5f06b 269%attr(755,root,root) %{_libdir}/cherokee/libplugin_rrd.so
8c2165c6 270%attr(755,root,root) %{_libdir}/cherokee/libplugin_scgi.so
abf5f06b 271%attr(755,root,root) %{_libdir}/cherokee/libplugin_secdownload.so
01d41beb 272%attr(755,root,root) %{_libdir}/cherokee/libplugin_server_info.so
abf5f06b 273%attr(755,root,root) %{_libdir}/cherokee/libplugin_ssi.so
274%attr(755,root,root) %{_libdir}/cherokee/libplugin_streaming.so
275%attr(755,root,root) %{_libdir}/cherokee/libplugin_target_ip.so
3b7d94a5 276%attr(755,root,root) %{_libdir}/cherokee/libplugin_url_arg.so
abf5f06b 277%attr(755,root,root) %{_libdir}/cherokee/libplugin_uwsgi.so
278%attr(755,root,root) %{_libdir}/cherokee/libplugin_wildcard.so
01d41beb 279
01d41beb 280%{_mandir}/man1/cget.1*
72ce7982 281%{_mandir}/man1/cherokee.1*
3319fba3
KK
282%{_mandir}/man1/cherokee-tweak.1*
283%{_mandir}/man1/cherokee-worker.1*
01d41beb 284
72ce7982 285%dir %{_datadir}/cherokee
72ce7982
PZ
286%{_datadir}/cherokee/deps
287%{_datadir}/cherokee/icons
72ce7982 288%{_datadir}/cherokee/themes
01d41beb
ER
289
290%dir %{_wwwhome}
0adbe1dc
ER
291%dir %{_wwwroot}
292%config(missingok) %{_wwwroot}/*
293
3319fba3 294%dir %attr(750,cherokee,logs) /var/log/%{name}
0e85b34f 295
0bb5c2e0
JK
296%dir %attr(771,root,cherokee) /var/lib/%{name}
297%dir %attr(771,cherokee,cherokee) /var/lib/%{name}/graphs
298%dir %attr(771,cherokee,cherokee) /var/lib/%{name}/graphs/images
299
e8c0b4db
JK
300%files admin -f %{name}.lang
301%defattr(644,root,root,755)
302%attr(755,root,root) %{_sbindir}/cherokee-admin
303%{_mandir}/man1/cherokee-admin.1*
304%dir %{_datadir}/cherokee/admin
305%{_datadir}/cherokee/admin/cherokee.conf.sample
306%{_datadir}/cherokee/admin/performance.conf.sample
307%{_datadir}/cherokee/admin/*.html
308%attr(755,root,root) %{_datadir}/cherokee/admin/*.py
d469ca68 309%{_datadir}/cherokee/admin/*.pyc
e8c0b4db 310%{_datadir}/cherokee/admin/static
d469ca68
JK
311%dir %{_datadir}/cherokee/admin/CTK
312%dir %{_datadir}/cherokee/admin/CTK/CTK
313%{_datadir}/cherokee/admin/CTK/CTK/*.py
314%{_datadir}/cherokee/admin/CTK/CTK/*.pyc
315%{_datadir}/cherokee/admin/CTK/static
316%dir %{_datadir}/cherokee/admin/plugins
317%{_datadir}/cherokee/admin/plugins/*.py
318%{_datadir}/cherokee/admin/plugins/*.pyc
319%dir %{_datadir}/cherokee/admin/wizards
320%{_datadir}/cherokee/admin/wizards/*.py
321%{_datadir}/cherokee/admin/wizards/*.pyc
e8c0b4db 322
d8be9859
JB
323%files libs
324%defattr(644,root,root,755)
325%attr(755,root,root) %{_libdir}/libcherokee-base.so.*.*.*
326%attr(755,root,root) %ghost %{_libdir}/libcherokee-base.so.0
327%attr(755,root,root) %{_libdir}/libcherokee-client.so.*.*.*
328%attr(755,root,root) %ghost %{_libdir}/libcherokee-client.so.0
329%attr(755,root,root) %{_libdir}/libcherokee-config.so.*.*.*
330%attr(755,root,root) %ghost %{_libdir}/libcherokee-config.so.0
331%attr(755,root,root) %{_libdir}/libcherokee-server.so.*.*.*
332%attr(755,root,root) %ghost %{_libdir}/libcherokee-server.so.0
333
0e85b34f 334%files devel
8c503f01 335%defattr(644,root,root,755)
0e85b34f 336%attr(755,root,root) %{_bindir}/cherokee-config
72ce7982 337%attr(755,root,root) %{_libdir}/libcherokee-base.so
72ce7982 338%attr(755,root,root) %{_libdir}/libcherokee-client.so
72ce7982 339%attr(755,root,root) %{_libdir}/libcherokee-config.so
72ce7982 340%attr(755,root,root) %{_libdir}/libcherokee-server.so
d8be9859
JB
341%{_libdir}/libcherokee-base.la
342%{_libdir}/libcherokee-client.la
343%{_libdir}/libcherokee-config.la
344%{_libdir}/libcherokee-server.la
8c503f01
JB
345%{_includedir}/cherokee
346%{_pkgconfigdir}/cherokee.pc
347%{_aclocaldir}/cherokee.m4
348%{_mandir}/man1/cherokee-config.1*
This page took 0.081642 seconds and 4 git commands to generate.