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