]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blobdiff - clamav/clamav.nm
python-lxml: Update to 4.3.4
[people/stevee/ipfire-3.x.git] / clamav / clamav.nm
index a3c74738bfc0e5f158b7eca82211116793515a58..9a550544e76d1a222b664fe816dbf23e187c759a 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = clamav
-version    = 0.97
-release    = 3
+version    = 0.101.2
+release    = 1
 
 groups     = System Environment/Daemons
 url        = http://www.clamav.net
@@ -24,29 +24,31 @@ description
        languages for detecting threats.
 end
 
-source_dl  = http://downloads.sourceforge.net/clamav/
-
-CFLAGS    += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
+source_dl  = http://www.clamav.net/downloads/production/
 
 build
        requires
                bzip2-devel
                curl-devel
                gmp-devel
+               json-c-devel
+               libxml2-devel
                ncurses-devel
+               openssl-devel
+               pcre2-devel
                shadow-utils
+               systemd-devel
                zlib-devel
        end
 
+       LDFLAGS += -Wl,--as-needed
+
        configure_options += \
-               --sysconfdir=/etc \
-               --disable-static \
-               --disable-rpath \
-               --disable-silent-rules \
-               --with-dbdir=/var/lib/clamav \
+               --with-dbdir=%{localstatedir}/lib/clamav \
                --enable-clamdtop \
                --with-user=clamupdate \
                --with-group=clamupdate \
+               --disable-rpath \
                have_cv_ipv6=yes
 
        # User and group have to exist to compile the source code,
@@ -64,13 +66,35 @@ end
 
 packages
        package %{name}
+               requires
+                       %{name}-libs = %{thisver}
+               end
        end
-       
+
        package %{name}-libs
                template LIBS
+
+               requires
+                       %{name}-databases = %{thisver}
+               end
        end
-       
+
        package %{name}-devel
                template DEVEL
        end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+
+       package %{name}-databases
+               summary = Clamav Virus Databases.
+               description
+                       Shipped virus databases needed for virus scanning.
+               end
+
+               files
+                       %{localstatedir}/lib/%{name}
+               end
+       end
 end