#
+# Conditional build for freebsd:
+%bcond_without xattr # without support of extended attributes
+#
Summary: Fast and light http server
Summary(pl): Szybki i lekki serwer http
Name: lighttpd
Group: Networking/Daemons
License: QPL
## do not remove next two lines because atomic revisions are common in lighttpd
-#%define _rel
+#%define _rel 20080401-0000
#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
BuildRequires: openssl-devel
BuildRequires: pcre-devel
BuildRequires: zlib-devel
+%if %{with xattr}
+BuildRequires: attr-devel
+%endif
PreReq: rc-scripts
Requires(pre): sh-utils
Requires(pre): /bin/id
--enable-mod-chat \
--enable-mod-cache \
--enable-mod-localizer \
+ %{?with_xattr:--with-attr} \
--with-openssl
%{__make}