A new user interface for you! Read more...

File cherokee.spec of Package Cherokee

# norootforbuild
# redefine makeinstall to get a sane version.
%define        makeinstall make install DESTDIR="%{buildroot}"
%define        home /var/lib/%{name}
#
Name:          cherokee
Version:       0.6.0b700
Release:       1
Vendor:        Alvaro Lopez Ortega <alvaro@sun.com>
Packager:      Manuel Arostegui Ramirez <manuel@todo-linux.com>
#
Group:         Productivity/Networking/Web/Servers
License:       GPL
#
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildRequires: openssl-devel pam-devel pcre-devel
PreReq:        /usr/sbin/groupadd /usr/sbin/useradd
#
URL:           http://www.cherokee-project.com/
Source:        http://www.cherokee-project.com/download/0.6/0.6.0/cherokee-0.6.0b700.tar.gz
Source1:        http://www.cherokee-project.com/download/0.5/%{version}/%{name}-%{version}.tar.gz
Source2:       cherokee.init
Patch:         cherokee-0.5.4_default_config.patch
#
Summary:       Flexible and Fast Webserver
%description
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package contains the server and essential handlers.

Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%package     -n libcherokee-base
Group:         Productivity/Networking/Web/Servers
#
Summary:       Base library of cherokee
%description -n libcherokee-base
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-base.


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%package     -n libcherokee-client
Group:         Productivity/Networking/Web/Servers
#
Summary:       client library of cherokee
%description -n libcherokee-client
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-client.


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%package     -n libcherokee-config
Group:         Productivity/Networking/Web/Servers
#
Summary:       Config library of cherokee
%description -n libcherokee-config
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-config.


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%package     -n libcherokee-server
Group:         Productivity/Networking/Web/Servers
#
Summary:       Server library of cherokee
%description -n libcherokee-server
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the runtime library for libcherokee-server.


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%package devel
Requires:      %{name} = %{version}
Requires:      libcherokee-base = %{version}
Requires:      libcherokee-client = %{version}
Requires:      libcherokee-config = %{version}
Requires:      libcherokee-server = %{version}
Group:         Productivity/Networking/Web/Servers
Summary:       Development files of cherokee
%description devel
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

This package holds the development files for cherokee.


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>

%package cget
Group:         Productivity/Networking/Web/Servers
#
Summary:       Simple download utility based on the cherokee client library.
%description cget
CGet is a simple download utility based on the cherokee client library.


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%package example-pages
Requires:      %{name} = %{version}
Group:         Productivity/Networking/Web/Servers
Summary:       Example pages for cherokee
%description example-pages
Cherokee is a very fast, flexible and easy to configure Web Server. It supports
the widespread technologies nowadays: FastCGI, SCGI, PHP, CGI, TLS and SSL
encrypted connections, Virtual hosts, Authentication, on the fly encoding,
Apache compatible log files, and much more.

Example pages for cherokee


Authors:
--------
    Alvaro Lopez Ortega <alvaro@alobbs.com>


%debug_package
%prep
%setup
#%patch

%build
%if 0%{?suse_version} > 1000
export CFLAGS="%{optflags} -fstack-protector"
%endif
%if 0%{?fedora_version} > 4
export CFLAGS="%{optflags} -fstack-protector"
%endif
%if 0%{?mandriva_version} > 2006
export CFLAGS="%{optflags} -fstack-protector"
%endif
%configure \
    --with-wwwroot=/srv/www/htdocs/ \
    --enable-tls=openssl --enable-pthreads --enable-trace --disable-static \
    --enable-os-string="openSUSE Build Service"
%{__make}

%install
%makeinstall 
%{__install} -D -m 0644 pam.d_cherokee %{buildroot}%{_sysconfdir}/pam.d/%{name}
%{__install} -D -m 0755 %{S:1}   %{buildroot}/etc/init.d/%{name}
%{__ln_s} -f /etc/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
%{__install} -d %{buildroot}/var/{log,lib}/%{name}/

%clean
%{__rm} -rf %{buildroot}

%pre
/usr/sbin/groupadd -r %{name} &>/dev/null ||:
/usr/sbin/useradd  -g %{name} -s /bin/false -r -c "%{name} web server" -d %{home} %{name} &>/dev/null ||:

%post   -n libcherokee-base   -p /sbin/ldconfig
%postun -n libcherokee-base   -p /sbin/ldconfig

%post   -n libcherokee-client -p /sbin/ldconfig
%postun -n libcherokee-client -p /sbin/ldconfig

%post   -n libcherokee-config -p /sbin/ldconfig
%postun -n libcherokee-config -p /sbin/ldconfig

%post   -n libcherokee-server -p /sbin/ldconfig
%postun -n libcherokee-server -p /sbin/ldconfig

%files
   /etc/cherokee/cherokee.conf.perf_sample
   /etc/cherokee/mods-available/icons
   /etc/cherokee/mods-enabled/icons
   /srv/www/htdocs/images/cherokee-logo.png
   /srv/www/htdocs/images/default-bg.png
   /srv/www/htdocs/images/powered_by_cherokee.png
   /srv/www/htdocs/index.html
   /usr/bin/cget
   /usr/bin/cherokee-config
   /usr/include/cherokee/admin_client.h
   /usr/include/cherokee/buffer.h
   /usr/include/cherokee/cherokee-config.h
   /usr/include/cherokee/cherokee.h
   /usr/include/cherokee/common.h
   /usr/include/cherokee/connection.h
   /usr/include/cherokee/connection_info.h
   /usr/include/cherokee/downloader.h
   /usr/include/cherokee/encoder.h
   /usr/include/cherokee/fdpoll.h
   /usr/include/cherokee/handler.h
   /usr/include/cherokee/header.h
   /usr/include/cherokee/http.h
   /usr/include/cherokee/list.h
   /usr/include/cherokee/logger.h
   /usr/include/cherokee/macros.h
   /usr/include/cherokee/mime.h
   /usr/include/cherokee/mime_entry.h
   /usr/include/cherokee/module.h
   /usr/include/cherokee/nonce.h
   /usr/include/cherokee/plugin.h
   /usr/include/cherokee/plugin_loader.h
   /usr/include/cherokee/resolv_cache.h
   /usr/include/cherokee/server.h
   /usr/include/cherokee/table.h
   /usr/include/cherokee/url.h
   /usr/include/cherokee/util.h
   /usr/include/cherokee/version.h
   /usr/lib/libcherokee-base.la
   /usr/lib/libcherokee-base.so
   /usr/lib/libcherokee-base.so.0
   /usr/lib/libcherokee-base.so.0.0.0
   /usr/lib/libcherokee-client.la
   /usr/lib/libcherokee-client.so
   /usr/lib/libcherokee-client.so.0
   /usr/lib/libcherokee-client.so.0.0.0
   /usr/lib/libcherokee-config.la
   /usr/lib/libcherokee-config.so
   /usr/lib/libcherokee-config.so.0
   /usr/lib/libcherokee-config.so.0.0.0
   /usr/lib/libcherokee-server.la
   /usr/lib/libcherokee-server.so
   /usr/lib/libcherokee-server.so.0
   /usr/lib/libcherokee-server.so.0.0.0
   /usr/lib/pkgconfig/cherokee.pc
   /usr/share/aclocal/cherokee.m4
   /usr/share/man/man1/cget.1.gz
   /usr/share/man/man1/cherokee-config.1.gz
%defattr(-,root,root,-)
%config(noreplace) /etc/init.d/%{name}
%{_sbindir}/rc%{name}
%{_bindir}/cherokee-panic
%{_bindir}/cherokee_logrotate
%{_sbindir}/cherokee
%{_sbindir}/cherokee-admin
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/cherokee.1*
%{_mandir}/man1/cherokee_logrotate.1*
%{_sysconfdir}/pam.d/%{name}
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/mods-available
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/mods-enabled
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/sites-available
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/sites-enabled
%dir %attr(750,root,%{name}) %{_sysconfdir}/%{name}/ssl
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/cherokee.conf
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/mime.compression.types
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/mime.types
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/%{name}/mods-available/ssl
%config(noreplace) %attr(640,root,%{name)) %{_sysconfdir}/%{name}/cherokee.conf.perf_sample
%config(noreplace) %attr(640,root,%{name)) %{_sysconfdir}/%{name}/mods-available/icons
%config(noreplace) %attr(640,root,%{name)) %{_sysconfdir}/%{name}/mods-enabled/icons
# logs are written as root. no need to give perms to the cherokee user.
%dir /var/log/%{name}/
%dir %attr(-,%{name},%{name}) /var/lib/%{name}/

%files cget
%defattr(-,root,root,-)
%{_bindir}/cget
%{_mandir}/man1/cget.1*

%files -n libcherokee-base
%defattr(-,root,root,-)
%{_libdir}/lib%{name}-base.so.*

%files -n libcherokee-client
%defattr(-,root,root,-)
%{_libdir}/lib%{name}-client.so.*

%files -n libcherokee-server
%defattr(-,root,root,-)
%{_libdir}/lib%{name}-server.so.*

%files -n libcherokee-config
%defattr(-,root,root,-)
%{_libdir}/libcherokee-config.so.0
%{_libdir}/libcherokee-config.so.0.0.0

%files example-pages
%defattr(-,root,root,-)
%dir /srv/www/htdocs/
%dir /srv/www/htdocs/images/
%config(noreplace) /srv/www/htdocs/images/cherokee-logo.png
%config(noreplace) /srv/www/htdocs/images/default-bg.png
%config(noreplace) /srv/www/htdocs/images/powered_by_cherokee.png
%config(noreplace) /srv/www/htdocs/index.html

%files devel
%defattr(-,root,root,-)
%{_mandir}/man1/cherokee-config.1*
%{_bindir}/cherokee-config
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4
%{_libdir}/lib%{name}-*.so
%{_libdir}/lib%{name}-*.la

%changelog