1 |
# $Id$ |
# $Id: clamav.spec,v 1.8 2018/10/24 11:37:38 dani 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.99 |
Version: 0.100.2 |
17 |
Release: 2%{?dist} |
Release: 2%{?dist} |
18 |
License: GPL |
License: GPL |
19 |
Group: Applications/System |
Group: Applications/System |
88 |
Requires(pre): /usr/sbin/useradd |
Requires(pre): /usr/sbin/useradd |
89 |
|
|
90 |
### Fedora Extras introduced them differently :( |
### Fedora Extras introduced them differently :( |
91 |
Obsoletes: clamav-update <= %{version}-%{release} |
Provides: clamav-update = %{version}-%{release} |
92 |
Obsoletes: clamav-data <= %{version}-%{release} |
Obsoletes: clamav-update < %{version}-%{release} |
93 |
|
Provides: clamav-data = %{version}-%{release} |
94 |
|
Obsoletes: clamav-data < %{version}-%{release} |
95 |
|
Obsoletes: clamav-data-empty <= %{version}-%{release} |
96 |
|
# Ugly to put these in the db-package, but needed |
97 |
|
# here to handle upgrades on EL5. |
98 |
|
Provides: clamav-filesystem = %{version}-%{release} |
99 |
|
Obsoletes: clamav-filesystem < %{version}-%{release} |
100 |
|
|
101 |
%description db |
%description db |
102 |
The actual virus database for %{name} |
The actual virus database for %{name} |
296 |
/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 || : |
297 |
|
|
298 |
%post -n clamd |
%post -n clamd |
299 |
/sbin/chkconfig --add clamd |
%systemd_post clamav-daemon.service |
300 |
|
|
301 |
%preun -n clamd |
%preun -n clamd |
302 |
if [ $1 -eq 0 ]; then |
%systemd_preun clamav-daemon.service |
|
/sbin/service clamd stop &>/dev/null || : |
|
|
/sbin/chkconfig --del clamd |
|
|
fi |
|
303 |
|
|
304 |
%postun -n clamd |
%postun -n clamd |
305 |
/sbin/service clamd condrestart &>/dev/null || : |
%systemd_postun |
306 |
|
|
307 |
%post milter |
%post milter |
308 |
/sbin/chkconfig --add clamav-milter |
/sbin/chkconfig --add clamav-milter |
320 |
/usr/sbin/groupadd -r clamav 2>/dev/null || : |
/usr/sbin/groupadd -r clamav 2>/dev/null || : |
321 |
/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 || : |
322 |
|
|
323 |
|
%post db |
324 |
|
%systemd_post clamav-freshclam.service |
325 |
|
|
326 |
|
%preun db |
327 |
|
%systemd_preun clamav-freshclam.service |
328 |
|
|
329 |
|
%postun db |
330 |
|
%systemd_postun |
331 |
|
|
332 |
%clean |
%clean |
333 |
%{__rm} -rf %{buildroot} |
%{__rm} -rf %{buildroot} |
334 |
|
|
335 |
%files |
%files |
336 |
%defattr(-, root, root, 0755) |
%defattr(-, root, root, 0755) |
337 |
%doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README |
%doc ChangeLog.md COPYING* INSTALL.md NEWS.md README.md |
338 |
%doc etc/freshclam.conf.sample |
%doc etc/freshclam.conf.sample |
339 |
%doc docs/*.pdf |
%doc docs/*.pdf |
340 |
### Remove test virus documents as they trigger clamav |
### Remove test virus documents as they trigger clamav |
342 |
%doc %{_mandir}/man1/sigtool.1* |
%doc %{_mandir}/man1/sigtool.1* |
343 |
%doc %{_mandir}/man1/clambc.1* |
%doc %{_mandir}/man1/clambc.1* |
344 |
%doc %{_mandir}/man1/clamscan.1* |
%doc %{_mandir}/man1/clamscan.1* |
|
%doc %{_mandir}/man1/clamsubmit.1* |
|
345 |
%doc %{_mandir}/man1/freshclam.1* |
%doc %{_mandir}/man1/freshclam.1* |
346 |
%doc %{_mandir}/man5/freshclam.conf.5* |
%doc %{_mandir}/man5/freshclam.conf.5* |
347 |
%config(noreplace) %{_sysconfdir}/freshclam.conf |
%config(noreplace) %{_sysconfdir}/freshclam.conf |
348 |
|
%{_unitdir}/clamav-freshclam.service |
349 |
%{_bindir}/clambc |
%{_bindir}/clambc |
350 |
%{_bindir}/clamscan |
%{_bindir}/clamscan |
351 |
%{_bindir}/freshclam |
%{_bindir}/freshclam |
352 |
%{_bindir}/sigtool |
%{_bindir}/sigtool |
|
%{_bindir}/clamsubmit |
|
353 |
%{_libdir}/libclamav.so.* |
%{_libdir}/libclamav.so.* |
354 |
%{_libdir}/libclamunrar.so.* |
%{_libdir}/libclamunrar.so.* |
355 |
%{_libdir}/libclamunrar_iface.so.* |
%{_libdir}/libclamunrar_iface.so.* |
356 |
|
%{_libdir}/libclammspack.so.* |
357 |
# moved from -devel to here so clamd can work with rars when clamav-devel is not installed. |
# moved from -devel to here so clamd can work with rars when clamav-devel is not installed. |
358 |
%{_libdir}/libclamav.so |
%{_libdir}/libclamav.so |
359 |
%{_libdir}/libclamunrar.so |
%{_libdir}/libclamunrar.so |
360 |
%{_libdir}/libclamunrar_iface.so |
%{_libdir}/libclamunrar_iface.so |
361 |
|
%{_libdir}/libclammspack.so |
362 |
%exclude %{_sysconfdir}/freshclam.conf.sample |
%exclude %{_sysconfdir}/freshclam.conf.sample |
363 |
|
|
364 |
%files -n clamd |
%files -n clamd |
373 |
%config(noreplace) %{_sysconfdir}/clamd.conf |
%config(noreplace) %{_sysconfdir}/clamd.conf |
374 |
%config(noreplace) %{_sysconfdir}/logrotate.d/clamav |
%config(noreplace) %{_sysconfdir}/logrotate.d/clamav |
375 |
%config %{_initrddir}/clamd |
%config %{_initrddir}/clamd |
376 |
|
%{_unitdir}/clamav-daemon.service |
377 |
|
%{_unitdir}/clamav-daemon.socket |
378 |
%{_sbindir}/clamd |
%{_sbindir}/clamd |
379 |
%{_bindir}/clamconf |
%{_bindir}/clamconf |
380 |
%{_bindir}/clamdscan |
%{_bindir}/clamdscan |
419 |
%{_bindir}/clamav-config |
%{_bindir}/clamav-config |
420 |
%{_includedir}/clamav.h |
%{_includedir}/clamav.h |
421 |
%{_libdir}/pkgconfig/libclamav.pc |
%{_libdir}/pkgconfig/libclamav.pc |
422 |
|
%{_libdir}/pkgconfig/libclammspack.pc |
423 |
%exclude %{_libdir}/libclamav.la |
%exclude %{_libdir}/libclamav.la |
424 |
%exclude %{_libdir}/libclamunrar.la |
%exclude %{_libdir}/libclamunrar.la |
425 |
%exclude %{_libdir}/libclamunrar_iface.la |
%exclude %{_libdir}/libclamunrar_iface.la |
426 |
|
%exclude %{_libdir}/libclammspack.la |
427 |
|
|
428 |
%changelog |
%changelog |
429 |
|
* Wed Mar 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.100.2-2.sme |
430 |
|
- Update clamav-db as per epel last spec file [SME: 10754] |
431 |
|
to add clamav-update as provides |
432 |
|
- |
433 |
|
* Wed Oct 24 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.100.2-1.sme |
434 |
|
- Update to 0.100.2 [SME: 10578] |
435 |
|
|
436 |
|
* Wed Mar 14 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.4-1.sme |
437 |
|
- Update to 0.99.4 [SME: 10528] |
438 |
|
|
439 |
|
* Sat Jan 27 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.3-1.sme |
440 |
|
- Update to 0.99.3 [SME: 10500] |
441 |
|
|
442 |
|
* Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.2-1.sme |
443 |
|
- Update to 0.99.2 [SME: 9487] |
444 |
|
- Adapt to use systemd unit [SME: 9487] |
445 |
|
|
446 |
|
* Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme |
447 |
|
- Update to 0.99.1 [SME: 9268] |
448 |
|
|
449 |
* Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-2.sme |
* Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-2.sme |
450 |
- Add pcre-devel to BuildRequires [SME: 9151] |
- Add pcre-devel to BuildRequires [SME: 9151] |
451 |
|
|