]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav.spec
- release 2
[packages/clamav.git] / clamav.spec
index 8645137f8b53ba9ab35e4f354898ae5c72e9b39d..8994b97881f20ce68ebbd35439f03898a336fadf 100644 (file)
@@ -3,18 +3,17 @@
 #
 # 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.91
-Release:       1
+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: 35192423e44642c86ea69dc93f59cfb1
+# Source0-md5: dbe6820ff98f5a6f67a03e3ad63fa90b
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}-milter.init
@@ -25,13 +24,11 @@ Source9:    %{name}-milter.sysconfig
 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
@@ -53,14 +50,35 @@ Requires:   bc
 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
@@ -124,25 +142,25 @@ clamav static libraries.
 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
@@ -150,6 +168,7 @@ install -d $RPM_BUILD_ROOT/etc/{cron.d,logrotate.d,rc.d/init.d,sysconfig} \
        $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*}
 
@@ -233,7 +252,7 @@ if [ "$1" = "0" ]; then
        %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
@@ -319,6 +338,9 @@ fi
 %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)
This page took 0.03353 seconds and 4 git commands to generate.