+#
+# Conditional build:
+%bcond_with fam # with fam support
+#
Summary: Courier mail server
Summary(pl): Serwer poczty Courier
Name: courier
Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
# Source0-md5: 8c607c70a692d8f8ccb769a3f96d2f28
Patch0: %{name}-openssl-path.patch
+Patch1: %{name}-withoutfam.patch
URL: http://www.courier-mta.org/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: perl-devel
BuildRequires: sysconftool
BuildRequires: zlib-devel
+%{?with_fam:BuildRequires: fam-devel}
Requires(post,preun): /sbin/chkconfig
+%{?with_fam:Requires: fam}
Provides: smtpdaemon
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch -p1
+%patch0 -p1
+%{!?with_fam:%patch1 -p1}
%build
# we don't want fax module