%define major 0 %define libbase %mklibname %name-base %major %define libclient %mklibname %name-client %major %define libconfig %mklibname %name-config %major %define libserver %mklibname %name-server %major %define mainver %(echo %{version} | sed -e "s/\\([0-9]*\\.[0-9]*\\).[0-9]*/\\1/") Summary: Extremely fast and flexible web server Name: cherokee Version: 1.0.8 Release: %mkrel 1 License: GPLv2 Group: System/Servers Source0: http://www.cherokee-project.com/download/%{mainver}/%{version}/%{name}-%{version}.tar.gz Source1: cherokee.init Source2: cherokee.logrotate URL: http://www.cherokee-project.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRequires: ffmpeg-devel BuildRequires: php-devel %if %mdkversion >= 201000 Buildrequires: php-cgi %else BuildRequires: php-fcgi %endif BuildRequires: mysql-devel BuildRequires: openldap-devel BuildRequires: openssl-devel BuildRequires: GeoIP-devel %if %mdkversion >= 201000 Requires: php-cgi %else Requires: php-fcgi %endif %description Cherokee is an extremely flexible and fast web server. It's embedable, extensible with plug-ins. It has handler-to-path, virtual servers, gzip encoding, modular loggers, CGI support, and can run in a chroot environment, among other features. %files -f %{name}.lang %defattr(-, root, root) %_initrddir/%{name} %dir %_sysconfdir/cherokee %config(noreplace) %_sysconfdir/cherokee/cherokee.conf %_sysconfdir/cherokee/cherokee.conf.perf_sample %config(noreplace) %{_sysconfdir}/pam.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %_bindir/cherokee-tweak %_bindir/cherokee-panic %dir %_libdir/%name %_libdir/%name/*.so %_sbindir/* %_datadir/%name %doc %_datadir/doc/%name %_mandir/man1/cherokee-admin.* %_mandir/man1/cherokee-tweak.* %_mandir/man1/cherokee-worker.* %_mandir/man1/cherokee.* %_var/www #---------------------------------------------------------------------- %package -n cget Group: System/Servers Summary: Web page downloader %description -n cget CGet is a small downloader based in the Cherokee client library. %files -n cget %defattr(-, root, root) %{_bindir}/cget %{_mandir}/man1/cget.* #---------------------------------------------------------------------- %package -n %libbase Group: System/Servers Summary: Extremely fast and flexible web server - libraries %description -n %libbase Cherokee is an extremely flexible and fast web server. It's embedable, extensible with plug-ins. It has handler-to-path, virtual servers, gzip encoding, modular loggers, CGI support, and can run in a chroot environment, among other features. This is the runtime library. %files -n %libbase %defattr(-, root, root) %{_libdir}/libcherokee-base.so.%{major}* #---------------------------------------------------------------------- %package -n %libclient Group: System/Servers Summary: Extremely fast and flexible web server - libraries %description -n %libclient Cherokee is an extremely flexible and fast web server. It's embedable, extensible with plug-ins. It has handler-to-path, virtual servers, gzip encoding, modular loggers, CGI support, and can run in a chroot environment, among other features. This is the client runtime library. %files -n %libclient %defattr(-, root, root) %{_libdir}/libcherokee-client.so.%{major}* #---------------------------------------------------------------------- %package -n %libconfig Group: System/Servers Summary: Extremely fast and flexible web server - libraries %description -n %libconfig Cherokee is an extremely flexible and fast web server. It's embedable, extensible with plug-ins. It has handler-to-path, virtual servers, gzip encoding, modular loggers, CGI support, and can run in a chroot environment, among other features. This is the configuration handler's runtime library. %files -n %libconfig %defattr(-, root, root) %{_libdir}/libcherokee-config.so.%{major}* #---------------------------------------------------------------------- %package -n %libserver Group: System/Servers Summary: Extremely fast and flexible web server - libraries %description -n %libserver Cherokee is an extremely flexible and fast web server. It's embedable, extensible with plug-ins. It has handler-to-path, virtual servers, gzip encoding, modular loggers, CGI support, and can run in a chroot environment, among other features. This is the server runtime library. %files -n %libserver %defattr(-, root, root) %{_libdir}/libcherokee-server.so.%{major}* #---------------------------------------------------------------------- %package devel Group: System/Servers Requires: %libbase = %version Requires: %libclient = %version Requires: %libconfig = %version Requires: %libserver = %version Summary: Extremely fast and flexible web server - development files %description devel Cherokee is an extremely flexible and fast web server. It's embedable, extensible with plug-ins. It has handler-to-path, virtual servers, gzip encoding, modular loggers, CGI support, and can run in a chroot environment, among other features. This package contains the server development files - headers, .so and .a files. %files devel %defattr(-, root, root) %_bindir/%name-config %_libdir/*.la %_libdir/*.so %_includedir/%name %_libdir/pkgconfig/*.pc %_datadir/aclocal/*.m4 %_mandir/man1/%name-config.* #---------------------------------------------------------------------- %prep %setup -q -n %name-%version %build %serverbuild %if %mdkversion < 201000 export PHPCGI=%{_bindir}/php-fcgi %endif %configure2_5x --disable-static %make %install rm -rf %buildroot %makeinstall_std %find_lang %name rm -f %buildroot%_libdir/%name/*.la %{__install} -D -m 0644 pam.d_cherokee %{buildroot}%{_sysconfdir}/pam.d/%{name} %{__install} -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} %{__install} -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %clean rm -rf %buildroot %check # broken in 0.99.39 #%make test %changelog * Thu Aug 12 2010 Lonyai Gergely <aleph@mandriva.org> 1.0.8-1mdv2011.0 + Revision: 569211 - 1.0.8 * Mon Aug 09 2010 Funda Wang <fwang@mandriva.org> 1.0.7-1mdv2011.0 + Revision: 568058 - new version 1.0.7 * Wed Aug 04 2010 Lonyai Gergely <aleph@mandriva.org> 1.0.6-1mdv2011.0 + Revision: 565879 - 1.0.6 * Wed Jul 07 2010 Lonyai Gergely <aleph@mandriva.org> 1.0.5-1mdv2011.0 + Revision: 549843 - 1.0.5 - 1.0.4 - 1.0.2 - 1.0.1 * Tue May 18 2010 Funda Wang <fwang@mandriva.org> 1.0.0-1mdv2010.1 + Revision: 545086 - New version 1.0.0 stable + Lonyai Gergely <aleph@mandriva.org> - 0.99.48 * Tue May 04 2010 Funda Wang <fwang@mandriva.org> 0.99.45-2mdv2010.1 + Revision: 541909 - sync with fedora initfile (suppress confusing output) * Mon Apr 26 2010 Funda Wang <fwang@mandriva.org> 0.99.45-1mdv2010.1 + Revision: 538916 - update to new version 0.99.45 * Tue Apr 13 2010 Funda Wang <fwang@mandriva.org> 0.99.44-2mdv2010.1 + Revision: 534175 - rebuild * Sun Mar 28 2010 Sandro Cazzaniga <kharec@mandriva.org> 0.99.44-1mdv2010.1 + Revision: 528476 - update to 0.99.44 * Thu Feb 18 2010 Oden Eriksson <oeriksson@mandriva.com> 0.99.43-2mdv2010.1 + Revision: 507479 - rebuild * Thu Feb 18 2010 Funda Wang <fwang@mandriva.org> 0.99.43-1mdv2010.1 + Revision: 507368 - update to new version 0.99.43 * Thu Jan 28 2010 Frederik Himpe <fhimpe@mandriva.org> 0.99.42-1mdv2010.1 + Revision: 497853 - update to new version 0.99.42 * Wed Jan 27 2010 Funda Wang <fwang@mandriva.org> 0.99.41-1mdv2010.1 + Revision: 497174 - new version 0.99.41 * Tue Dec 29 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.39-1mdv2010.1 + Revision: 483297 - Update to new version 0.99.39 * Thu Dec 24 2009 Funda Wang <fwang@mandriva.org> 0.99.38-1mdv2010.1 + Revision: 482038 - new version 0.99.38 * Thu Dec 17 2009 Funda Wang <fwang@mandriva.org> 0.99.37-1mdv2010.1 + Revision: 479620 - new verison 0.99.37 * Sun Dec 13 2009 Funda Wang <fwang@mandriva.org> 0.99.35-1mdv2010.1 + Revision: 478132 - new version 0.99.35 * Sat Dec 12 2009 Funda Wang <fwang@mandriva.org> 0.99.34-1mdv2010.1 + Revision: 477741 - new version 0.99.34 * Thu Dec 10 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.32-1mdv2010.1 + Revision: 476113 - update to new version 0.99.32 * Thu Dec 03 2009 Funda Wang <fwang@mandriva.org> 0.99.31-1mdv2010.1 + Revision: 472870 - new version 0.99.31 * Mon Nov 30 2009 Funda Wang <fwang@mandriva.org> 0.99.30-1mdv2010.1 + Revision: 471782 - new version 0.99.30 - add ifarg * Sun Nov 29 2009 Funda Wang <fwang@mandriva.org> 0.99.29-2mdv2010.1 + Revision: 471453 - fcgi has been merged in cgi since php 5.3.1 (>= 2010) - use fastcgi support * Fri Nov 20 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.29-1mdv2010.1 + Revision: 467674 - update to new version 0.99.29 * Tue Nov 17 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.28-1mdv2010.1 + Revision: 467024 - update to new version 0.99.28 * Fri Nov 06 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.27-1mdv2010.1 + Revision: 462038 - update to new version 0.99.27 * Tue Sep 01 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.24-1mdv2010.0 + Revision: 423675 - update to new version 0.99.24 * Wed Aug 05 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.22-1mdv2010.0 + Revision: 410298 - update to new version 0.99.22 * Wed Jul 01 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.20-1mdv2010.0 + Revision: 391357 - update to new version 0.99.20 * Thu Jun 25 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.19-1mdv2010.0 + Revision: 389196 - update to new version 0.99.19 * Mon Jun 22 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.18-1mdv2010.0 + Revision: 388053 - update to new version 0.99.18 * Sun Jun 14 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.17-1mdv2010.0 + Revision: 385846 - update to new version 0.99.17 * Wed Jun 10 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.16-1mdv2010.0 + Revision: 384902 - update to new version 0.99.16 * Wed May 13 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.15-1mdv2010.0 + Revision: 375515 - Update to new version 0.99.15 * Wed May 06 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.14-1mdv2010.0 + Revision: 372658 - Update to new version 0.99.14 - Fix source URL * Fri May 01 2009 Funda Wang <fwang@mandriva.org> 0.99.13-1mdv2010.0 + Revision: 369395 - New version 0.99.13 * Fri May 01 2009 Funda Wang <fwang@mandriva.org> 0.99.11-1mdv2010.0 + Revision: 369353 - New version 0.99.11 * Mon Mar 30 2009 Funda Wang <fwang@mandriva.org> 0.99.4-2mdv2009.1 + Revision: 362425 - fix initscript typo * Fri Mar 13 2009 Frederik Himpe <fhimpe@mandriva.org> 0.99.4-1mdv2009.1 + Revision: 354689 - Update to new version 0.99.4 - Use %%serverbuild macro * Tue Jan 27 2009 Funda Wang <fwang@mandriva.org> 0.98.1-1mdv2009.1 + Revision: 334167 - new version 0.98.1 * Sat Jan 24 2009 Funda Wang <fwang@mandriva.org> 0.98.0-1mdv2009.1 + Revision: 333183 - 0.98.0 - New version 0.11.5 - there is no server subpackage - add init and logrotate - add manpages - add cget - import cherokee