root/trunk/lighttpd.spec.in

Revision 2018, 2.1 kB (checked in by glen, 8 months ago)

- cosmetics, update URL

  • Property svn:eol-style set to native
Line 
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://www.lighttpd.net/
10 Requires: pcre >= 3.1 zlib
11 BuildRequires: libtool zlib-devel
12 BuildRoot: %{_tmppath}/%{name}-root
13
14 %description
15 lighttpd is intented to be a frontend for ad-servers which have to deliver
16 small files concurrently to many connections.
17
18 Available rpmbuild rebuild options:
19 --with: ssl mysql lua memcache
20
21 %prep
22 %setup -q
23
24 %build
25 rm -rf %{buildroot}
26 %configure \
27     %{?_with_mysql:       --with-mysql} \
28     %{?_with_lua:         --with-lua} \
29     %{?_with_memcache:    --with-memcache} \
30     %{?_with_ssl:         --with-openssl}
31 make
32
33 %install
34 %makeinstall
35
36 mkdir -p %{buildroot}%{_sysconfdir}/{init.d,sysconfig}
37 if [ -f /etc/redhat-release -o -f /etc/fedora-release ]; then
38         install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd
39 else
40         install -m 755 doc/rc.lighttpd %{buildroot}%{_sysconfdir}/init.d/lighttpd
41 fi
42 install -m 644 doc/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd
43
44 %clean
45 rm -rf %{buildroot}
46
47 %post
48 ## read http://www.fedora.us/docs/spec.html next time :)
49 if [ "$1" = "1" ]; then
50         # real install, not upgrade
51         /sbin/chkconfig --add lighttpd
52 fi
53
54 %preun
55 if [ "$1" = "0"]; then
56         # real uninstall, not upgrade
57         %{_sysconfdir}/init.d/lighttpd stop
58         /sbin/chkconfig --del lighttpd
59 fi
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.