#
# 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.92
+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: e500651858a9187a87025c8a5c23969c
+# 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
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)