###############################################################################
name = clamav
-version = 0.97
-release = 3
+version = 0.101.2
+release = 2
groups = System Environment/Daemons
url = http://www.clamav.net
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 \
+ --disable-llvm \
have_cv_ipv6=yes
# User and group have to exist to compile the source code,
packages
package %{name}
+ requires
+ %{name}-libs = %{thisver}
+ end
end
package %{name}-libs
template LIBS
+
+ requires
+ %{name}-databases = %{thisver}
+ end
end
package %{name}-devel
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