]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd.spec
- rel 3
[packages/lighttpd.git] / lighttpd.spec
CommitLineData
8c865192 1# TODO:
ab4344e3 2# - pl for -mod_magnet
0ab57655 3# - test ldap and mysql (failed at this time)
fcae54a7 4# - mysql issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=76866
9c336869 5# - fam over gamin is possible, just configure doesn't check other than gamin
ffe2fc3c 6# - feature stat-cache-fam (doesn't work)
5febf716
ER
7# - lighttpd writes early startup messages to stderr, and if started from
8# rc-scripts the stderr is closed which causes lighttpd to abort():
9# 2006-07-20 21:05:52: (server.c.1233) WARNING: unknown config-key: url.rewrite-final (ignored)
05f8c491 10#
79404238
ER
11# NOTES:
12# - fcgi-devel is only used for the test-scripts
13# - disable largefile, if you have 2.4 kernel to get sendfile() support, and don't need > 2GB file requests,
14# see http://article.gmane.org/gmane.comp.web.lighttpd:722
15#
4f968063 16# Conditional build for lighttpd:
8d377a51 17%bcond_without xattr # support of extended attributes
18%bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel)
19%bcond_without largefile # largefile support (see notes above)
20%bcond_without ssl # ssl support
5febf716 21%bcond_without mysql # mysql support in mod_mysql_vhost
8d377a51 22%bcond_with ldap # ldap support in mod_auth
33ce4700 23%bcond_with lua # LUA support in mod_cml (needs LUA >= 5.1)
8d377a51 24%bcond_with memcache # memcached support in mod_cml / mod_trigger_b4_dl
2a732f8a 25%bcond_with gamin # gamin for reducing number of stat() calls.
8d377a51 26 # NOTE: must be enabled in config: server.stat-cache-engine = "fam"
27%bcond_with gdbm # gdbm in mod_trigger_b4_dl
28%bcond_with webdav_props # properties in mod_webdav (includes extra sqlite3/libxml deps)
29%bcond_with valgrind # compile code with valgrind support.
5febf716 30%bcond_with deflate # build deflate module (needs patch update with current svn)
79404238 31
5febf716
ER
32# SVN snapshot
33#define _svn 1277
21d3dba8 34# Prerelease
47abd4ea 35#define _snap r1332
2abd0792 36
de2a26f2 37%define _rel 3
027853cc 38Summary: Fast and light HTTP server
39Summary(pl): Szybki i lekki serwer HTTP
bee4f74e 40Name: lighttpd
5febf716
ER
41Version: 1.4.12
42Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)}%{?_svn:.%{_svn}}
4241e769 43License: BSD
0296e68a 44Group: Networking/Daemons
47abd4ea
ER
45Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.gz
46# Source0-md5: 8f6756452138f5da384251f849b329f2
bee4f74e 47Source1: %{name}.init
2f7162ab
AM
48Source2: %{name}.conf
49Source3: %{name}.user
607835c0 50Source4: %{name}.logrotate
c54ca3d2 51Source5: %{name}.sysconfig
87c01276 52Source6: %{name}-mime.types.sh
9647a089
ER
53Source7: http://www.lighttpd.net/favicon.ico
54# Source7-md5: a358994becabd4060393a5454bde505d
55Source8: http://www.lighttpd.net/light_button.png
56# Source8-md5: 02330e2313fadc29144edfd6000879f8
57Source9: http://www.lighttpd.net/light_logo.png
58# Source9-md5: ac20784510e420d5cbe5fc1cdb53d7a7
c4128c50
ER
59Source10: http://gdl.hopto.org/~spider/pldstats/gfx/pld1.png
60# Source10-md5: 486ecec3f6f4fe7f9bf7cee757b864f4
66f5ed22 61Source11: %{name}-pld.html
ac4cc36e 62Source12: %{name}.monitrc
5febf716
ER
63Source100: %{name}-mod_access.conf
64Source101: %{name}-mod_accesslog.conf
65Source102: %{name}-mod_alias.conf
66Source103: %{name}-mod_auth.conf
67Source104: %{name}-mod_cgi.conf
68Source105: %{name}-mod_cml.conf
69Source106: %{name}-mod_compress.conf
70Source107: %{name}-mod_deflate.conf
71Source108: %{name}-mod_dirlisting.conf
72Source109: %{name}-mod_evasive.conf
73Source110: %{name}-mod_evhost.conf
74Source111: %{name}-mod_expire.conf
75Source112: %{name}-mod_fastcgi.conf
76Source113: %{name}-mod_flv_streaming.conf
77Source114: %{name}-mod_indexfile.conf
78Source115: %{name}-mod_proxy.conf
79Source116: %{name}-mod_redirect.conf
80Source117: %{name}-mod_rewrite.conf
81Source118: %{name}-mod_rrdtool.conf
82Source119: %{name}-mod_scgi.conf
83Source120: %{name}-mod_secdownload.conf
84Source121: %{name}-mod_setenv.conf
85Source122: %{name}-mod_simple_vhost.conf
86Source123: %{name}-mod_ssi.conf
87Source124: %{name}-mod_staticfile.conf
88Source125: %{name}-mod_status.conf
89Source126: %{name}-mod_trigger_b4_dl.conf
90Source127: %{name}-mod_userdir.conf
91Source128: %{name}-mod_usertrack.conf
92Source129: %{name}-mod_webdav.conf
93Source130: %{name}-php-spawned.conf
94Source131: %{name}-php-external.conf
95Source132: %{name}-ssl.conf
0f9dfecb
ER
96Source133: %{name}-mod_mysql_vhost.conf
97Source134: %{name}-mod_magnet.conf
13e3ef3b 98#Patch100: %{name}-branch.diff
5ef9311f 99Patch0: %{name}-mod_deflate.patch
13e3ef3b 100Patch1: %{name}-use_bin_sh.patch
507f6bc1 101Patch2: %{name}-initgroups.patch
33ce4700
ER
102# http://trac.lighttpd.net/trac/ticket/444
103Patch3: %{name}-apr1.patch
5febf716 104Patch4: %{name}-mod_evasive-status_code.patch
70373b58 105URL: http://www.lighttpd.net/
cc769ac6 106%{?with_xattr:BuildRequires: attr-devel}
1a75d3e1
JB
107BuildRequires: autoconf
108BuildRequires: automake
109BuildRequires: bzip2-devel
9c336869 110%{?with_gamin:BuildRequires: gamin-devel}
6ec064d6
KK
111%{?with_gdbm:BuildRequires: gdbm-devel}
112%{?with_memcache:BuildRequires: libmemcache-devel}
1a75d3e1 113BuildRequires: libtool
5febf716 114BuildRequires: libuuid-devel
6ec064d6 115%{?with_webdav_props:BuildRequires: libxml2-devel}
33ce4700 116%{?with_lua:BuildRequires: lua51-devel >= 5.1}
6ec064d6 117BuildRequires: mailcap >= 2.1.14-4.4
cc769ac6 118%{?with_mysql:BuildRequires: mysql-devel}
6ec064d6 119%{?with_ldap:BuildRequires: openldap-devel}
49163762 120%{?with_ssl:BuildRequires: openssl-devel}
1a75d3e1 121BuildRequires: pcre-devel
6ec064d6 122BuildRequires: pkgconfig
2a732f8a 123BuildRequires: rpmbuild(macros) >= 1.268
66f5ed22 124%{?with_webdav_props:BuildRequires: sqlite3-devel}
83ca4b2b 125%{?with_valgrind:BuildRequires: valgrind}
cc769ac6 126BuildRequires: zlib-devel
66f5ed22
ER
127Requires(post,preun): /sbin/chkconfig
128Requires(postun): /usr/sbin/groupdel
129Requires(postun): /usr/sbin/userdel
bee4f74e
AM
130Requires(pre): /bin/id
131Requires(pre): /usr/bin/getgid
5febf716 132Requires(pre): /usr/lib/rpm/user_group.sh
bee4f74e
AM
133Requires(pre): /usr/sbin/groupadd
134Requires(pre): /usr/sbin/useradd
28537382 135Requires(pre): /usr/sbin/usermod
5febf716
ER
136Requires: %{name}-mod_dirlisting
137Requires: %{name}-mod_indexfile
138Requires: %{name}-mod_staticfile
66f5ed22 139Requires: rc-scripts
6230924e 140Provides: group(http)
e68efba2 141Provides: group(lighttpd)
e68efba2 142Provides: user(lighttpd)
1a75d3e1 143Provides: webserver
0296e68a
ER
144# for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
145Conflicts: rpm < 4.4.2-0.2
bee4f74e
AM
146BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
147
148%define _libdir %{_prefix}/%{_lib}/%{name}
8d734bed 149%define _lighttpddir /home/services/%{name}
bee4f74e
AM
150%define _sysconfdir /etc/%{name}
151
152%description
f655b1fd 153lighttpd is a secure, fast, compliant and very flexible web-server
ebd2f6ff
ER
154which has been optimized for high-performance environments. It has a
155very low memory footprint compared to other webservers and takes care
156of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
bee4f74e
AM
157Output-Compression, URL-Rewriting and many more) make lighttpd the
158perfect webserver-software for every server that is suffering load
159problems.
160
f655b1fd
MC
161%description -l pl
162lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym
1a75d3e1 163