root/tags/lighttpd-1.4.19/lighttpd.spec.in

Revision 2019, 2.1 kB (checked in by glen, 10 months ago)

- merge from trunk

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