+#
+# Conditional build
+%bcond_with smode # build with /smode command support
+#
Summary: Internet Relay Chat Server
Summary(pl): Serwer IRC (Internet Relay Chat)
Name: bircd
Version: 2.0.3rc6
-Release: 2
+Release: 3
License: GPL
Group: Daemons
Source0: http://www.onthanet.nl/~borg/download/%{name}%{version}.tgz
Patch0: %{name}-makefile.patch
Patch1: %{name}-config.patch
Patch2: %{name}-fix.patch
+Patch3: %{name}-smode.patch
URL: http://www.onthanet.nl/~borg/
BuildRequires: rpmbuild(macros) >= 1.159
PreReq: rc-scripts
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%{?with_smode:%patch3 -p1}
%build
./Config