%bcond_without llvm # LLVM support
%endif
+%ifarch x32
+%undefine with_llvm
+%endif
+
Summary: An anti-virus utility for Unix
Summary(pl.UTF-8): Narzędzie antywirusowe dla Uniksów
Name: clamav
-Version: 0.98.3
-Release: 3
+Version: 0.98.7
+Release: 2
License: GPL v2+
Group: Daemons
Source0: http://downloads.sourceforge.net/clamav/%{name}-%{version}.tar.gz
-# Source0-md5: b649d35ee85d4d6075a98173dd255c17
+# Source0-md5: 157c601161da1c2d5a0e48ea1b49e067
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}-milter.init
Patch3: ac2.68.patch
Patch4: %{name}-openssl.patch
Patch5: %{name}-major.patch
+Patch6: x32.patch
URL: http://www.clamav.net/
BuildRequires: autoconf
BuildRequires: automake
%if "%{pld_release}" == "ac"
%patch2 -p1
%endif
+%if "%{pld_release}" != "ac"
%patch3 -p1
-%patch4 -p1
+%endif
+#%patch4 -p1
%patch5 -p1
+%patch6 -p1
%build
%{__libtoolize}
--disable-silent-rules \
--disable-clamav \
--enable-clamdtop \
+ %{?with_llvm:--enable-llvm --with-system-llvm} \
%{?with_milter:--enable-milter} \
--with-dbdir=/var/lib/%{name} \
--with-no-cache \