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

Revision 499, 2.1 kB (checked in by jan, 3 years ago)

push options to configure script

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