-# Conditional build:
-%bcond_without xattr # with support extended attributes
#
Summary: Fast and light http server
Summary(pl): Szybki i lekki serwer http
Group: Networking/Daemons
License: QPL
## do not remove next two lines because atomic revisions are common in lighttpd
-#%define _rel 20040829-1207
+#%define _rel
#Source0: http://jan.kneschke.de/projects/lighttpd/download/%{name}-%{version}-%{_rel}.tar.gz
Source0: http://jan.kneschke.de/projects/lighttpd/download/%{name}-%{version}.tar.gz
# Source0-md5: 0139b1ec4514089e9ca11dc3072529ab
Source2: %{name}.conf
Source3: %{name}.user
Source4: %{name}.logrotate
+Patch0: http://jan.kneschke.de/projects/lighttpd/download/lighttpd-1.2.7-cond.patch
+#Patch1: lighttpd-amd64-LINUX_SENDFILE-temporary.patch
URL: http://jan.kneschke.de/projects/lighttpd/
-BuildRequires: %{?with_xattr:attr-devel}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bzip2-devel
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
--enable-mod-chat \
--enable-mod-cache \
--enable-mod-localizer \
- %{?with_xattr:--with-attr} \
--with-openssl
%{__make}