]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - test ldap and mysql (failed at this time) | |
3 | # - mysql issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=76866 | |
4 | # - fam over gamin is possible, just configure doesn't check other than gamin | |
5 | # - feature stat-cache-fam (doesn't work) | |
6 | # | |
7 | # NOTES: | |
8 | # - fcgi-devel is only used for the test-scripts | |
9 | # - disable largefile, if you have 2.4 kernel to get sendfile() support, and don't need > 2GB file requests, | |
10 | # see http://article.gmane.org/gmane.comp.web.lighttpd:722 | |
11 | # - please make subpackages of modules that depend other modules than: | |
12 | # - pcre (core binary needs it too) | |
13 | # - openssl (core binary needs it too) | |
14 | # | |
15 | # Conditional build for lighttpd: | |
16 | %bcond_without xattr # support of extended attributes | |
17 | %bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel) | |
18 | %bcond_without largefile # largefile support (see notes above) | |
19 | %bcond_without ssl # ssl support | |
20 | %bcond_with mysql # mysql support in mod_mysql_vhost | |
21 | %bcond_with ldap # ldap support in mod_auth | |
22 | %bcond_without lua # LUA support in mod_cml | |
23 | %bcond_with memcache # memcached support in mod_cml / mod_trigger_b4_dl | |
24 | %bcond_with gamin # gamin for reducing number of stat() calls. | |
25 | # NOTE: must be enabled in config: server.stat-cache-engine = "fam" | |
26 | %bcond_with gdbm # gdbm in mod_trigger_b4_dl | |
27 | %bcond_with webdav_props # properties in mod_webdav (includes extra sqlite3/libxml deps) | |
28 | %bcond_with valgrind # compile code with valgrind support. | |
29 | ||
30 | # Prerelease snapshot: DATE-TIME | |
31 | %define _snap 20060104-1523 | |
32 | ||
33 | %if 0%{?_snap} | |
34 | %define _source http://www.lighttpd.net/download/%{name}-%{version}-%{_snap}.tar.gz | |
35 | %else | |
36 | %define _source http://www.lighttpd.net/download/%{name}-%{version}.tar.gz | |
37 | %endif | |
38 | ||
39 | %define _rel 0.12 | |
40 | ||
41 | Summary: Fast and light HTTP server | |
42 | Summary(pl): Szybki i lekki serwer HTTP | |
43 | Name: lighttpd | |
44 | Version: 1.4.9 | |
45 | Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)} | |
46 | Group: Networking/Daemons | |
47 | License: BSD | |
48 | Source0: %{_source} | |
49 | # Source0-md5: 67b9580b79c058b7a854964ee6fa0294 | |
50 | Source1: %{name}.init | |
51 | Source2: %{name}.conf | |
52 | Source3: %{name}.user | |
53 | Source4: %{name}.logrotate | |
54 | Source5: %{name}.sysconfig | |
55 | Source6: %{name}-mime.types.sh | |
56 | Source7: http://www.lighttpd.net/favicon.ico | |
57 | # Source7-md5: a358994becabd4060393a5454bde505d | |
58 | Source8: http://www.lighttpd.net/light_button.png | |
59 | # Source8-md5: 02330e2313fadc29144edfd6000879f8 | |
60 | Source9: http://www.lighttpd.net/light_logo.png | |
61 | # Source9-md5: ac20784510e420d5cbe5fc1cdb53d7a7 | |
62 | Source10: http://gdl.hopto.org/~spider/pldstats/gfx/pld1.png | |
63 | # Source10-md5: 486ecec3f6f4fe7f9bf7cee757b864f4 | |
64 | Source11: %{name}-pld.html | |
65 | Patch0: %{name}-proxy-fix-redirects.patch | |
66 | URL: http://www.lighttpd.net/ | |
67 | %{?with_xattr:BuildRequires: attr-devel} | |
68 | BuildRequires: autoconf | |
69 | BuildRequires: automake | |
70 | BuildRequires: bzip2-devel | |
71 | %{?with_gamin:BuildRequires: gamin-devel} | |
72 | %{?with_gdbm:BuildRequires: gdbm-devel} | |
73 | %{?with_memcache:BuildRequires: libmemcache-devel} | |
74 | BuildRequires: libtool | |
75 | %{?with_webdav_props:BuildRequires: libxml2-devel} | |
76 | %{?with_lua:BuildRequires: lua50-devel >= 5.0.2-5.1} | |
77 | BuildRequires: mailcap >= 2.1.14-4.4 | |
78 | %{?with_mysql:BuildRequires: mysql-devel} | |
79 | %{?with_ldap:BuildRequires: openldap-devel} | |
80 | %{?with_ssl:BuildRequires: openssl-devel} | |
81 | BuildRequires: pcre-devel | |
82 | BuildRequires: pkgconfig | |
83 | BuildRequires: rpmbuild(macros) >= 1.268 | |
84 | %{?with_webdav_props:BuildRequires: sqlite3-devel} | |
85 | %{?with_valgrind:BuildRequires: valgrind} | |
86 | BuildRequires: zlib-devel | |
87 | Requires(post,preun): /sbin/chkconfig | |
88 | Requires(postun): /usr/sbin/groupdel | |
89 | Requires(postun): /usr/sbin/userdel | |
90 | Requires(pre): /bin/id | |
91 | Requires(pre): /usr/bin/getgid | |
92 | Requires(pre): /usr/sbin/groupadd | |
93 | Requires(pre): /usr/sbin/useradd | |
94 | Requires(pre): sh-utils | |
95 | Requires: rc-scripts | |
96 | Provides: group(http) | |
97 | Provides: group(lighttpd) | |
98 | Provides: user(lighttpd) | |
99 | Provides: webserver | |
100 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
101 | ||
102 | %define _libdir %{_prefix}/%{_lib}/%{name} | |
103 | %define _lighttpddir /home/services/%{name} | |
104 | %define _sysconfdir /etc/%{name} | |
105 | ||
106 | %description | |
107 | lighttpd is a secure, fast, compliant and very flexible web-server | |
108 | which has been optimized for high-performance environments. It has a | |
109 | very low memory footprint compared to other webservers and takes care | |
110 | of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, | |
111 | Output-Compression, URL-Rewriting and many more) make lighttpd the | |
112 | perfect webserver-software for every server that is suffering load | |
113 | problems. | |
114 | ||
115 | %description -l pl | |
116 | lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym | |
117 |