From 2f95031a55661099eed710da7c2f36d3e42833727ff46e8d17d08a42623ca67a Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Wed, 15 Apr 2020 20:39:04 +0000 Subject: [PATCH] Accepting request 790518 from home:pluskalm:branches:security - Drop python build dependency as it is not needed OBS-URL: https://build.opensuse.org/request/show/790518 OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=203 --- clamav.changes | 5 +++++ clamav.spec | 22 ++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/clamav.changes b/clamav.changes index ab9972d..c182db4 100644 --- a/clamav.changes +++ b/clamav.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 1 10:01:36 UTC 2020 - Martin Pluskal + +- Drop python build dependency as it is not needed + ------------------------------------------------------------------- Wed Feb 5 18:31:17 UTC 2020 - Arjen de Korte diff --git a/clamav.spec b/clamav.spec index d9ed8f2..666e6cc 100644 --- a/clamav.spec +++ b/clamav.spec @@ -16,9 +16,8 @@ # -%bcond_with clammspack - %define clamav_check --enable-check +%bcond_with clammspack Name: clamav Version: 0.102.2 Release: 0 @@ -47,9 +46,6 @@ BuildRequires: gcc-c++ BuildRequires: libbz2-devel BuildRequires: libcurl-devel BuildRequires: libjson-c-devel -%if %{without clammspack} -BuildRequires: libmspack-devel -%endif BuildRequires: libopenssl-devel BuildRequires: libtool BuildRequires: libxml2-devel @@ -57,7 +53,6 @@ BuildRequires: ncurses-devel BuildRequires: pcre2-devel BuildRequires: pkgconfig BuildRequires: pwdutils -BuildRequires: python-devel BuildRequires: sed BuildRequires: sendmail-devel BuildRequires: systemd-rpm-macros @@ -73,6 +68,9 @@ Obsoletes: clamav-db < 0.88.3 Provides: clamav-nodb = %version Obsoletes: clamav-nodb <= 0.98.4 %systemd_requires +%if %{without clammspack} +BuildRequires: libmspack-devel +%endif %description ClamAV is an antivirus engine designed for detecting trojans, @@ -142,7 +140,7 @@ CFLAGS="$CFLAGS -DFP_64BIT" %configure \ --disable-clamav \ --disable-static \ - --with-dbdir=/var/lib/clamav \ + --with-dbdir=%{_localstatedir}/lib/clamav \ --with-user=vscan \ --with-group=vscan \ --enable-milter \ @@ -159,10 +157,10 @@ make V=1 %?_smp_mflags %install %make_install -install -d -m755 %buildroot/var/lib/clamav +install -d -m755 %buildroot%{_localstatedir}/lib/clamav install -d -m755 %buildroot/%_tmpfilesdir install -m644 %SOURCE6 %buildroot%_tmpfilesdir/clamav.conf -mkdir -p %buildroot/var/spool/amavis +mkdir -p %buildroot%{_localstatedir}/spool/amavis mkdir -p -m 0755 %buildroot/run/clamav find %buildroot -type f -name "*.la" -delete -print @@ -219,8 +217,8 @@ VALGRIND_GENSUP=1 make check %_bindir/* %_sbindir/* %defattr(-,vscan,vscan) -%dir %attr(750,vscan,vscan) /var/spool/amavis -%dir /var/lib/clamav +%dir %attr(750,vscan,vscan) %{_localstatedir}/spool/amavis +%dir %{_localstatedir}/lib/clamav %ghost %attr(755,vscan,vscan) /run/clamav %files -n libclamav9 @@ -244,7 +242,7 @@ VALGRIND_GENSUP=1 make check getent group vscan >/dev/null || %_sbindir/groupadd -r vscan getent passwd vscan >/dev/null || \ %_sbindir/useradd -r -o -g vscan -u 65 -s /bin/false \ - -c "Vscan account" -d /var/spool/amavis vscan + -c "Vscan account" -d %{_localstatedir}/spool/amavis vscan %_sbindir/usermod vscan -g vscan %service_add_pre clamd.service freshclam.service clamav-milter.service