#
# Conditional build:
%bcond_without milter # build without milter subpackage
-%bcond_with curl # enable curl support
#
Summary: An anti-virus utility for Unix
Summary(pl.UTF-8): Narzędzie antywirusowe dla Uniksów
Name: clamav
-Version: 0.90.3
+Version: 0.94.1
Release: 2
Epoch: 0
-License: GPL
+License: GPL v2+
Group: Applications
Source0: http://dl.sourceforge.net/clamav/%{name}-%{version}.tar.gz
-# Source0-md5: d42ccf7a32daeb7c7cc3c8c23a7793ea
+# Source0-md5: dbe6820ff98f5a6f67a03e3ad63fa90b
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}-milter.init
Patch0: %{name}-pld_config.patch
Patch1: %{name}-no_auto_libwrap.patch
Patch2: %{name}-nolibs.patch
-Patch3: %{name}-find_milter.patch
-Patch4: %{name}-valid_pp_exp.patch
+Patch3: %{name}-valid_pp_exp.patch
URL: http://www.clamav.net/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bzip2-devel
-%{?with_curl:BuildRequires: curl-devel}
BuildRequires: gmp-devel
%{?with_milter:BuildRequires: libmilter-devel}
BuildRequires: libtool
Requires: rc-scripts
Provides: group(clamav)
Provides: user(clamav)
+Conflicts: logrotate < 3.7-4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Clam Antivirus is a powerful anti-virus scanner for Unix. It supports
-AMaViS, compressed files, on-access scanning and includes a program
-for auto-updating with support for digital signatures. The virus
-database has over 90000 viruses, worms and trojans signatures. The
-scanner is multithreaded, written in C, and POSIX compliant.
+Clam AntiVirus is an open source anti-virus toolkit for UNIX, designed
+especially for e-mail scanning on mail gateways. It provides a number
+of utilities including a flexible and scalable multi-threaded daemon,
+a command line scanner and advanced tool for automatic database
+updates. The core of the package is an anti-virus engine available in
+a form of shared library.
+
+Here is a list of the main features:
+- command-line scanner
+- fast, multi-threaded daemon with support for on-access scanning
+- milter interface for sendmail
+- advanced database updater with support for scripted updates and
+ digital signatures
+- virus scanner C library
+- on-access scanning (Linux® and FreeBSD®)
+- virus database updated multiple times per day (see home page for
+ total number of signatures)
+- built-in support for various archive formats, including Zip, RAR,
+ Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS and others
+- built-in support for almost all mail file formats
+- built-in support for ELF executables and Portable Executable files
+ compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and
+ obfuscated with SUE, Y0da Cryptor and others
+- built-in support for popular document formats including MS Office
+ and MacOffice files, HTML, RTF and PDF
%description -l pl.UTF-8
Clam Antivirus jest potężnym skanerem antywirusowym dla systemów
Biblioteki statyczne clamav.
%prep
-%setup -q %{?_rc:-n %{name}-%{version}%{_rc}}
+%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
-%patch4 -p0
%build
+
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
--disable-clamav \
- %{!?with_curl:--without-libcurl} \
%{?with_milter:--enable-milter} \
- --with-dbdir=/var/lib/%{name}
-%{__make}
+ --with-dbdir=/var/lib/%{name} \
+ --with-no-cache
+%{__make} LIBTOOL=/usr/bin/libtool
%install
rm -rf $RPM_BUILD_ROOT
$RPM_BUILD_ROOT%{_var}/{log,spool/clamav}
%{__make} install \
+ LIBTOOL=/usr/bin/libtool \
DESTDIR=$RPM_BUILD_ROOT
%{!?with_milter:rm -f $RPM_BUILD_ROOT%{_mandir}/man8/clamav-milter.8*}
%groupremove clamav
fi
-%triggerpostun -- %{name} <= 0.75.1
+%triggerpostun -- %{name} < 0.80
if [ -f /etc/clamav.conf.rpmsave ]; then
echo "Renaming config to new name /etc/clamd.conf"
mv -f /etc/clamd.conf /etc/clamd.conf.rpmnew
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libclamav.so.5
+%attr(755,root,root) %ghost %{_libdir}/libclamunrar.so.5
+%attr(755,root,root) %ghost %{_libdir}/libclamunrar_iface.so.5
%files devel
%defattr(644,root,root,755)