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

Diff of /rpms/clamav/sme9/clamav.spec

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

Revision 1.2 by wellsi, Wed Jun 5 05:31:32 2013 UTC Revision 1.18 by vip-ire, Thu Mar 3 10:38:09 2016 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.99.1
17  Release: 1%{?dist}  Release: 1%{?dist}
18  License: GPL  License: GPL
19  Group: Applications/System  Group: Applications/System
20  URL: http://www.clamav.net/  URL: http://www.clamav.net/
21    
 Packager: Dag Wieers <dag@wieers.com>  
 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/  
   
22  Source: http://downloads.sourceforge.net/project/clamav/clamav/%{version}/clamav-%{version}.tar.gz  Source: http://downloads.sourceforge.net/project/clamav/clamav/%{version}/clamav-%{version}.tar.gz
23  Source1: clamav.init  Source1: clamav.init
24  Source2: clamav-milter.init  Source2: clamav-milter.init
# Line 36  BuildRequires: ncurses-devel Line 33  BuildRequires: ncurses-devel
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    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)
42  #Requires: clamav-db = %{version}-%{release}  #Requires: clamav-db = %{version}-%{release}
# Line 122  you will need to install %{name}-devel. Line 123  you will need to install %{name}-devel.
123          s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;          s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;
124      ' database/Makefile.in etc/Makefile.in      ' database/Makefile.in etc/Makefile.in
125    
126  %{__perl} -pi.orig -e '  %{__perl} -pi -e '
127          s|^(Example)|#$1|;          s|^(Example)|#$1|;
128          s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;          s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;
129          s|^#(LogFileMaxSize) .*|$1 0|;          s|^#(LogFileMaxSize) .*|$1 0|;
# Line 150  you will need to install %{name}-devel. Line 151  you will need to install %{name}-devel.
151          s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;          s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;
152          s|^#(ArchiveBlockEncrypted)|$1|;          s|^#(ArchiveBlockEncrypted)|$1|;
153          s|^#(ArchiveBlockMax)|$1|;          s|^#(ArchiveBlockMax)|$1|;
154      ' etc/clamd.conf      ' etc/clamd.conf.sample >etc/clamd.conf
155    
156  %{__perl} -pi.orig -e '  %{__perl} -pi -e '
157          s|^(Example)|#$1|;          s|^(Example)|#$1|;
158          s|^#(AllowSupplementaryGroups) .+$|$1 yes|;          s|^#(AllowSupplementaryGroups) .+$|$1 yes|;
159          s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|;          s|^#(ClamdSocket) .+$|$1 unix:%{_localstatedir}/run/clamav/clamd.sock|;
# Line 162  you will need to install %{name}-devel. Line 163  you will need to install %{name}-devel.
163          s|^#(LogTime)|$1|;          s|^#(LogTime)|$1|;
164          s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|;          s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|;
165          s|^#(User) .+$|$1 clamav|;          s|^#(User) .+$|$1 clamav|;
166      ' etc/clamav-milter.conf      ' etc/clamav-milter.conf.sample >etc/clamav-milter.conf
167    
168  %{__perl} -pi.orig -e '  %{__perl} -p -e '
169          s|^(Checks) .+$|$1 24|;          s|^(Checks) .+$|$1 24|;
170          s|^(Example)|#$1|;          s|^(Example)|#$1|;
171          s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|;          s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|;
# Line 172  you will need to install %{name}-devel. Line 173  you will need to install %{name}-devel.
173          s|^#(LogSyslog)|$1|;          s|^#(LogSyslog)|$1|;
174          s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;          s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;
175          s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;          s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;
176      ' etc/freshclam.conf      ' etc/freshclam.conf.sample >etc/freshclam.conf
177    
178  %{__cat} <<EOF >clamd.logrotate  %{__cat} <<EOF >clamd.logrotate
179  %{_localstatedir}/log/clamav/clamd.log {  %{_localstatedir}/log/clamav/clamd.log {
# Line 223  EOF Line 224  EOF
224  %{!?_without_milter:--enable-milter} \  %{!?_without_milter:--enable-milter} \
225      --with-dbdir="%{_localstatedir}/clamav" \      --with-dbdir="%{_localstatedir}/clamav" \
226      --with-group="clamav" \      --with-group="clamav" \
227      --with-libcurl \      --with-libcurl=%{_prefix} \
228      --with-user="clamav"      --with-user="clamav"
229  ### Disable JIT until it is implemented securely (RHbz #573191)  ### Disable JIT until it is implemented securely (RHbz #573191)
230  #    --enable-llvm \  #    --enable-llvm \
# Line 234  EOF Line 235  EOF
235  %{__make} install DESTDIR="%{buildroot}"  %{__make} install DESTDIR="%{buildroot}"
236    
237  %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd  %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd
238    %{__install} -Dp -m0644 etc/freshclam.conf %{buildroot}%{_sysconfdir}/freshclam.conf
239  %{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam  %{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam
240  %{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam  %{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam
241    %{__install} -Dp -m0644 etc/clamd.conf %{buildroot}%{_sysconfdir}/clamd.conf
242  %{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav  %{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav
243    
244  %if %{!?_without_milter:1}0  %if %{!?_without_milter:1}0
245    %{__install} -Dp -m0644 etc/clamav-milter.conf %{buildroot}%{_sysconfdir}/clamav-milter.conf
246  %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter  %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter
247  %{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter  %{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter
248  %else  %else
# Line 318  fi Line 322  fi
322  %files  %files
323  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
324  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README
325  %doc docs/*.pdf etc/freshclam.conf  %doc etc/freshclam.conf.sample
326    %doc docs/*.pdf
327  ### Remove test virus documents as they trigger clamav  ### Remove test virus documents as they trigger clamav
328  #%doc test/  #%doc test/
329  %doc %{_mandir}/man1/sigtool.1*  %doc %{_mandir}/man1/sigtool.1*
330  %doc %{_mandir}/man1/clambc.1*  %doc %{_mandir}/man1/clambc.1*
331  %doc %{_mandir}/man1/clamscan.1*  %doc %{_mandir}/man1/clamscan.1*
332    %doc %{_mandir}/man1/clamsubmit.1*
333  %doc %{_mandir}/man1/freshclam.1*  %doc %{_mandir}/man1/freshclam.1*
334  %doc %{_mandir}/man5/freshclam.conf.5*  %doc %{_mandir}/man5/freshclam.conf.5*
335  %config(noreplace) %{_sysconfdir}/freshclam.conf  %config(noreplace) %{_sysconfdir}/freshclam.conf
# Line 331  fi Line 337  fi
337  %{_bindir}/clamscan  %{_bindir}/clamscan
338  %{_bindir}/freshclam  %{_bindir}/freshclam
339  %{_bindir}/sigtool  %{_bindir}/sigtool
340    %{_bindir}/clamsubmit
341  %{_libdir}/libclamav.so.*  %{_libdir}/libclamav.so.*
342  %{_libdir}/libclamunrar.so.*  %{_libdir}/libclamunrar.so.*
343  %{_libdir}/libclamunrar_iface.so.*  %{_libdir}/libclamunrar_iface.so.*
# Line 338  fi Line 345  fi
345  %{_libdir}/libclamav.so  %{_libdir}/libclamav.so
346  %{_libdir}/libclamunrar.so  %{_libdir}/libclamunrar.so
347  %{_libdir}/libclamunrar_iface.so  %{_libdir}/libclamunrar_iface.so
348    %exclude %{_sysconfdir}/freshclam.conf.sample
349    
350  %files -n clamd  %files -n clamd
351  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
352  %doc etc/clamd.conf  %doc etc/clamd.conf.sample
353  %doc %{_mandir}/man1/clambc.1*  %doc %{_mandir}/man1/clambc.1*
354  %doc %{_mandir}/man1/clamconf.1*  %doc %{_mandir}/man1/clamconf.1*
355  %doc %{_mandir}/man1/clamdscan.1*  %doc %{_mandir}/man1/clamdscan.1*
# Line 361  fi Line 369  fi
369  %dir %{_localstatedir}/clamav/  %dir %{_localstatedir}/clamav/
370  %dir %{_localstatedir}/log/clamav/  %dir %{_localstatedir}/log/clamav/
371  %ghost %{_localstatedir}/log/clamav/clamd.log  %ghost %{_localstatedir}/log/clamav/clamd.log
372    
373  %exclude %{_localstatedir}/clamav/*  %exclude %{_localstatedir}/clamav/*
374    %exclude %{_sysconfdir}/clamd.conf.sample
375    
376  %if %{!?_without_milter:1}0  %if %{!?_without_milter:1}0
377  %files milter  %files milter
378  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
379    %doc etc/clamav-milter.conf.sample
380  %doc %{_mandir}/man5/clamav-milter.conf.5*  %doc %{_mandir}/man5/clamav-milter.conf.5*
381  %doc %{_mandir}/man8/clamav-milter.8*  %doc %{_mandir}/man8/clamav-milter.8*
382  %config(noreplace) %{_sysconfdir}/clamav-milter.conf  %config(noreplace) %{_sysconfdir}/clamav-milter.conf
# Line 375  fi Line 386  fi
386  %else  %else
387  %exclude %{_mandir}/man5/clamav-milter.conf.5*  %exclude %{_mandir}/man5/clamav-milter.conf.5*
388  %endif  %endif
389    %exclude %{_sysconfdir}/clamav-milter.conf.sample
390    
391  %files db  %files db
392  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
# Line 396  fi Line 408  fi
408  %exclude %{_libdir}/libclamunrar_iface.la  %exclude %{_libdir}/libclamunrar_iface.la
409    
410  %changelog  %changelog
411  * Sat May 4 2013 David Beveridge <dave@bevhost.com> - 0.97.8-1  * Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme
412    - Update to release 0.99.1 [SME: 9267]
413    
414    * Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-2.sme
415    - Add pcre-devel to BuildRequires [SME: 9151]
416    
417    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-1.sme
418    - Update to release 0.99 [SME: 9151]
419    
420    * Wed May 13 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.7-1.sme
421    - Updated to release 0.98.7 [SME: 8922]
422    
423    * Thu Jan 29 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.6-1.sme
424    - Updated to release 0.98.6 [SME: 8822]
425    
426    * Tue Dec 16 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.98.5-1.sme
427    - Updated to release 0.98.5 [SME: 8729]
428    
429    * Sat Jun 21 2014 Ian Wells <esmith@wellsi.com> - 0.98.4-2.sme
430    - Add BuildRequires for openssl-devel and libxml2-devel [SME: 8457]
431    - Remove Packager and Vendor from spec file.
432    
433    * Thu Jun 17 2014 David Beveridge <dave@bevhost.com> - 0.98.4-1
434    - Updates to release 0.98.4.
435    
436    * Thu May 8 2014 David Beveridge <dave@bevhost.com> - 0.98.3-1
437    - Updated to release 0.98.3.
438    
439    * Sun Jan 26 2014 David Beveridge <dave@bevhost.com> - 0.98.1-1
440    - Updates to release 0.98.1.
441    
442    * Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-1
443    - Updated to release 0.98.
444    
445    * Tue May 07 2013 David Hrbáč <david@hrbac.cz> - 0.97.8-1
446  - Updated to release 0.97.8.  - Updated to release 0.97.8.
447    
448  * 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


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