| 1 | Summary: A fast webserver with minimal memory-footprint (lighttpd) |
|---|
| 2 | Name: lighttpd |
|---|
| 3 | Version: @VERSION@ |
|---|
| 4 | Release: 1 |
|---|
| 5 | Source: http://jan.kneschke.de/projects/lighttpd/download/lighttpd-%version.tar.gz |
|---|
| 6 | Packager: Jan Kneschke <jan@kneschke.de> |
|---|
| 7 | License: BSD |
|---|
| 8 | Group: Networking/Daemons |
|---|
| 9 | URL: http://jan.kneschke.de/projects/lighttpd/ |
|---|
| 10 | Requires: pcre >= 3.1 zlib |
|---|
| 11 | BuildPrereq: libtool zlib-devel |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-root |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | %description |
|---|
| 16 | lighttpd is intented to be a frontend for ad-servers which have to deliver |
|---|
| 17 | small files concurrently to many connections. |
|---|
| 18 | |
|---|
| 19 | Available rpmbuild rebuild options : |
|---|
| 20 | --with : ssl mysql |
|---|
| 21 | |
|---|
| 22 | %prep |
|---|
| 23 | |
|---|
| 24 | %setup -q |
|---|
| 25 | |
|---|
| 26 | %build |
|---|
| 27 | rm -rf %{buildroot} |
|---|
| 28 | %configure \ |
|---|
| 29 | %{?_with_mysql: --with-mysql} \ |
|---|
| 30 | %{?_with_ssl: --with-openssl} |
|---|
| 31 | make |
|---|
| 32 | |
|---|
| 33 | %install |
|---|
| 34 | |
|---|
| 35 | %makeinstall |
|---|
| 36 | |
|---|
| 37 | mkdir -p %{buildroot}%{_sysconfdir}/{init.d,sysconfig} |
|---|
| 38 | if test -f /etc/redhat-release -o -f /etc/fedora-release; then |
|---|
| 39 | install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd |
|---|
| 40 | else |
|---|
| 41 | install -m 755 doc/rc.lighttpd %{buildroot}%{_sysconfdir}/init.d/lighttpd |
|---|
| 42 | fi |
|---|
| 43 | install -m 644 doc/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd |
|---|
| 44 | |
|---|
| 45 | %clean |
|---|
| 46 | rm -rf %{buildroot} |
|---|
| 47 | |
|---|
| 48 | %post |
|---|
| 49 | |
|---|
| 50 | if test "$1" = "0"; then |
|---|
| 51 | # real install, not upgrade |
|---|
| 52 | /sbin/chkconfig --add lighttpd |
|---|
| 53 | fi |
|---|
| 54 | |
|---|
| 55 | %preun |
|---|
| 56 | if test "$1" = "0"; then |
|---|
| 57 | # real uninstall, not upgrade |
|---|
| 58 | %{_sysconfdir}/init.d/lighttpd stop |
|---|
| 59 | /sbin/chkconfig --del lighttpd |
|---|
| 60 | fi |
|---|
| 61 | |
|---|
| 62 | %files |
|---|
| 63 | %defattr(-,root,root) |
|---|
| 64 | %doc doc/lighttpd.conf doc/lighttpd.user README INSTALL ChangeLog COPYING AUTHORS |
|---|
| 65 | %doc doc/*.txt |
|---|
| 66 | %config(noreplace) %attr(0755,root,root) %{_sysconfdir}/init.d/lighttpd |
|---|
| 67 | %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/lighttpd |
|---|
| 68 | %{_mandir}/* |
|---|
| 69 | %{_libdir}/* |
|---|
| 70 | %{_sbindir}/* |
|---|
| 71 | %{_bindir}/* |
|---|
| 72 | |
|---|
| 73 | %changelog |
|---|
| 74 | * Thu Sep 30 2004 12:41 <jan@kneschke.de> 1.3.1 |
|---|
| 75 | - upgraded to 1.3.1 |
|---|
| 76 | |
|---|
| 77 | * Tue Jun 29 2004 17:26 <jan@kneschke.de> 1.2.3 |
|---|
| 78 | - rpmlint'ed the package |
|---|
| 79 | - added URL |
|---|
| 80 | - added (noreplace) to start-script |
|---|
| 81 | - change group to Networking/Daemon (like apache) |
|---|
| 82 | |
|---|
| 83 | * Sun Feb 23 2003 15:04 <jan@kneschke.de> |
|---|
| 84 | - initial version |
|---|