]>
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 |
9c336869 | 4 | # - fam over gamin is possible, just configure doesn't check other than gamin |
ffe2fc3c | 5 | # - feature stat-cache-fam (doesn't work) |
05f8c491 | 6 | # |
79404238 ER |
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 | |
3a4d459f | 11 | # - please make subpackages of modules that depend other modules than: |
0bbb5fa3 | 12 | # -- pcre (core binary needs it too) |
13 | # -- openssl (core binary needs it too) | |
79404238 | 14 | # |
4f968063 | 15 | # Conditional build for lighttpd: |
8d377a51 | 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 | |
2a732f8a | 22 | %bcond_without lua # LUA support in mod_cml |
8d377a51 | 23 | %bcond_with memcache # memcached support in mod_cml / mod_trigger_b4_dl |
2a732f8a | 24 | %bcond_with gamin # gamin for reducing number of stat() calls. |
8d377a51 | 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. | |
79404238 | 29 | |
2abd0792 | 30 | # Prerelease snapshot: DATE-TIME |
6e8945ec | 31 | #define _snap 20060104-1523 |
2abd0792 ER |
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 | ||
3af8ca93 | 39 | %define _rel 4 |
2abd0792 | 40 | |
027853cc | 41 | Summary: Fast and light HTTP server |
42 | Summary(pl): Szybki i lekki serwer HTTP | |
bee4f74e | 43 | Name: lighttpd |
2c24d201 | 44 | Version: 1.4.11 |
2abd0792 | 45 | Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)} |
4241e769 | 46 | License: BSD |
0296e68a | 47 | Group: Networking/Daemons |
2abd0792 | 48 | Source0: %{_source} |
2c24d201 | 49 | # Source0-md5: f55eebb9815c94a7de35906bb557ecd3 |
bee4f74e | 50 | Source1: %{name}.init |
2f7162ab AM |
51 | Source2: %{name}.conf |
52 | Source3: %{name}.user | |
607835c0 | 53 | Source4: %{name}.logrotate |
c54ca3d2 | 54 | Source5: %{name}.sysconfig |
87c01276 | 55 | Source6: %{name}-mime.types.sh |
9647a089 ER |
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 | |
c4128c50 ER |
62 | Source10: http://gdl.hopto.org/~spider/pldstats/gfx/pld1.png |
63 | # Source10-md5: 486ecec3f6f4fe7f9bf7cee757b864f4 | |
66f5ed22 | 64 | Source11: %{name}-pld.html |
5ef9311f | 65 | Patch0: %{name}-mod_deflate.patch |
507f6bc1 ER |
66 | Patch1: %{name}-use_bin_sh.patch |
67 | Patch2: %{name}-initgroups.patch | |
66d0d5d6 | 68 | Patch3: %{name}-mod_evasive-status_code.patch |
70373b58 | 69 | URL: http://www.lighttpd.net/ |
cc769ac6 | 70 | %{?with_xattr:BuildRequires: attr-devel} |
1a75d3e1 JB |
71 | BuildRequires: autoconf |
72 | BuildRequires: automake | |
73 | BuildRequires: bzip2-devel | |
9c336869 | 74 | %{?with_gamin:BuildRequires: gamin-devel} |
6ec064d6 KK |
75 | %{?with_gdbm:BuildRequires: gdbm-devel} |
76 | %{?with_memcache:BuildRequires: libmemcache-devel} | |
1a75d3e1 | 77 | BuildRequires: libtool |
6ec064d6 | 78 | %{?with_webdav_props:BuildRequires: libxml2-devel} |
6ec064d6 KK |
79 | %{?with_lua:BuildRequires: lua50-devel >= 5.0.2-5.1} |
80 | BuildRequires: mailcap >= 2.1.14-4.4 | |
cc769ac6 | 81 | %{?with_mysql:BuildRequires: mysql-devel} |
6ec064d6 | 82 | %{?with_ldap:BuildRequires: openldap-devel} |
49163762 | 83 | %{?with_ssl:BuildRequires: openssl-devel} |
1a75d3e1 | 84 | BuildRequires: pcre-devel |
6ec064d6 | 85 | BuildRequires: pkgconfig |
2a732f8a | 86 | BuildRequires: rpmbuild(macros) >= 1.268 |
66f5ed22 | 87 | %{?with_webdav_props:BuildRequires: sqlite3-devel} |
83ca4b2b | 88 | %{?with_valgrind:BuildRequires: valgrind} |
cc769ac6 | 89 | BuildRequires: zlib-devel |
66f5ed22 ER |
90 | Requires(post,preun): /sbin/chkconfig |
91 | Requires(postun): /usr/sbin/groupdel | |
92 | Requires(postun): /usr/sbin/userdel | |
28537382 | 93 | Requires(pre): /usr/lib/rpm/user_group.sh |
bee4f74e AM |
94 | Requires(pre): /bin/id |
95 | Requires(pre): /usr/bin/getgid | |
96 | Requires(pre): /usr/sbin/groupadd | |
97 | Requires(pre): /usr/sbin/useradd | |
28537382 | 98 | Requires(pre): /usr/sbin/usermod |
66f5ed22 | 99 | Requires: rc-scripts |
6230924e | 100 | Provides: group(http) |
e68efba2 | 101 | Provides: group(lighttpd) |
e68efba2 | 102 | Provides: user(lighttpd) |
1a75d3e1 | 103 | Provides: webserver |
0296e68a ER |
104 | # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed. |
105 | Conflicts: rpm < 4.4.2-0.2 | |
bee4f74e AM |
106 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
107 | ||
108 | %define _libdir %{_prefix}/%{_lib}/%{name} | |
8d734bed | 109 | %define _lighttpddir /home/services/%{name} |
bee4f74e AM |
110 | %define _sysconfdir /etc/%{name} |
111 | ||
112 | %description | |
f655b1fd | 113 | lighttpd is a secure, fast, compliant and very flexible web-server |
ebd2f6ff ER |
114 | which has been optimized for high-performance environments. It has a |
115 | very low memory footprint compared to other webservers and takes care | |
116 | of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, | |
bee4f74e AM |
117 | Output-Compression, URL-Rewriting and many more) make lighttpd the |
118 | perfect webserver-software for every server that is suffering load | |
119 | problems. | |
120 | ||
f655b1fd MC |
121 | %description -l pl |
122 | lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym | |
1a75d3e1 | 123 |