Name: corehttp Version: 0.5.3.1 Release: 2%{?dist} Summary: Minimalist single-thread HTTP server Group: System Environment/Daemons License: GPLv3+ URL: http://corehttp.sourceforge.net/ Source0: http://downloads.sourceforge.net/corehttp/corehttp-0.5.3.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: corehttp-fix-make-install.patch Patch1: corehttp-config-file.patch Requires: php-cli perl %description A minimalist HTTP server using the single-process server concurrency model and non-blocking sockets for optimal memory usage and speed. It is not designed to be fleshed out with features; merely able to serve pages quickly and reliably. %prep %setup -q -n corehttp %patch0 -p0 %patch1 -p0 %build cd src CFLAGS="%{optflags}" make %{?_smp_mflags} %install rm -rf %{buildroot} mkdir %{buildroot} cd src make install DESTDIR=%{buildroot} cd .. install -D chttp.conf %{buildroot}%{_sysconfdir}/corehttp.conf install -D chttp-cgienabled-unstable.conf %{buildroot}%{_sysconfdir}/corehttp-cgiexample.conf mkdir -p %{buildroot}%{_datadir}/%{name}/www for file in www/*; do if [[ -d "$file" ]]; then mkdir -p %{buildroot}%{_datadir}/%{name}/$file/ install $file/* %{buildroot}%{_datadir}/%{name}/$file/ fi if [[ -f "$file" ]]; then install $file %{buildroot}%{_datadir}/%{name}/$file fi done %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc doc/readme.txt doc/gpl-3.0.txt %{_bindir}/corehttp %{_mandir}/man7/corehttp.7.gz %config(noreplace) %{_sysconfdir}/corehttp.conf %config(noreplace) %{_sysconfdir}/corehttp-cgiexample.conf %{_datadir}/%{name}/www/* %changelog * Sat Nov 24 2007 Konrad Meyer - 0.5.3.1-2 - Oops, should Require php-cli not php. * Fri Nov 23 2007 Konrad Meyer - 0.5.3.1-1 - Initial package.