Accepting request 532408 from security

1

OBS-URL: https://build.opensuse.org/request/show/532408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clamav?expand=0&rev=88
This commit is contained in:
2017-10-09 17:44:11 +00:00
committed by Git OBS Bridge
2 changed files with 38 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 5 23:30:39 UTC 2017 - jengelh@inai.de
- Implement shared library guideline.
-------------------------------------------------------------------
Mon Aug 21 13:41:14 UTC 2017 - fvogt@suse.com

View File

@@ -73,6 +73,26 @@ provides numerous file format detection mechanisms, file unpacking
support, archive support, and multiple signature languages for
detecting threats.
%package -n libclamav7
Summary: ClamAV antivirus engine runtime
Group: System/Libraries
%description -n libclamav7
ClamAV is an antivirus engine designed for detecting trojans,
viruses, malware and other malicious threats.
%package devel
Summary: Development files for libclamav, an antivirus engine
Group: Development/Libraries/C and C++
Requires: libclamav7 = %version
%description devel
ClamAV is an antivirus engine designed for detecting trojans,
viruses, malware and other malicious threats.
This subpackage contains header files for developing applications
that want to make use of libclamav.
%prep
%setup -q
%patch1 -p1
@@ -106,7 +126,7 @@ CFLAGS="$CFLAGS -DFP_64BIT"
make V=1 %{?_smp_mflags}
%install
%makeinstall
%make_install
install -d -m755 %buildroot/var/lib/clamav
install -d -m755 %buildroot/%_tmpfilesdir
install -m644 %{S:6} %buildroot%_tmpfilesdir/clamav.conf
@@ -144,6 +164,9 @@ done
VALGRIND_GENSUP=1 make check
%endif
%post -n libclamav7 -p /sbin/ldconfig
%postun -n libclamav7 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%config(noreplace) %_sysconfdir/*.conf
@@ -157,14 +180,21 @@ VALGRIND_GENSUP=1 make check
%doc %_mandir/*/*
%_bindir/*
%_sbindir/*
%_includedir/*
%_libdir/lib*
%_libdir/pkgconfig/libclamav.pc
%defattr(-,vscan,vscan)
%dir %attr(750,vscan,vscan) /var/spool/amavis
%dir /var/lib/clamav
%ghost %attr(755,vscan,vscan) /run/clamav
%files -n libclamav7
%defattr(-,root,root)
%_libdir/libclam*.so.7*
%files devel
%defattr(-,root,root)
%_libdir/libclam*.so
%_includedir/*
%pre
getent group vscan >/dev/null || %_sbindir/groupadd -r vscan || :
getent passwd vscan >/dev/null || \
@@ -174,7 +204,6 @@ getent passwd vscan >/dev/null || \
%service_add_pre clamd.service freshclam.service clamav-milter.service
%post
/sbin/ldconfig
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
%service_add_post clamd.service freshclam.service clamav-milter.service
@@ -182,7 +211,6 @@ systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
%service_del_preun clamd.service freshclam.service clamav-milter.service
%postun
/sbin/ldconfig
%service_del_postun clamd.service freshclam.service clamav-milter.service
%changelog