1 |
# $Id$ |
# $Id: clamav.spec,v 1.5 2016/05/03 19:41:59 vip-ire Exp $ |
2 |
# Authority: dag |
# Authority: dag |
3 |
# Upstream: <clamav-devel$lists,sf,net> |
# Upstream: <clamav-devel$lists,sf,net> |
4 |
|
|
13 |
|
|
14 |
Summary: Anti-virus software |
Summary: Anti-virus software |
15 |
Name: clamav |
Name: clamav |
16 |
Version: 0.98.7 |
Version: 0.99.3 |
17 |
Release: 1%{?dist} |
Release: 1%{?dist} |
18 |
License: GPL |
License: GPL |
19 |
Group: Applications/System |
Group: Applications/System |
35 |
BuildRequires: check-devel |
BuildRequires: check-devel |
36 |
BuildRequires: openssl-devel |
BuildRequires: openssl-devel |
37 |
BuildRequires: libxml2-devel |
BuildRequires: libxml2-devel |
38 |
|
BuildRequires: pcre-devel |
39 |
|
|
40 |
|
|
41 |
### Do not require the latest release of clamav-db specifically (people may use freshclam onward) |
### Do not require the latest release of clamav-db specifically (people may use freshclam onward) |
289 |
/usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav clamav 2>/dev/null || : |
/usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav clamav 2>/dev/null || : |
290 |
|
|
291 |
%post -n clamd |
%post -n clamd |
292 |
/sbin/chkconfig --add clamd |
%systemd_post clamav-daemon.service |
293 |
|
|
294 |
%preun -n clamd |
%preun -n clamd |
295 |
if [ $1 -eq 0 ]; then |
%systemd_preun clamav-daemon.service |
|
/sbin/service clamd stop &>/dev/null || : |
|
|
/sbin/chkconfig --del clamd |
|
|
fi |
|
296 |
|
|
297 |
%postun -n clamd |
%postun -n clamd |
298 |
/sbin/service clamd condrestart &>/dev/null || : |
%systemd_postun |
299 |
|
|
300 |
%post milter |
%post milter |
301 |
/sbin/chkconfig --add clamav-milter |
/sbin/chkconfig --add clamav-milter |
313 |
/usr/sbin/groupadd -r clamav 2>/dev/null || : |
/usr/sbin/groupadd -r clamav 2>/dev/null || : |
314 |
/usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav clamav 2>/dev/null || : |
/usr/sbin/useradd -r -d /var/clamav -s /sbin/nologin -c "Clam Anti Virus Checker" -g clamav clamav 2>/dev/null || : |
315 |
|
|
316 |
|
%post db |
317 |
|
%systemd_post clamav-freshclam.service |
318 |
|
|
319 |
|
%preun db |
320 |
|
%systemd_preun clamav-freshclam.service |
321 |
|
|
322 |
|
%postun db |
323 |
|
%systemd_postun |
324 |
|
|
325 |
%clean |
%clean |
326 |
%{__rm} -rf %{buildroot} |
%{__rm} -rf %{buildroot} |
327 |
|
|
339 |
%doc %{_mandir}/man1/freshclam.1* |
%doc %{_mandir}/man1/freshclam.1* |
340 |
%doc %{_mandir}/man5/freshclam.conf.5* |
%doc %{_mandir}/man5/freshclam.conf.5* |
341 |
%config(noreplace) %{_sysconfdir}/freshclam.conf |
%config(noreplace) %{_sysconfdir}/freshclam.conf |
342 |
|
%{_unitdir}/clamav-freshclam.service |
343 |
%{_bindir}/clambc |
%{_bindir}/clambc |
344 |
%{_bindir}/clamscan |
%{_bindir}/clamscan |
345 |
%{_bindir}/freshclam |
%{_bindir}/freshclam |
366 |
%config(noreplace) %{_sysconfdir}/clamd.conf |
%config(noreplace) %{_sysconfdir}/clamd.conf |
367 |
%config(noreplace) %{_sysconfdir}/logrotate.d/clamav |
%config(noreplace) %{_sysconfdir}/logrotate.d/clamav |
368 |
%config %{_initrddir}/clamd |
%config %{_initrddir}/clamd |
369 |
|
%{_unitdir}/clamav-daemon.service |
370 |
|
%{_unitdir}/clamav-daemon.socket |
371 |
%{_sbindir}/clamd |
%{_sbindir}/clamd |
372 |
%{_bindir}/clamconf |
%{_bindir}/clamconf |
373 |
%{_bindir}/clamdscan |
%{_bindir}/clamdscan |
417 |
%exclude %{_libdir}/libclamunrar_iface.la |
%exclude %{_libdir}/libclamunrar_iface.la |
418 |
|
|
419 |
%changelog |
%changelog |
420 |
|
* Sat Jan 27 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.3-1.sme |
421 |
|
- Update to 0.99.3 [SME: 10500] |
422 |
|
|
423 |
|
* Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.2-1.sme |
424 |
|
- Update to 0.99.2 [SME: 9487] |
425 |
|
- Adapt to use systemd unit [SME: 9487] |
426 |
|
|
427 |
|
* Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme |
428 |
|
- Update to 0.99.1 [SME: 9268] |
429 |
|
|
430 |
|
* Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-2.sme |
431 |
|
- Add pcre-devel to BuildRequires [SME: 9151] |
432 |
|
|
433 |
|
* Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-1.sme |
434 |
|
- Update to release 0.99 [SME: 9151] |
435 |
|
|
436 |
* Wed May 13 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.7-1.sme |
* Wed May 13 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.7-1.sme |
437 |
- Updated to release 0.98.7 [SME: 8922] |
- Updated to release 0.98.7 [SME: 8922] |
438 |
|
|