]>
Commit | Line | Data |
---|---|---|
8c865192 | 1 | # TODO: |
0ab57655 | 2 | # - test ldap and mysql (failed at this time) |
fcae54a7 | 3 | # - mysql issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=76866 |
fda87005 | 4 | # - gdbm for mod_trigger_b4_dl http://www.lighttpd.net/documentation/trigger_b4_dl.html |
05f8c491 | 5 | # |
4f968063 | 6 | # Conditional build for lighttpd: |
ce8f06ab | 7 | %bcond_without xattr # without support of extended attributes |
1da5e2ed | 8 | %bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel) |
dae5a344 ER |
9 | # use it if you have 2.4 kernel to get sendfile() support, |
10 | # and don't need > 2GB file requests, | |
11 | # see http://article.gmane.org/gmane.comp.web.lighttpd:722 | |
1da5e2ed | 12 | %bcond_without largefile # without largefile support |
fda87005 ER |
13 | %bcond_without ssl # disable ssl support |
14 | %bcond_without mysql # without mysql | |
ce8f06ab | 15 | %bcond_with ldap # with ldap |
fda87005 ER |
16 | %bcond_with lua # enable LUA support in mod_cml |
17 | %bcond_with memcache # enable memcached support in mod_cml / mod_trigger_b4_dl | |
f0f1c74c | 18 | %bcond_with valgrind # compile code with valgrind support. |
dae5a344 | 19 | %bcond_with dirhide # with 'hide from dirlisting' hack |
d20e182e | 20 | # |
2abd0792 | 21 | # Prerelease snapshot: DATE-TIME |
c1b34484 | 22 | ##define _snap 20050116-1743 |
2abd0792 ER |
23 | |
24 | %if 0%{?_snap} | |
25 | %define _source http://www.lighttpd.net/download/%{name}-%{version}-%{_snap}.tar.gz | |
26 | %else | |
27 | %define _source http://www.lighttpd.net/download/%{name}-%{version}.tar.gz | |
28 | %endif | |
29 | ||
fda87005 | 30 | %define _rel 1.12 |
2abd0792 | 31 | |
027853cc | 32 | Summary: Fast and light HTTP server |
33 | Summary(pl): Szybki i lekki serwer HTTP | |
bee4f74e | 34 | Name: lighttpd |
58cbbc7f | 35 | Version: 1.3.15 |
2abd0792 | 36 | Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)} |
bee4f74e | 37 | Group: Networking/Daemons |
4241e769 | 38 | License: BSD |
2abd0792 | 39 | Source0: %{_source} |
58cbbc7f | 40 | # Source0-md5: e605ade1071f25dec9001730ec753112 |
bee4f74e | 41 | Source1: %{name}.init |
2f7162ab AM |
42 | Source2: %{name}.conf |
43 | Source3: %{name}.user | |
607835c0 | 44 | Source4: %{name}.logrotate |
c54ca3d2 | 45 | Source5: %{name}.sysconfig |
e22eff1c | 46 | Patch0: http://minghetti.ch/blob/dirlist-hide.patch |
dae5a344 | 47 | Patch1: %{name}-fcgi-verbose.patch |
dd7b985c | 48 | Patch2: %{name}-ssl-redirect-fix.patch |
70373b58 | 49 | URL: http://www.lighttpd.net/ |
cc769ac6 | 50 | %{?with_xattr:BuildRequires: attr-devel} |
1a75d3e1 JB |
51 | BuildRequires: autoconf |
52 | BuildRequires: automake | |
53 | BuildRequires: bzip2-devel | |
54 | BuildRequires: libtool | |
cc769ac6 ER |
55 | %{?with_mysql:BuildRequires: mysql-devel} |
56 | %{?with_ldap:BuildRequires: openldap-devel} | |
49163762 | 57 | %{?with_ssl:BuildRequires: openssl-devel} |
fda87005 ER |
58 | %{?with_lua:BuildRequires: lua50-devel} |
59 | %{?with_memcache:BuildRequires: libmemcache-devel} | |
1a75d3e1 | 60 | BuildRequires: pcre-devel |
417e0665 | 61 | BuildRequires: rpmbuild(macros) >= 1.202 |
cc769ac6 ER |
62 | %{?debug:BuildRequires: valgrind} |
63 | BuildRequires: zlib-devel | |
bee4f74e AM |
64 | PreReq: rc-scripts |
65 | Requires(pre): sh-utils | |
66 | Requires(pre): /bin/id | |
67 | Requires(pre): /usr/bin/getgid | |
68 | Requires(pre): /usr/sbin/groupadd | |
69 | Requires(pre): /usr/sbin/useradd | |
70 | Requires(post,preun): /sbin/chkconfig | |
bee4f74e | 71 | Requires(postun): /usr/sbin/groupdel |
e68efba2 | 72 | Requires(postun): /usr/sbin/userdel |
73 | Provides: group(lighttpd) | |
1a75d3e1 | 74 | Provides: httpd |
e68efba2 | 75 | Provides: user(lighttpd) |
1a75d3e1 | 76 | Provides: webserver |
bee4f74e AM |
77 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
78 | ||
79 | %define _libdir %{_prefix}/%{_lib}/%{name} | |
8d734bed | 80 | %define _lighttpddir /home/services/%{name} |
bee4f74e AM |
81 | %define _sysconfdir /etc/%{name} |
82 | ||
83 | %description | |
f655b1fd | 84 | lighttpd is a secure, fast, compliant and very flexible web-server |
ebd2f6ff ER |
85 | which has been optimized for high-performance environments. It has a |
86 | very low memory footprint compared to other webservers and takes care | |
87 | of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, | |
bee4f74e AM |
88 | Output-Compression, URL-Rewriting and many more) make lighttpd the |
89 | perfect webserver-software for every server that is suffering load | |
90 | problems. | |
91 | ||
f655b1fd MC |
92 | %description -l pl |
93 | lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym | |
1a75d3e1 | 94 |