]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav.spec
- release 4 - merged from RA-branch (clamd_conf patch, better trigger),
[packages/clamav.git] / clamav.spec
index 56f2733ed0bb473cf26b429ca0ea7af76b24e812..f7c52591983e05d59608f59678a82ce2de010750 100644 (file)
@@ -2,14 +2,14 @@
 #   Make freshclam (script and daemon)
 #
 # Conditional build:
-%bcond_with    milter  # build milter subpackage
+%bcond_without milter  # build without milter subpackage
 %bcond_with    curl    # enable curl support
 #
 Summary:       An anti-virus utility for Unix
 Summary(pl):   Antywirusowe narzêdzie dla Uniksów
 Name:          clamav
 Version:       0.80
-Release:       2
+Release:       4
 License:       GPL
 Group:         Applications
 Source0:       http://heanet.dl.sourceforge.net/clamav/%{name}-%{version}.tar.gz
@@ -21,9 +21,9 @@ Source3:      %{name}-milter.init
 Source4:       %{name}-cron-updatedb
 Source5:       %{name}.logrotate
 # Remember to update date after databases upgrade
-%define                database_version        20041016
+%define                database_version        20041019
 Source6:       http://db.local.clamav.net/daily.cvd
-# Source6-md5: 0407cabd808a894c5fdc6b4e79dff265
+# Source6-md5: cee37166f11f509143d61b0e9d3cfeff
 # Source6-size:        100250
 Source7:       http://db.local.clamav.net/main.cvd
 # Source7-md5: f006a1f55722c2ff9d50e61cfb938bc7
@@ -33,6 +33,7 @@ Source9:      %{name}-milter.sysconfig
 Patch0:                %{name}-pld_config.patch
 Patch1:                %{name}-no_auto_libwrap.patch
 Patch2:                %{name}-nolibs.patch
+Patch3:                %{name}-clamd_conf.patch
 URL:           http://www.clamav.net/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -49,10 +50,11 @@ Requires(pre):      /usr/sbin/groupadd
 Requires(pre): /usr/sbin/useradd
 Requires(postun):      /usr/sbin/groupdel
 Requires(postun):      /usr/sbin/userdel
+Requires(postun):      sed >= 4.0
 Requires(postun,pre):  /usr/sbin/usermod
 Requires(post,preun):  /sbin/chkconfig
 Requires:      /usr/sbin/usermod
-Requires:      %{name}-libs = %{version}-%{release}
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Requires:      bc
 Provides:      group(clamav)
 Provides:      user(clamav)
@@ -101,7 +103,7 @@ Filtr ClamAV dla sendmaila korzystaj
 Summary:       clamav - Development header files and libraries
 Summary(pl):   clamav - Pliki nag³ówkowe i biblioteki dla programistów
 Group:         Development/Libraries
-Requires:      %{name}-libs = %{version}-%{release}
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Requires:      bzip2-devel
 Requires:      gmp-devel
 Requires:      zlib-devel
@@ -118,7 +120,7 @@ klienckich clamav.
 Summary:       clamav static libraris
 Summary(pl):   Biblioteki statyczne clamav
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}-%{release}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 clamav static libraries.
@@ -144,6 +146,7 @@ Bazy wirus
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # kill old libtool.m4 copy
 head -n 489 acinclude.m4 > acinclude.m4.tmp
@@ -278,6 +281,8 @@ 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
        mv -f /etc/clamav.conf.rpmsave /etc/clamd.conf
+       echo "Changing config location in freshclam config"
+       sed -i -e 's/clamav.conf/clamd.conf/' /etc/freshclam.conf
 fi
 
 %if %{with milter}
This page took 0.026288 seconds and 4 git commands to generate.