/[smeserver]/rpms/clamav/sme8/clamav.spec
ViewVC logotype

Diff of /rpms/clamav/sme8/clamav.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by slords, Thu Jun 6 14:01:47 2013 UTC Revision 1.6 by wellsi, Sat Feb 1 19:51:57 2014 UTC
# Line 13  Line 13 
13    
14  Summary: Anti-virus software  Summary: Anti-virus software
15  Name: clamav  Name: clamav
16  Version: 0.97.8  Version: 0.98.1
17  Release: 1%{?dist}  Release: 4%{?dist}
18  License: GPL  License: GPL
19  Group: Applications/System  Group: Applications/System
20  URL: http://www.clamav.net/  URL: http://www.clamav.net/
# Line 119  you will need to install %{name}-devel. Line 119  you will need to install %{name}-devel.
119          s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;          s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;
120      ' database/Makefile.in etc/Makefile.in      ' database/Makefile.in etc/Makefile.in
121    
122  %{__perl} -pi.orig -e '  %{__perl} -pi -e '
123          s|^(Example)|#$1|;          s|^(Example)|#$1|;
124          s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;          s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;
125          s|^#(LogFileMaxSize) .*|$1 0|;          s|^#(LogFileMaxSize) .*|$1 0|;
# Line 147  you will need to install %{name}-devel. Line 147  you will need to install %{name}-devel.
147          s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;          s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;
148          s|^#(ArchiveBlockEncrypted)|$1|;          s|^#(ArchiveBlockEncrypted)|$1|;
149          s|^#(ArchiveBlockMax)|$1|;          s|^#(ArchiveBlockMax)|$1|;
150      ' etc/clamd.conf      ' etc/clamd.conf.sample >etc/clamd.conf
151    
152  %{__perl} -pi.orig -e '  %{__perl} -pi -e '
153          s|^(Example)|#$1|;          s|^(Example)|#$1|;
154          s|^#(AllowSupplementaryGroups) .+$|$1 yes|;          s|^#(AllowSupplementaryGroups) .+$|$1 yes|;
155          s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|;          s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|;
# Line 159  you will need to install %{name}-devel. Line 159  you will need to install %{name}-devel.
159          s|^#(LogTime)|$1|;          s|^#(LogTime)|$1|;
160          s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|;          s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|;
161          s|^#(User) .+$|$1 clamav|;          s|^#(User) .+$|$1 clamav|;
162      ' etc/clamav-milter.conf      ' etc/clamav-milter.conf.sample >etc/clamav-milter.conf
163    
164  %{__perl} -pi.orig -e '  %{__perl} -p -e '
165          s|^(Checks) .+$|$1 24|;          s|^(Checks) .+$|$1 24|;
166          s|^(Example)|#$1|;          s|^(Example)|#$1|;
167          s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|;          s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|;
# Line 169  you will need to install %{name}-devel. Line 169  you will need to install %{name}-devel.
169          s|^#(LogSyslog)|$1|;          s|^#(LogSyslog)|$1|;
170          s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;          s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;
171          s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;          s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;
172      ' etc/freshclam.conf      ' etc/freshclam.conf.sample >etc/freshclam.conf
173    
174  %{__cat} <<EOF >clamd.logrotate  %{__cat} <<EOF >clamd.logrotate
175  %{_localstatedir}/log/clamav/clamd.log {  %{_localstatedir}/log/clamav/clamd.log {
# Line 231  EOF Line 231  EOF
231  %{__make} install DESTDIR="%{buildroot}"  %{__make} install DESTDIR="%{buildroot}"
232    
233  %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd  %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd
234    %{__install} -Dp -m0644 etc/freshclam.conf %{buildroot}%{_sysconfdir}/freshclam.conf
235  %{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam  %{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam
236  %{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam  %{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam
237    %{__install} -Dp -m0644 etc/clamd.conf %{buildroot}%{_sysconfdir}/clamd.conf
238  %{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav  %{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav
239    
240  %if %{!?_without_milter:1}0  %if %{!?_without_milter:1}0
241    %{__install} -Dp -m0644 etc/clamav-milter.conf %{buildroot}%{_sysconfdir}/clamav-milter.conf
242  %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter  %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter
243  %{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter  %{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter
244  %else  %else
# Line 315  fi Line 318  fi
318  %files  %files
319  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
320  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README
321  %doc docs/*.pdf etc/freshclam.conf  %doc etc/freshclam.conf.sample
322    %doc docs/*.pdf
323  ### Remove test virus documents as they trigger clamav  ### Remove test virus documents as they trigger clamav
324  #%doc test/  #%doc test/
325  %doc %{_mandir}/man1/sigtool.1*  %doc %{_mandir}/man1/sigtool.1*
# Line 335  fi Line 339  fi
339  %{_libdir}/libclamav.so  %{_libdir}/libclamav.so
340  %{_libdir}/libclamunrar.so  %{_libdir}/libclamunrar.so
341  %{_libdir}/libclamunrar_iface.so  %{_libdir}/libclamunrar_iface.so
342    %exclude %{_sysconfdir}/freshclam.conf.sample
343    
344  %files -n clamd  %files -n clamd
345  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
346  %doc etc/clamd.conf  %doc etc/clamd.conf.sample
347  %doc %{_mandir}/man1/clambc.1*  %doc %{_mandir}/man1/clambc.1*
348  %doc %{_mandir}/man1/clamconf.1*  %doc %{_mandir}/man1/clamconf.1*
349  %doc %{_mandir}/man1/clamdscan.1*  %doc %{_mandir}/man1/clamdscan.1*
# Line 358  fi Line 363  fi
363  %dir %{_localstatedir}/clamav/  %dir %{_localstatedir}/clamav/
364  %dir %{_localstatedir}/log/clamav/  %dir %{_localstatedir}/log/clamav/
365  %ghost %{_localstatedir}/log/clamav/clamd.log  %ghost %{_localstatedir}/log/clamav/clamd.log
366    
367  %exclude %{_localstatedir}/clamav/*  %exclude %{_localstatedir}/clamav/*
368    %exclude %{_sysconfdir}/clamd.conf.sample
369    
370  %if %{!?_without_milter:1}0  %if %{!?_without_milter:1}0
371  %files milter  %files milter
372  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
373    %doc etc/clamav-milter.conf.sample
374  %doc %{_mandir}/man5/clamav-milter.conf.5*  %doc %{_mandir}/man5/clamav-milter.conf.5*
375  %doc %{_mandir}/man8/clamav-milter.8*  %doc %{_mandir}/man8/clamav-milter.8*
376  %config(noreplace) %{_sysconfdir}/clamav-milter.conf  %config(noreplace) %{_sysconfdir}/clamav-milter.conf
# Line 372  fi Line 380  fi
380  %else  %else
381  %exclude %{_mandir}/man5/clamav-milter.conf.5*  %exclude %{_mandir}/man5/clamav-milter.conf.5*
382  %endif  %endif
383    %exclude %{_sysconfdir}/clamav-milter.conf.sample
384    
385  %files db  %files db
386  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
# Line 393  fi Line 402  fi
402  %exclude %{_libdir}/libclamunrar_iface.la  %exclude %{_libdir}/libclamunrar_iface.la
403    
404  %changelog  %changelog
405  * Sat May 4 2013 David Beveridge <dave@bevhost.com> - 0.97.8-1  * Sat Feb 1 2014 Ian Wells <esmith@wellsi.com> - 0.98.1-4.sme
406    - Remove Packager and Vendor from spec file. [SME: 8162]
407    
408    * Fri Jan 31 2014 Ian Wells <esmith@wellsi.com> - 0.98.1-3.sme
409    - Revert last change. [SME: 8162]
410    
411    * Fri Jan 31 2014 Ian Wells <esmith@wellsi.com> - 0.98.1-2.sme
412    - Sources are local, do not download them. [SME: 8162]
413    
414    * Sun Jan 26 2014 David Beveridge <dave@bevhost.com.> - 0.98.1-1.sme
415    - Updates to release 0.98.1 [SME: 8162]
416    
417    * Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-1
418    - Updated to release 0.98.
419    
420    * Tue May 07 2013 David Hrbá? <david@hrbac.cz> - 0.97.8-1
421  - Updated to release 0.97.8.  - Updated to release 0.97.8.
422    
423  * 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
# Line 402  fi Line 426  fi
426  * Sun Sep 23 2012 Dag Wieers <dag@wieers.com> - 0.97.6-1  * Sun Sep 23 2012 Dag Wieers <dag@wieers.com> - 0.97.6-1
427  - Updated to release 0.97.6.  - Updated to release 0.97.6.
428    
429  * Mon Jun 25 2012 David Hrbáč <david@hrbac.cz> - 0.97.5-2  * Mon Jun 25 2012 David Hrbá? <david@hrbac.cz> - 0.97.5-2
430  - removed missing *.cld files (#183)  - removed missing *.cld files (#183)
431    
432  * Thu Jun 21 2012 David Hrbáč <david@hrbac.cz> - 0.97.5-1  * Thu Jun 21 2012 David Hrbá? <david@hrbac.cz> - 0.97.5-1
433  - corrected missing DBs  - corrected missing DBs
434  - new upstream release  - new upstream release
435    
# Line 436  fi Line 460  fi
460  * Mon Oct 25 2010 Dag Wieers <dag@wieers.com> - 0.96.4-1  * Mon Oct 25 2010 Dag Wieers <dag@wieers.com> - 0.96.4-1
461  - Updated to release 0.96.4.  - Updated to release 0.96.4.
462    
463  * Tue Sep 21 2010 David Hrbáč <david@hrbac.cz> - 0.96.3-2  * Tue Sep 21 2010 David Hrbá? <david@hrbac.cz> - 0.96.3-2
464  - Added buildrequires check-devel.  - Added buildrequires check-devel.
465    
466  * Tue Sep 21 2010 Dag Wieers <dag@wieers.com> - 0.96.3-1  * Tue Sep 21 2010 Dag Wieers <dag@wieers.com> - 0.96.3-1


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed