- Update to version 0.100.0 (bsc#1089502):

* FIXME: Add upstream changes here before submitting to Factory.
  * Obsoletes clamav-fix_newer_zlib.patch
- Update key ring and add signature file.
- Remove the logic around building the embedded llvm as the
  system-wide llvm is now auto-detected and used.
- Move pc files from the main to the devel package.

OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=161
This commit is contained in:
Reinhard Max 2018-04-13 15:16:49 +00:00 committed by Git OBS Bridge
parent 1c2fe924d1
commit 506c87a397
9 changed files with 129 additions and 169 deletions

3
clamav-0.100.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5c5edaf75a3c53ac0f271148fd6447310bce53f448ec7e6205124a25918f65c
size 16036757

16
clamav-0.100.0.tar.gz.sig Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIcBAABAgAGBQJay4N+AAoJEPE/nha8pb+tUiEP/isw/OZ5t183XjjPVV3wtIH1
xbPkCG5/842Ui8Dd2G14VUEW+abUDueBU1Fn4hPixGVOmXiEmltwlM2R6+qjutVO
al18jCkJXMq9sfqO0pMom8NDf3mNu9sy3oqARekrnLO1JZI0w5HKAAJg3VaCBBEZ
YD7XxtuO8R1R9BBSAwx4E1NG9skQ+WAJVlT7ckWCuqW6SafIsqnM2f9KV1lYitod
7mXl72nPQA3xkiqri1XLZrkiViZyzX5q3LRYdADlHk79MmDZuaaVIfza42SEYjQm
TYTh5vvi1yUz6qhALFfbqOdOTQLri0gZp00xlmH+5MhVcnHZVAfzA3R57VcleD+o
LpC9WUAEUL3D15KQlLhrV7Y0D82M79jJDXExRM2TozjUnA3WrQRZZqlJg5iEBHcu
VP/O7hLNslm8SFRd1SHQ7C4D7X9odW3D64QySEpx9TyUWSesQg/hSO3F9Xj6eBRy
JWYc90iu8DFedR+QrkwnMIbgbTeYxVjnPwKfI1E8vGrojYFKI3nFATQERRAcnrSz
FjaffXxkMPULKCi8JqcvomlZkj+W1LvZ9OEdtD92nz4mX/C6tHaPy6A2alByHElp
CMXYc8IIT3WWFV73O17xBdLhpyJRnmuHQ3IpJMKXh89lgX+t/ABAkWlmQsLy9PpH
SlfPF6qoRTu2fSlQmEJu
=KvcM
-----END PGP SIGNATURE-----

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d72ac3273bde8d2e5e28ec9978373ee3ab4529fd868bc3fc4d2d2671228f2461
size 16083015

View File

@ -1,7 +1,5 @@
Index: clamav-0.98.3/etc/clamav-milter.conf.sample --- etc/clamav-milter.conf.sample.orig
=================================================================== +++ etc/clamav-milter.conf.sample
--- clamav-0.98.3.orig/etc/clamav-milter.conf.sample 2014-05-06 20:39:56.000000000 +0200
+++ clamav-0.98.3/etc/clamav-milter.conf.sample 2014-05-08 16:42:14.865949467 +0200
@@ -2,10 +2,6 @@ @@ -2,10 +2,6 @@
## Example config file for clamav-milter ## Example config file for clamav-milter
## ##
@ -13,7 +11,7 @@ Index: clamav-0.98.3/etc/clamav-milter.conf.sample
## ##
## Main options ## Main options
## ##
@@ -17,8 +13,7 @@ @@ -17,8 +13,7 @@ Example
# inet6:port@[hostname|ip-address] - to specify an ipv6 socket # inet6:port@[hostname|ip-address] - to specify an ipv6 socket
# #
# Default: no default # Default: no default
@ -23,16 +21,16 @@ Index: clamav-0.98.3/etc/clamav-milter.conf.sample
# Define the group ownership for the (unix) milter socket. # Define the group ownership for the (unix) milter socket.
# Default: disabled (the primary group of the user running clamd) # Default: disabled (the primary group of the user running clamd)
@@ -36,7 +31,7 @@ @@ -37,7 +32,7 @@ Example
# Run as another user (clamav-milter must be started by root for this option to work) # to work)
# #
# Default: unset (don't drop privileges) # Default: unset (don't drop privileges)
-#User clamav -#User clamav
+User vscan +User vscan
# Initialize supplementary group access (clamav-milter must be started by root). # Waiting for data from clamd will timeout after this time (seconds).
# # Value of 0 disables the timeout.
@@ -64,7 +59,7 @@ @@ -61,7 +56,7 @@ Example
# daemon (main thread). # daemon (main thread).
# #
# Default: disabled # Default: disabled
@ -41,8 +39,8 @@ Index: clamav-0.98.3/etc/clamav-milter.conf.sample
# Optional path to the global temporary directory. # Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp). # Default: system specific (usually /tmp or /var/tmp).
@@ -90,7 +85,7 @@ @@ -88,7 +83,7 @@ Example
# with the same socket: clamd servers will be selected in a round-robin fashion. # fashion.
# #
# Default: no default # Default: no default
-#ClamdSocket tcp:scanner.mydomain:7357 -#ClamdSocket tcp:scanner.mydomain:7357
@ -50,7 +48,7 @@ Index: clamav-0.98.3/etc/clamav-milter.conf.sample
## ##
@@ -239,13 +234,13 @@ @@ -238,13 +233,13 @@ Example
# Use system logger (can work together with LogFile). # Use system logger (can work together with LogFile).
# #
# Default: no # Default: no
@ -66,10 +64,8 @@ Index: clamav-0.98.3/etc/clamav-milter.conf.sample
# Enable verbose logging. # Enable verbose logging.
# #
Index: clamav-0.98.3/etc/clamd.conf.sample --- etc/clamd.conf.sample.orig
=================================================================== +++ etc/clamd.conf.sample
--- clamav-0.98.3.orig/etc/clamd.conf.sample 2014-05-08 16:42:07.318862339 +0200
+++ clamav-0.98.3/etc/clamd.conf.sample 2014-05-08 16:45:03.177891683 +0200
@@ -1,12 +1,8 @@ @@ -1,12 +1,8 @@
## ##
-## Example config file for the Clam AV daemon -## Example config file for the Clam AV daemon
@ -84,7 +80,7 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# Uncomment this option to enable logging. # Uncomment this option to enable logging.
# LogFile must be writable for the user running daemon. # LogFile must be writable for the user running daemon.
# A full path is required. # A full path is required.
@@ -41,12 +37,12 @@ @@ -41,12 +37,12 @@ Example
# Use system logger (can work together with LogFile). # Use system logger (can work together with LogFile).
# Default: no # Default: no
@ -99,7 +95,7 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# Enable verbose logging. # Enable verbose logging.
# Default: no # Default: no
@@ -63,7 +59,7 @@ @@ -71,7 +67,7 @@ Example
# This option allows you to save a process identifier of the listening # This option allows you to save a process identifier of the listening
# daemon (main thread). # daemon (main thread).
# Default: disabled # Default: disabled
@ -108,7 +104,7 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# Optional path to the global temporary directory. # Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp). # Default: system specific (usually /tmp or /var/tmp).
@@ -82,7 +78,7 @@ @@ -90,7 +86,7 @@ Example
# Path to a local socket file the daemon will listen on. # Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user) # Default: disabled (must be specified by a user)
@ -117,7 +113,7 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# Sets the group ownership on the unix socket. # Sets the group ownership on the unix socket.
# Default: disabled (the primary group of the user running clamd) # Default: disabled (the primary group of the user running clamd)
@@ -98,7 +94,7 @@ @@ -106,7 +102,7 @@ Example
# TCP port address. # TCP port address.
# Default: no # Default: no
@ -126,7 +122,7 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# TCP address. # TCP address.
# By default we bind to INADDR_ANY, probably not wise. # By default we bind to INADDR_ANY, probably not wise.
@@ -106,7 +102,7 @@ @@ -114,7 +110,7 @@ Example
# from the outside world. This option can be specified multiple # from the outside world. This option can be specified multiple
# times if you want to listen on multiple IPs. IPv6 is now supported. # times if you want to listen on multiple IPs. IPv6 is now supported.
# Default: no # Default: no
@ -135,16 +131,16 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# Maximum length the queue of pending connections may grow to. # Maximum length the queue of pending connections may grow to.
# Default: 200 # Default: 200
@@ -192,7 +188,7 @@ @@ -204,7 +200,7 @@ Example
# Run as another user (clamd must be started by root for this option to work) # Run as another user (clamd must be started by root for this option to work)
# Default: don't drop privileges # Default: don't drop privileges
-#User clamav -#User clamav
+User vscan +User vscan
# Initialize supplementary group access (clamd must be started by root). # Stop daemon when libclamav reports out of memory condition.
# Default: no #ExitOnOOM yes
@@ -525,6 +521,10 @@ @@ -598,6 +594,10 @@ Example
## ##
## On-access Scan Settings ## On-access Scan Settings
## ##
@ -155,10 +151,8 @@ Index: clamav-0.98.3/etc/clamd.conf.sample
# Enable on-access scanning. Currently, this is supported via fanotify. # Enable on-access scanning. Currently, this is supported via fanotify.
# Clamuko/Dazuko support has been deprecated. # Clamuko/Dazuko support has been deprecated.
Index: clamav-0.98.3/etc/freshclam.conf.sample --- etc/freshclam.conf.sample.orig
=================================================================== +++ etc/freshclam.conf.sample
--- clamav-0.98.3.orig/etc/freshclam.conf.sample 2014-05-08 16:42:07.349862696 +0200
+++ clamav-0.98.3/etc/freshclam.conf.sample 2014-05-08 16:42:14.866949479 +0200
@@ -1,12 +1,8 @@ @@ -1,12 +1,8 @@
## ##
-## Example config file for freshclam -## Example config file for freshclam
@ -173,7 +167,7 @@ Index: clamav-0.98.3/etc/freshclam.conf.sample
# Path to the database directory. # Path to the database directory.
# WARNING: It must match clamd.conf's directive! # WARNING: It must match clamd.conf's directive!
# Default: hardcoded (depends on installation options) # Default: hardcoded (depends on installation options)
@@ -35,12 +31,12 @@ @@ -35,12 +31,12 @@ Example
# Use system logger (can work together with UpdateLogFile). # Use system logger (can work together with UpdateLogFile).
# Default: no # Default: no
@ -188,7 +182,7 @@ Index: clamav-0.98.3/etc/freshclam.conf.sample
# Enable log rotation. Always enabled when LogFileMaxSize is enabled. # Enable log rotation. Always enabled when LogFileMaxSize is enabled.
# Default: no # Default: no
@@ -48,12 +44,12 @@ @@ -48,12 +44,12 @@ Example
# This option allows you to save the process identifier of the daemon # This option allows you to save the process identifier of the daemon
# Default: disabled # Default: disabled
@ -201,9 +195,9 @@ Index: clamav-0.98.3/etc/freshclam.conf.sample
-#DatabaseOwner clamav -#DatabaseOwner clamav
+DatabaseOwner vscan +DatabaseOwner vscan
# Initialize supplementary group access (freshclam must be started by root). # Use DNS to verify virus database version. Freshclam uses DNS TXT records
# Default: no # to verify database and software versions. With this directive you can change
@@ -136,7 +132,7 @@ @@ -132,7 +128,7 @@ DatabaseMirror database.clamav.net
# Send the RELOAD command to clamd. # Send the RELOAD command to clamd.
# Default: no # Default: no
@ -212,12 +206,3 @@ Index: clamav-0.98.3/etc/freshclam.conf.sample
# Run command after successful database update. # Run command after successful database update.
# Default: disabled # Default: disabled
@@ -179,7 +175,7 @@
# detected in the field and in what geographic area they are.
# Freshclam will connect to clamd in order to get recent statistics.
# Default: no
-#SubmitDetectionStats /path/to/clamd.conf
+#SubmitDetectionStats /etc/clamd.conf
# Country of origin of malware/detection statistics (for statistical
# purposes only). The statistics collector at ClamAV.net will look up

View File

@ -27,7 +27,7 @@
strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n", strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n",
--- configure.orig --- configure.orig
+++ configure +++ configure
@@ -785,6 +785,7 @@ FGREP @@ -800,6 +800,7 @@ FGREP
SED SED
LIBTOOL LIBTOOL
LIBCLAMAV_VERSION LIBCLAMAV_VERSION
@ -35,7 +35,7 @@
EGREP EGREP
GREP GREP
CPP CPP
@@ -887,6 +888,7 @@ ac_user_opts=' @@ -902,6 +903,7 @@ ac_user_opts='
enable_option_checking enable_option_checking
enable_silent_rules enable_silent_rules
enable_dependency_tracking enable_dependency_tracking
@ -43,16 +43,16 @@
enable_static enable_static
enable_shared enable_shared
with_pic with_pic
@@ -1594,6 +1596,8 @@ Optional Features: @@ -1616,6 +1618,8 @@ Optional Features:
--disable-dependency-tracking speeds up one-time build --disable-dependency-tracking
--enable-dependency-tracking do not reject slow dependency extractors speeds up one-time build
--enable-static[=PKGS] build static libraries [default=no] --enable-static[=PKGS] build static libraries [default=no]
+ --enable-timestamps Enable embedding timestamp information in build + --enable-timestamps Enable embedding timestamp information in build
+ (default is YES) + (default is YES)
--enable-shared[=PKGS] build shared libraries [default=yes] --enable-shared[=PKGS] build shared libraries [default=yes]
--enable-fast-install[=PKGS] --enable-fast-install[=PKGS]
optimize for fast installation [default=yes] optimize for fast installation [default=yes]
@@ -4989,6 +4993,26 @@ $as_echo "$ac_cv_safe_to_define___extens @@ -5211,6 +5215,26 @@ $as_echo "$ac_cv_safe_to_define___extens
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
@ -78,4 +78,4 @@
+_ACEOF +_ACEOF
VERSION="0.99.4" VERSION="0.100.0"

View File

@ -1,52 +0,0 @@
Description: fix compatibility with zlib 1.2.9 and newer
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1692073
Index: clamav-0.99.2+dfsg/libclamav/bytecode_api.c
===================================================================
--- clamav-0.99.2+dfsg.orig/libclamav/bytecode_api.c 2017-08-08 15:20:06.651685637 -0400
+++ clamav-0.99.2+dfsg/libclamav/bytecode_api.c 2017-08-15 15:45:14.645714766 -0400
@@ -811,8 +811,20 @@ int32_t cli_bcapi_inflate_init(struct cl
cli_dbgmsg("bytecode api: inflate_init: invalid buffers!\n");
return -1;
}
- memset(&stream, 0, sizeof(stream));
- ret = inflateInit2(&stream, windowBits);
+
+ b = cli_realloc(ctx->inflates, sizeof(*ctx->inflates)*n);
+ if (!b) {
+ return -1;
+ }
+ ctx->inflates = b;
+ ctx->ninflates = n;
+ b = &b[n-1];
+
+ b->from = from;
+ b->to = to;
+ b->needSync = 0;
+ memset(&b->stream, 0, sizeof(stream));
+ ret = inflateInit2(&b->stream, windowBits);
switch (ret) {
case Z_MEM_ERROR:
cli_dbgmsg("bytecode api: inflateInit2: out of memory!\n");
@@ -829,20 +841,6 @@ int32_t cli_bcapi_inflate_init(struct cl
cli_dbgmsg("bytecode api: inflateInit2: unknown error %d\n", ret);
return -1;
}
-
- b = cli_realloc(ctx->inflates, sizeof(*ctx->inflates)*n);
- if (!b) {
- inflateEnd(&stream);
- return -1;
- }
- ctx->inflates = b;
- ctx->ninflates = n;
- b = &b[n-1];
-
- b->from = from;
- b->to = to;
- b->needSync = 0;
- memcpy(&b->stream, &stream, sizeof(stream));
return n-1;
}

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Apr 13 15:07:48 UTC 2018 - max@suse.com
- Update to version 0.100.0 (bsc#1089502):
* FIXME: Add upstream changes here before submitting to Factory.
* Obsoletes clamav-fix_newer_zlib.patch
- Update key ring and add signature file.
- Remove the logic around building the embedded llvm as the
system-wide llvm is now auto-detected and used.
- Move pc files from the main to the devel package.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 7 13:15:11 UTC 2018 - max@suse.com Wed Mar 7 13:15:11 UTC 2018 - max@suse.com

View File

@ -1,43 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK----- -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQGiBFFkfvoRBAC+y0U0ScSLdZ7Wo1I87m2cL47YM/uZgGKnSt5RME/Nx4N+P+l0 mQINBFj3nAABEADRS+B5sv1AnRBvf8dLFd9zuXjFc7e+laeTKcGUKhM4AV8G2qJU
Ye6FjoAVCWTcSOYLgxB+mRNkS4Mgdz+VQLlLFWdfaXDS95fbFzgWITPCOEw+OTYV wfQFu35J8D5PkTit/qCYCpnrcE9gR1tTvhSDy0ekWfNlqzukfLRvL5VuMq08+ebz
tevyjmZdRERRfZVSyo/6ZXNr1DzI2CTwG2CnO6bsTVG7Q6qWsKNoAlwGbwCgrztH 3QaQP2lvBzhw5afInLSfu1xjMHdd6048kGUOCGQjBZpNd0tOt0QNfoqTUzAN0Jaq
/UJzQLNPbhBMWChJCUC8qwED/AtvdQtKfGEQSBgzQKxwFjJe/DGr9EpQOksIZ7tx lWnbjGm2kIxD6gyugG031TCcRE+ck9dxg67KEEXlGNmpUF6GWrozB+tRKt9VP/hc
WdsFlL7qFo2XZLTYiK9KD9k5BPyyGE6C61MTl5QRkbJ1RHVYDlymFqH1pgUXY0hF db/Qyri3DIEI1RJlSJhBrbasSBbSkBaH0mDOQ3NAxfq95/2rY/K0kg1o8YsxVKvz
IhaFEDCiLC9b5SAnnD5cJaMYHyl6HMSUXS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ord6onIkgikDq0LvX
RfMp18n+0vlEk6msuhSYAi04iPAS/mbYCpsuNMQefF6LJmICMpn2Vm4TOW6GMIa9
lilC0oodVYYCKvhdXWB1MRoO5axnxSrNNLm8s7pxR5NzRvLxBiBxVqAJuw4rvFxN
4BZ5M1JSZWu2Rcz+xeh/szXRmWUbLScr4hwQRBSi2efiqPYjkWmxk8MJ5pHvwNK1
DO33H3btRriWK7RZYRYq2Bjpuo8iGevgZ5pyiJkX1p72UehkC6ogGgW2ULgolIUa
LkZivq7Z2vICdouOKAhA2/QaQG0mA7O7RdOLWPX7EH720e4yqUPH9Hxv95EAeYkr
4Zg38cdiIevqjwUOwjMpxtIAj3ol+OvBFbiqJW5PICm7vi5HMIXuwQ6aIgSVDfic
Tjaszr4bkQdr3OpqhR4+ZN5/BAKY4IIzMmvF6v1X8s9DtzjFFg==
=rmWe
-----END PGP PUBLIC KEY BLOCK----- -----END PGP PUBLIC KEY BLOCK-----

View File

@ -17,34 +17,29 @@
Name: clamav Name: clamav
BuildRequires: ncurses-devel
BuildRequires: sed
BuildRequires: sendmail-devel
%define llvm --disable-llvm
BuildRequires: bc
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%ifarch %ix86 x86_64
%define llvm --enable-llvm
# Needed for compiling LLVM.
BuildRequires: gcc-c++
%endif
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: bc
BuildRequires: check-devel BuildRequires: check-devel
BuildRequires: libbz2-devel BuildRequires: libbz2-devel
BuildRequires: libcurl-devel BuildRequires: libcurl-devel
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: libtool BuildRequires: libtool
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: llvm-devel
BuildRequires: ncurses-devel
BuildRequires: pcre-devel BuildRequires: pcre-devel
BuildRequires: pkgconfig
BuildRequires: pwdutils BuildRequires: pwdutils
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: sed
BuildRequires: sendmail-devel
BuildRequires: zlib-devel
%define clamav_check --enable-check %define clamav_check --enable-check
Summary: Antivirus Toolkit Summary: Antivirus Toolkit
License: GPL-2.0 License: GPL-2.0-only
Group: Productivity/Security Group: Productivity/Security
Version: 0.99.4 Version: 0.100.0
Release: 0 Release: 0
Url: http://www.clamav.net Url: http://www.clamav.net
Obsoletes: clamav-db < 0.88.3 Obsoletes: clamav-db < 0.88.3
@ -53,6 +48,7 @@ Obsoletes: clamav-nodb <= 0.98.4
Requires(pre): %_sbindir/groupadd %_sbindir/useradd %_sbindir/usermod Requires(pre): %_sbindir/groupadd %_sbindir/useradd %_sbindir/usermod
Requires(pre): /usr/bin/awk /bin/sed /bin/tar Requires(pre): /usr/bin/awk /bin/sed /bin/tar
Source0: http://www.clamav.net/downloads/production/%{name}-%{version}.tar.gz Source0: http://www.clamav.net/downloads/production/%{name}-%{version}.tar.gz
Source1: http://www.clamav.net/downloads/production/%{name}-%{version}.tar.gz.sig
Source11: clamav.keyring Source11: clamav.keyring
Source4: clamav-rpmlintrc Source4: clamav-rpmlintrc
Source6: clamav-tmpfiles.conf Source6: clamav-tmpfiles.conf
@ -61,7 +57,6 @@ Source8: service.freshclam
Source9: service.clamav-milter Source9: service.clamav-milter
Patch1: clamav-conf.patch Patch1: clamav-conf.patch
Patch4: clamav-disable-timestamps.patch Patch4: clamav-disable-timestamps.patch
Patch5: clamav-fix_newer_zlib.patch
BuildRequires: systemd BuildRequires: systemd
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
%systemd_requires %systemd_requires
@ -98,9 +93,8 @@ that want to make use of libclamav.
%prep %prep
%setup -q %setup -q
%patch1 -p1 %patch1
%patch4 %patch4
%patch5 -p1
%build %build
CFLAGS="-fstack-protector" CFLAGS="-fstack-protector"
@ -120,7 +114,6 @@ CFLAGS="$CFLAGS -DFP_64BIT"
--with-group=vscan \ --with-group=vscan \
--enable-milter \ --enable-milter \
%clamav_check \ %clamav_check \
%llvm \
--enable-clamdtop \ --enable-clamdtop \
--disable-zlib-vcheck \ --disable-zlib-vcheck \
--disable-timestamps --disable-timestamps
@ -170,30 +163,28 @@ VALGRIND_GENSUP=1 make check
%postun -n libclamav7 -p /sbin/ldconfig %postun -n libclamav7 -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%config(noreplace) %_sysconfdir/*.conf %config(noreplace) %_sysconfdir/*.conf
#systemd... #systemd...
%{_unitdir}/clamd.service %{_unitdir}/clamd.service
%{_unitdir}/freshclam.service %{_unitdir}/freshclam.service
%{_unitdir}/clamav-milter.service %{_unitdir}/clamav-milter.service
%_tmpfilesdir %_tmpfilesdir
%doc AUTHORS BUGS ChangeLog COPYING FAQ NEWS README UPGRADE %doc COPYING*
%doc docs/*.pdf docs/html %doc docs/*.pdf docs/html
%doc %_mandir/*/* %doc %_mandir/*/*
%_bindir/* %_bindir/*
%_sbindir/* %_sbindir/*
%_libdir/pkgconfig/libclamav.pc
%defattr(-,vscan,vscan) %defattr(-,vscan,vscan)
%dir %attr(750,vscan,vscan) /var/spool/amavis %dir %attr(750,vscan,vscan) /var/spool/amavis
%dir /var/lib/clamav %dir /var/lib/clamav
%ghost %attr(755,vscan,vscan) /run/clamav %ghost %attr(755,vscan,vscan) /run/clamav
%files -n libclamav7 %files -n libclamav7
%defattr(-,root,root)
%_libdir/libclam*.so.7* %_libdir/libclam*.so.7*
%_libdir/libclammspack.so.0*
%files devel %files devel
%defattr(-,root,root) %_libdir/pkgconfig/*
%_libdir/libclam*.so %_libdir/libclam*.so
%_includedir/* %_includedir/*