X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=cherokee.spec;h=4846b320b7a4cd1fc82bb1feb61a527790af256d;hb=0f615d6e258941e143a5f9629de4ff7d801bd164;hp=1e1824928c39c6e96b240a3268c03a900317272c;hpb=d7f9f91f090a619f0bb02be5fae25fb301d6dc05;p=packages%2Fcherokee.git diff --git a/cherokee.spec b/cherokee.spec index 1e18249..4846b32 100644 --- a/cherokee.spec +++ b/cherokee.spec @@ -1,75 +1,330 @@ -%define pre 20031225 - -Summary: Cherokee webserver +# +# TODO: +# - think about moving modules to subpackages. At least, those with extra +# dependencies. +# +# Conditional build: +%bcond_without geoip # without GeoIP support +%bcond_without mysql # without MySQL support +%bcond_without ldap # without LDAP support +%bcond_without ffmpeg # without ffmpeg support +# +Summary: Fast, Flexible and Lightweight Web server +Summary(pl.UTF-8): Cherokee - serwer WWW Name: cherokee -Version: 0.4.6 -Release: 0.%{pre}.1 -License: GPL -Group: Networking/Daemons -URL: http://alobbs.com/cherokee -Source0: ftp://alobbs.com/cherokee/%{version}/%{name}-%{version}-%{pre}.tar.gz -# Source0-md5: c3987a0abe0cbbab54d939a2fcc046ba +Version: 0.99.44 +Release: 1 +License: GPL v2 +Group: Networking/Daemons +Source0: http://www.cherokee-project.com/download/0.99/%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 268e7130c12b441523de963f95b9b85d +Source1: %{name}.init +Source2: %{name}.sysconfig +Patch0: %{name}-config.patch +Patch1: %{name}-php-path.patch +Patch2: %{name}-panic_path.patch +URL: http://www.cherokee-project.com/ +%{?with_geoip:BuildRequires: GeoIP-devel} +BuildRequires: autoconf +BuildRequires: automake +%{?with_ffmpeg:BuildRequires: ffmpeg-devel} +BuildRequires: libtool +%{?with_mysql:BuildRequires: mysql-devel} +%{?with_ldap:BuildRequires: openldap-devel} +BuildRequires: openssl-devel +BuildRequires: pam-devel +BuildRequires: pcre-devel +BuildRequires: php-fcgi +BuildRequires: pkgconfig +BuildRequires: python-docutils +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.268 +BuildRequires: zlib-devel +Requires(post,preun): rc-scripts +Requires(postun): /usr/sbin/groupdel +Requires(postun): /usr/sbin/userdel +Requires(pre): /bin/id +Requires(pre): /usr/bin/getgid +Requires(pre): /usr/sbin/groupadd +Requires(pre): /usr/sbin/useradd +Requires: %{name}-libs = %{version}-%{release} +Suggests: php-fcgi +Suggests: %{name}-admin = %{version}-%{release} +Provides: group(cherokee) +Provides: group(http) +Provides: user(cherokee) +Provides: webserver BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -BuildRequires: fcgi-devel -BuildRequires: gnome-vfs2-devel + +%define _sysconfdir /etc/cherokee +%define _wwwhome /home/services/%{name} +%define _wwwroot %{_wwwhome}/html %description -- FAST and tiny -- Embedable -- Extensible with plug-ins -- Handler-to-path support -- Virtual servers support -- FastCGI support -- Encoders support: o GZip -- Loggers support: o NCSA -- Dynamic / Static plug-in compilation -- Streaming support -- Common tasks: o Work as a daemon o Mime types o Log via syslog o - Keep-alive connections o Runs under a chroot enviroment -- Clean code ;-) -- It's free software +Cherokee is a flexible, very fast, lightweight Web server. It is +implemented entirely in C, and has no dependencies beyond a standard C +library. It is embeddable and extensible with plug-ins. It supports +on-the-fly configuration by reading files or strings, TLS/SSL via +OpenSSL, virtual hosts, authentication, cache friendly features, PHP, +custom error management, and much more. + +%description -l pl.UTF-8 +Cherokee to elastyczny, bardzo szybki i lekki serwer WWW. Jest +zaimplementowany całkowicie w C i nie ma zależności poza standardową +biblioteką C. Jest osadzalny i rozbudowywalny poprzez wtyczki. +Obsługuje konfigurację w locie poprzez odczyt plików lub łańcuchów +znaków, TLS/SSL poprzez OpenSSL, hosty wirtualne, uwierzytelnianie, +opcje związane z pamięcią podręczną, PHP, własne zarządzanie błędami i +wiele więcej. + +%package admin +Summary: Cherokee web server administration interface +Summary(pl.UTF-8): Interfejs administracyjny serwera WWW Cherokee +Group: Networking/Daemons +Requires: python +Requires: python-modules +Requires: %{name} = %{version}-%{release} + +%description admin +Cherokee web server administration interface. + +%description admin -l pl.UTF-8 +Interfejs administracyjny serwera WWW Cherokee. %package devel -Summary: headers for cherokee web server -Group: Development/Libraries +Summary: Header files for Cherokee web server +Summary(pl.UTF-8): Pliki nagłówkowe dla serwera WWW Cherokee +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} %description devel -headers for cherokee web server +Header files for Cherokee web server. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe dla serwera WWW Cherokee. + +%package libs +Summary: Cherokee web server libraries +Summary(pl.UTF-8): Biblioteki serwera WWW Cherokee +Group: Libraries + +%description libs +Cherokee web server libraries. + +%description libs -l pl.UTF-8 +Biblioteki serwera WWW Cherokee. %prep %setup -q +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build +%{__libtoolize} +%{__aclocal} -I m4 +%{__autoconf} +%{__autoheader} +%{__automake} +export PHPCGI=%{_bindir}/php.fcgi %configure \ - --enable-gnomevfs \ - --enable-tls + --disable-static \ + --enable-os-string="PLD Linux" \ + --sysconfdir=/etc \ + --with-wwwroot=%{_wwwroot} \ + --with-wwwuser=cherokee \ + --with-wwwgroup=http \ + %{!?with_geoip:--without-geoip} \ + %{!?with_mysql:--without-mysql} \ + %{!?with_ffmpeg:--without-ffmpeg} \ + %{!?with_ldap:--without-ldap} %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{/etc/{pam.d,sysconfig,rc.d/init.d},/var/log/%{name}} + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} + +# users don't need this +mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/cherokee-panic + +# modules dlopened by *.so +rm -f $RPM_BUILD_ROOT%{_libdir}/cherokee/lib*.la + +# unify manual dir +rm -rf html +mv $RPM_BUILD_ROOT%{_docdir}/%{name} html + +# provided via %doc +rm $RPM_BUILD_ROOT/etc/cherokee/cherokee.conf.perf_sample + +mv $RPM_BUILD_ROOT%{_localedir}/{sv_SE,sv} +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre +%groupadd -g 161 cherokee +%groupadd -g 51 http +%useradd -u 161 -d %{_wwwhome} -c "Cherokee User" -g cherokee cherokee +%addusertogroup cherokee http + +%post +/sbin/chkconfig --add %{name} +%service %{name} restart "Cherokee webserver" +exit 0 + +%preun +if [ "$1" = "0" ]; then + %service %{name} stop + /sbin/chkconfig --del %{name} +fi + +%postun +if [ "$1" = "0" ]; then + %userremove cherokee + %groupremove cherokee + %groupremove http +fi + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig %files %defattr(644,root,root,755) -%attr(755,root,root) %{_bindir}/cherokee -%{_sysconfdir}/cherokee -%{_sysconfdir}/cherokee/cherokee.conf -%dir %{_includedir}/cherokee +%doc AUTHORS ChangeLog html contrib/*to*.py performance.conf.sample +%dir %attr(750,root,root) %{_sysconfdir} +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cherokee.conf + +%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/cherokee +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cherokee +%attr(754,root,root) /etc/rc.d/init.d/cherokee + +%attr(755,root,root) %{_bindir}/cget +%attr(755,root,root) %{_bindir}/cherokee-tweak +%attr(755,root,root) %{_sbindir}/cherokee +%attr(755,root,root) %{_sbindir}/cherokee-panic +%attr(755,root,root) %{_sbindir}/cherokee-worker + %dir %{_libdir}/cherokee -%{_libdir}/cherokee/libcherokee_* -%{_libdir}/libcherokee.* -%{_datadir}/cherokee -%{_mandir}/man1/cherokee.1.gz +%attr(755,root,root) %{_libdir}/cherokee/libplugin_admin.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_and.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_authlist.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_bind.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_cgi.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_combined.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_common.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_custom_error.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_custom.so +%{?with_mysql:%attr(755,root,root) %{_libdir}/cherokee/libplugin_dbslayer.so} +%attr(755,root,root) %{_libdir}/cherokee/libplugin_deflate.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_directory.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_dirlist.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_empty_gif.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_error_nn.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_error_redir.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_evhost.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_exists.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_extensions.so +#%attr(755,root,root) %{_libdir}/cherokee/libplugin_fastcgi.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_fcgi.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_file.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_from.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_fullpath.so +%{?with_geoip:%attr(755,root,root) %{_libdir}/cherokee/libplugin_geoip.so} +%attr(755,root,root) %{_libdir}/cherokee/libplugin_gzip.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_header.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_htdigest.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_htpasswd.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_ip_hash.so +%{?with_ldap:%attr(755,root,root) %{_libdir}/cherokee/libplugin_ldap.so} +%attr(755,root,root) %{_libdir}/cherokee/libplugin_libssl.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_method.so +%{?with_mysql:%attr(755,root,root) %{_libdir}/cherokee/libplugin_mysql.so} +%attr(755,root,root) %{_libdir}/cherokee/libplugin_ncsa.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_not.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_or.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_pam.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_plain.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_post_report.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_post_track.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_proxy.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_redir.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_rehost.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_render_rrd.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_request.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_round_robin.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_rrd.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_scgi.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_secdownload.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_server_info.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_ssi.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_streaming.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_target_ip.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_url_arg.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_uwsgi.so +%attr(755,root,root) %{_libdir}/cherokee/libplugin_wildcard.so -%files devel -%attr(755,root,root) %{_bindir}/cherokee-config -%{_includedir}/cherokee/*.h -%{_libdir}/pkgconfig/cherokee.pc -%{_datadir}/aclocal/cherokee.m4 -%{_mandir}/man1/cherokee-config.1.gz +%{_mandir}/man1/cget.1* +%{_mandir}/man1/cherokee.1* +%{_mandir}/man1/cherokee-tweak.1* +%{_mandir}/man1/cherokee-worker.1* +%dir %{_datadir}/cherokee +%{_datadir}/cherokee/deps +%{_datadir}/cherokee/icons +%{_datadir}/cherokee/themes +%dir %{_wwwhome} +%dir %{_wwwroot} +%config(missingok) %{_wwwroot}/* +%dir %attr(750,cherokee,logs) /var/log/%{name} -%clean -rm -rf $RPM_BUILD_ROOT +%dir %attr(771,root,cherokee) /var/lib/%{name} +%dir %attr(771,cherokee,cherokee) /var/lib/%{name}/graphs +%dir %attr(771,cherokee,cherokee) /var/lib/%{name}/graphs/images + +%files admin -f %{name}.lang +%defattr(644,root,root,755) +%attr(755,root,root) %{_sbindir}/cherokee-admin +%{_mandir}/man1/cherokee-admin.1* +%dir %{_datadir}/cherokee/admin +%{_datadir}/cherokee/admin/cherokee.conf.sample +%{_datadir}/cherokee/admin/performance.conf.sample +%{_datadir}/cherokee/admin/*.html +%attr(755,root,root) %{_datadir}/cherokee/admin/*.py +%{_datadir}/cherokee/admin/static + +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libcherokee-base.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libcherokee-base.so.0 +%attr(755,root,root) %{_libdir}/libcherokee-client.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libcherokee-client.so.0 +%attr(755,root,root) %{_libdir}/libcherokee-config.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libcherokee-config.so.0 +%attr(755,root,root) %{_libdir}/libcherokee-server.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libcherokee-server.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/cherokee-config +%attr(755,root,root) %{_libdir}/libcherokee-base.so +%attr(755,root,root) %{_libdir}/libcherokee-client.so +%attr(755,root,root) %{_libdir}/libcherokee-config.so +%attr(755,root,root) %{_libdir}/libcherokee-server.so +%{_libdir}/libcherokee-base.la +%{_libdir}/libcherokee-client.la +%{_libdir}/libcherokee-config.la +%{_libdir}/libcherokee-server.la +%{_includedir}/cherokee +%{_pkgconfigdir}/cherokee.pc +%{_aclocaldir}/cherokee.m4 +%{_mandir}/man1/cherokee-config.1*