root/tags/release-1.3.13/lighttpd.spec.in

Revision 30, 2.0 kB (checked in by jan, 4 years ago)

moved everything below trunk/ and added branches/ and tags/

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
21
22%prep
23
24%setup -q
25
26%build
27rm -rf %{buildroot}
28%configure \
29    %{?_with_mysql:       --with-mysql} \
30    %{?_with_ssl:         --with-openssl}
31make
32
33%install
34
35%makeinstall
36
37mkdir -p %{buildroot}%{_sysconfdir}/{init.d,sysconfig}
38if test -f /etc/redhat-release -o -f /etc/fedora-release; then
39  install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd
40else
41  install -m 755 doc/rc.lighttpd %{buildroot}%{_sysconfdir}/init.d/lighttpd
42fi
43install -m 644 doc/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd
44
45%clean
46rm -rf %{buildroot}
47
48%post
49
50if test "$1" = "0"; then
51  # real install, not upgrade
52  /sbin/chkconfig --add lighttpd
53fi
54
55%preun
56if test "$1" = "0"; then
57  # real uninstall, not upgrade
58  %{_sysconfdir}/init.d/lighttpd stop
59  /sbin/chkconfig --del lighttpd
60fi
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
Note: See TracBrowser for help on using the browser.