13 |
|
|
14 |
Summary: Anti-virus software |
Summary: Anti-virus software |
15 |
Name: clamav |
Name: clamav |
16 |
Version: 0.97.8 |
Version: 0.98.3 |
17 |
Release: 1%{?dist} |
Release: 2%{?dist} |
18 |
License: GPL |
License: GPL |
19 |
Group: Applications/System |
Group: Applications/System |
20 |
URL: http://www.clamav.net/ |
URL: http://www.clamav.net/ |
33 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
34 |
%{!?_without_milter:BuildRequires: sendmail-devel >= 8.12} |
%{!?_without_milter:BuildRequires: sendmail-devel >= 8.12} |
35 |
BuildRequires: check-devel |
BuildRequires: check-devel |
36 |
|
BuildRequires: openssl-devel |
37 |
|
BuildRequires: libxml2-devel |
38 |
|
|
39 |
### 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) |
40 |
#Requires: clamav-db = %{version}-%{release} |
#Requires: clamav-db = %{version}-%{release} |
121 |
s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g; |
s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g; |
122 |
' database/Makefile.in etc/Makefile.in |
' database/Makefile.in etc/Makefile.in |
123 |
|
|
124 |
%{__perl} -pi.orig -e ' |
%{__perl} -pi -e ' |
125 |
s|^(Example)|#$1|; |
s|^(Example)|#$1|; |
126 |
s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|; |
s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|; |
127 |
s|^#(LogFileMaxSize) .*|$1 0|; |
s|^#(LogFileMaxSize) .*|$1 0|; |
149 |
s|^#(ArchiveMaxCompressionRatio) .+|$1 300|; |
s|^#(ArchiveMaxCompressionRatio) .+|$1 300|; |
150 |
s|^#(ArchiveBlockEncrypted)|$1|; |
s|^#(ArchiveBlockEncrypted)|$1|; |
151 |
s|^#(ArchiveBlockMax)|$1|; |
s|^#(ArchiveBlockMax)|$1|; |
152 |
' etc/clamd.conf |
' etc/clamd.conf.sample >etc/clamd.conf |
153 |
|
|
154 |
%{__perl} -pi.orig -e ' |
%{__perl} -pi -e ' |
155 |
s|^(Example)|#$1|; |
s|^(Example)|#$1|; |
156 |
s|^#(AllowSupplementaryGroups) .+$|$1 yes|; |
s|^#(AllowSupplementaryGroups) .+$|$1 yes|; |
157 |
s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|; |
s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|; |
161 |
s|^#(LogTime)|$1|; |
s|^#(LogTime)|$1|; |
162 |
s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|; |
s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|; |
163 |
s|^#(User) .+$|$1 clamav|; |
s|^#(User) .+$|$1 clamav|; |
164 |
' etc/clamav-milter.conf |
' etc/clamav-milter.conf.sample >etc/clamav-milter.conf |
165 |
|
|
166 |
%{__perl} -pi.orig -e ' |
%{__perl} -p -e ' |
167 |
s|^(Checks) .+$|$1 24|; |
s|^(Checks) .+$|$1 24|; |
168 |
s|^(Example)|#$1|; |
s|^(Example)|#$1|; |
169 |
s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|; |
s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|; |
171 |
s|^#(LogSyslog)|$1|; |
s|^#(LogSyslog)|$1|; |
172 |
s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|; |
s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|; |
173 |
s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|; |
s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|; |
174 |
' etc/freshclam.conf |
' etc/freshclam.conf.sample >etc/freshclam.conf |
175 |
|
|
176 |
%{__cat} <<EOF >clamd.logrotate |
%{__cat} <<EOF >clamd.logrotate |
177 |
%{_localstatedir}/log/clamav/clamd.log { |
%{_localstatedir}/log/clamav/clamd.log { |
233 |
%{__make} install DESTDIR="%{buildroot}" |
%{__make} install DESTDIR="%{buildroot}" |
234 |
|
|
235 |
%{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd |
%{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd |
236 |
|
%{__install} -Dp -m0644 etc/freshclam.conf %{buildroot}%{_sysconfdir}/freshclam.conf |
237 |
%{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam |
%{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam |
238 |
%{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam |
%{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam |
239 |
|
%{__install} -Dp -m0644 etc/clamd.conf %{buildroot}%{_sysconfdir}/clamd.conf |
240 |
%{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav |
%{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav |
241 |
|
|
242 |
%if %{!?_without_milter:1}0 |
%if %{!?_without_milter:1}0 |
243 |
|
%{__install} -Dp -m0644 etc/clamav-milter.conf %{buildroot}%{_sysconfdir}/clamav-milter.conf |
244 |
%{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter |
%{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter |
245 |
%{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter |
%{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter |
246 |
%else |
%else |
320 |
%files |
%files |
321 |
%defattr(-, root, root, 0755) |
%defattr(-, root, root, 0755) |
322 |
%doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README |
%doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README |
323 |
%doc docs/*.pdf etc/freshclam.conf |
%doc etc/freshclam.conf.sample |
324 |
|
%doc docs/*.pdf |
325 |
### Remove test virus documents as they trigger clamav |
### Remove test virus documents as they trigger clamav |
326 |
#%doc test/ |
#%doc test/ |
327 |
%doc %{_mandir}/man1/sigtool.1* |
%doc %{_mandir}/man1/sigtool.1* |
328 |
%doc %{_mandir}/man1/clambc.1* |
%doc %{_mandir}/man1/clambc.1* |
329 |
%doc %{_mandir}/man1/clamscan.1* |
%doc %{_mandir}/man1/clamscan.1* |
330 |
|
%doc %{_mandir}/man1/clamsubmit.1* |
331 |
%doc %{_mandir}/man1/freshclam.1* |
%doc %{_mandir}/man1/freshclam.1* |
332 |
%doc %{_mandir}/man5/freshclam.conf.5* |
%doc %{_mandir}/man5/freshclam.conf.5* |
333 |
%config(noreplace) %{_sysconfdir}/freshclam.conf |
%config(noreplace) %{_sysconfdir}/freshclam.conf |
342 |
%{_libdir}/libclamav.so |
%{_libdir}/libclamav.so |
343 |
%{_libdir}/libclamunrar.so |
%{_libdir}/libclamunrar.so |
344 |
%{_libdir}/libclamunrar_iface.so |
%{_libdir}/libclamunrar_iface.so |
345 |
|
%exclude %{_sysconfdir}/freshclam.conf.sample |
346 |
|
|
347 |
%files -n clamd |
%files -n clamd |
348 |
%defattr(-, root, root, 0755) |
%defattr(-, root, root, 0755) |
349 |
%doc etc/clamd.conf |
%doc etc/clamd.conf.sample |
350 |
%doc %{_mandir}/man1/clambc.1* |
%doc %{_mandir}/man1/clambc.1* |
351 |
%doc %{_mandir}/man1/clamconf.1* |
%doc %{_mandir}/man1/clamconf.1* |
352 |
%doc %{_mandir}/man1/clamdscan.1* |
%doc %{_mandir}/man1/clamdscan.1* |
366 |
%dir %{_localstatedir}/clamav/ |
%dir %{_localstatedir}/clamav/ |
367 |
%dir %{_localstatedir}/log/clamav/ |
%dir %{_localstatedir}/log/clamav/ |
368 |
%ghost %{_localstatedir}/log/clamav/clamd.log |
%ghost %{_localstatedir}/log/clamav/clamd.log |
369 |
|
|
370 |
%exclude %{_localstatedir}/clamav/* |
%exclude %{_localstatedir}/clamav/* |
371 |
|
%exclude %{_sysconfdir}/clamd.conf.sample |
372 |
|
|
373 |
%if %{!?_without_milter:1}0 |
%if %{!?_without_milter:1}0 |
374 |
%files milter |
%files milter |
375 |
%defattr(-, root, root, 0755) |
%defattr(-, root, root, 0755) |
376 |
|
%doc etc/clamav-milter.conf.sample |
377 |
%doc %{_mandir}/man5/clamav-milter.conf.5* |
%doc %{_mandir}/man5/clamav-milter.conf.5* |
378 |
%doc %{_mandir}/man8/clamav-milter.8* |
%doc %{_mandir}/man8/clamav-milter.8* |
379 |
%config(noreplace) %{_sysconfdir}/clamav-milter.conf |
%config(noreplace) %{_sysconfdir}/clamav-milter.conf |
383 |
%else |
%else |
384 |
%exclude %{_mandir}/man5/clamav-milter.conf.5* |
%exclude %{_mandir}/man5/clamav-milter.conf.5* |
385 |
%endif |
%endif |
386 |
|
%exclude %{_sysconfdir}/clamav-milter.conf.sample |
387 |
|
|
388 |
%files db |
%files db |
389 |
%defattr(-, root, root, 0755) |
%defattr(-, root, root, 0755) |
405 |
%exclude %{_libdir}/libclamunrar_iface.la |
%exclude %{_libdir}/libclamunrar_iface.la |
406 |
|
|
407 |
%changelog |
%changelog |
408 |
* Sat May 4 2013 David Beveridge <dave@bevhost.com> - 0.97.8-1 |
* Thu May 8 2014 Ian Wells <esmith@wellsi.com> - 0.98.3-2.sme |
409 |
|
- Add BuildRequires for openssl-devel and libxml2-devel [SME: 8373] |
410 |
|
- Remove Packager and Vendor from spec file. |
411 |
|
|
412 |
|
* Thu May 8 2014 David Beveridge <dave@bevhost.com> - 0.98.3-1 |
413 |
|
- Updates to release 0.98.3. |
414 |
|
|
415 |
|
* Sun Jan 26 2014 David Beveridge <dave@bevhost.com.> - 0.98.1-1 |
416 |
|
- Updates to release 0.98.1. |
417 |
|
|
418 |
|
* Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-1 |
419 |
|
- Updated to release 0.98. |
420 |
|
|
421 |
|
* Tue May 07 2013 David Hrbáč <david@hrbac.cz> - 0.97.8-1 |
422 |
- Updated to release 0.97.8. |
- Updated to release 0.97.8. |
423 |
|
|
424 |
* Wed Mar 20 2013 Dag Wieers <dag@wieers.com> - 0.97.7-1 |
* Wed Mar 20 2013 Dag Wieers <dag@wieers.com> - 0.97.7-1 |