| |
@@ -2,13 +2,8 @@
|
| |
|
| |
%global _hardened_build 1
|
| |
|
| |
- ## Fedora Extras specific customization below...
|
| |
- # EL7's curl is too old
|
| |
- %if 0%{?fedora} || 0%{?rhel} >= 8
|
| |
+ ## Fedora specific customization below...
|
| |
%bcond_without clamonacc
|
| |
- %else
|
| |
- %bcond_with clamonacc
|
| |
- %endif
|
| |
%bcond_without tmpfiles
|
| |
%bcond_with unrar
|
| |
%ifnarch ppc64
|
| |
@@ -46,7 +41,7 @@
|
| |
Summary: End-user tools for the Clam Antivirus scanner
|
| |
Name: clamav
|
| |
Version: 0.102.2
|
| |
- Release: 6%{?dist}
|
| |
+ Release: 8%{?dist}
|
| |
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
| |
URL: https://www.clamav.net/
|
| |
%if %{with unrar}
|
| |
@@ -72,6 +67,8 @@
|
| |
Source11: daily-25719.cvd
|
| |
#http://database.clamav.net/bytecode.cvd
|
| |
Source12: bytecode-331.cvd
|
| |
+ #for clamonacc
|
| |
+ Source100: clamonacc.service
|
| |
#for update
|
| |
Source200: freshclam-sleep
|
| |
Source201: freshclam.sysconfig
|
| |
@@ -92,6 +89,8 @@
|
| |
Patch1: clamav-default_confs.patch
|
| |
# Fix pkg-config flags for static linking, multilib
|
| |
Patch2: clamav-0.99-private.patch
|
| |
+ # Patch to use EL7 libcurl
|
| |
+ Patch3: clamav-curl.patch
|
| |
|
| |
BuildRequires: autoconf automake gettext-devel libtool libtool-ltdl-devel
|
| |
BuildRequires: gcc-c++
|
| |
@@ -99,6 +98,7 @@
|
| |
BuildRequires: curl-devel
|
| |
BuildRequires: gmp-devel
|
| |
BuildRequires: json-c-devel
|
| |
+ BuildRequires: libprelude-devel
|
| |
BuildRequires: libxml2-devel
|
| |
BuildRequires: ncurses-devel
|
| |
BuildRequires: openssl-devel
|
| |
@@ -117,6 +117,7 @@
|
| |
#for milter
|
| |
BuildRequires: sendmail-devel
|
| |
|
| |
+ Requires: clamav-filesystem = %version-%release
|
| |
Requires: clamav-lib = %version-%release
|
| |
Requires: data(clamav)
|
| |
|
| |
@@ -247,6 +248,8 @@
|
| |
%endif
|
| |
%patch1 -p1 -b .default_confs
|
| |
%patch2 -p1 -b .private
|
| |
+ # Patch to use older libcurl
|
| |
+ %{?el7:%patch3 -p1 -b .curl}
|
| |
|
| |
install -p -m0644 %SOURCE300 clamav-milter/
|
| |
|
| |
@@ -277,6 +280,7 @@
|
| |
--disable-rpath \
|
| |
--disable-silent-rules \
|
| |
--enable-clamdtop \
|
| |
+ --enable-prelude \
|
| |
%{!?with_clamonacc:--disable-clamonacc} \
|
| |
%{!?with_llvm:--disable-llvm}
|
| |
|
| |
@@ -316,6 +320,8 @@
|
| |
install -D -m 0644 -p %SOURCE3 _doc_server/clamd.logrotate
|
| |
install -D -m 0644 -p %SOURCE5 _doc_server/README
|
| |
|
| |
+ install -D -p -m 0644 %SOURCE100 $RPM_BUILD_ROOT%_unitdir/clamonacc.service
|
| |
+
|
| |
install -D -p -m 0644 %SOURCE530 $RPM_BUILD_ROOT%_unitdir/clamd@.service
|
| |
|
| |
## prepare the update-files
|
| |
@@ -407,6 +413,16 @@
|
| |
make check
|
| |
|
| |
|
| |
+ %post
|
| |
+ %systemd_post clamonacc.service
|
| |
+
|
| |
+ %preun
|
| |
+ %systemd_preun clamonacc.service
|
| |
+
|
| |
+ %postun
|
| |
+ %systemd_postun_with_restart clamonacc.service
|
| |
+
|
| |
+
|
| |
%pre filesystem
|
| |
getent group %{updateuser} >/dev/null || groupadd -r %{updateuser}
|
| |
getent passwd %{updateuser} >/dev/null || \
|
| |
@@ -511,6 +527,7 @@
|
| |
%_mandir/man[15]/*
|
| |
%exclude %_mandir/*/freshclam*
|
| |
%exclude %_mandir/man5/clamd.conf.5*
|
| |
+ %_unitdir/clamonacc.service
|
| |
|
| |
|
| |
%files lib
|
| |
@@ -531,6 +548,8 @@
|
| |
%files filesystem
|
| |
%attr(-,%updateuser,%updateuser) %dir %homedir
|
| |
%dir %_sysconfdir/clamd.d
|
| |
+ # Used by both clamd, clamdscan, and clamonacc
|
| |
+ %config(noreplace) %_sysconfdir/clamd.d/scan.conf
|
| |
|
| |
|
| |
%files data
|
| |
@@ -565,7 +584,6 @@
|
| |
%_sbindir/clamd
|
| |
%_unitdir/clamd@.service
|
| |
|
| |
- %config(noreplace) %_sysconfdir/clamd.d/scan.conf
|
| |
%ghost %scanstatedir/clamd.sock
|
| |
%if %{with tmpfiles}
|
| |
%_tmpfilesdir/clamd.scan.conf
|
| |
@@ -594,6 +612,15 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Thu Apr 30 2020 Orion Poplawski <orion@nwra.com> - 0.102.2-8
|
| |
+ - Enable prelude support (bz#1829726)
|
| |
+
|
| |
+ * Wed Apr 29 2020 Orion Poplawski <orion@nwra.com> - 0.102.2-7
|
| |
+ - Move /etc/clamd.d/scan.conf to clamav-filesystem
|
| |
+ - Add patch to build with EL7 libcurl - re-enable on-access scanning
|
| |
+ (bz#1820395)
|
| |
+ - Add clamonacc.service
|
| |
+
|
| |
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 0.102.2-6
|
| |
- Rebuild (json-c)
|
| |
|
| |
Note that this is built on top of PR #13