+#
+%bcond_with toplevel # Allow toplevel folders
+ # More info: http://www.ricky-chan.co.uk/courier/
+#
Summary: Courier-IMAP server
Summary(pl): Serwer Courier-IMAP
Name: courier-imap
Patch0: %{name}-dirs.patch
Patch1: %{name}-certsdir.patch
Patch2: %{name}-maildir.patch
+Patch3: %{name}-toplevel.patch
URL: http://www.courier-mta.org/imap/
BuildRequires: autoconf >= 2.54
BuildRequires: automake
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%if %{with toplevel}
+%patch3 -p1
+%endif
install %{SOURCE1} courier-imap.in
install %{SOURCE2} courier-imap-ssl.in