/[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.2 by wellsi, Wed Jun 5 06:53:45 2013 UTC Revision 1.13 by vip-ire, Thu Jan 29 11:08:49 2015 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.6
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    
39    
40  ### 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)
41  #Requires: clamav-db = %{version}-%{release}  #Requires: clamav-db = %{version}-%{release}
# Line 122  you will need to install %{name}-devel. Line 122  you will need to install %{name}-devel.
122          s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;          s|^\@INSTALL_FRESHCLAM_CONF_TRUE\@|\t|g;
123      ' database/Makefile.in etc/Makefile.in      ' database/Makefile.in etc/Makefile.in
124    
125  %{__perl} -pi.orig -e '  %{__perl} -pi -e '
126          s|^(Example)|#$1|;          s|^(Example)|#$1|;
127          s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;          s|^#(LogFile) .+$|$1 %{_localstatedir}/log/clamav/clamd.log|;
128          s|^#(LogFileMaxSize) .*|$1 0|;          s|^#(LogFileMaxSize) .*|$1 0|;
# Line 150  you will need to install %{name}-devel. Line 150  you will need to install %{name}-devel.
150          s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;          s|^#(ArchiveMaxCompressionRatio) .+|$1 300|;
151          s|^#(ArchiveBlockEncrypted)|$1|;          s|^#(ArchiveBlockEncrypted)|$1|;
152          s|^#(ArchiveBlockMax)|$1|;          s|^#(ArchiveBlockMax)|$1|;
153      ' etc/clamd.conf      ' etc/clamd.conf.sample >etc/clamd.conf
154    
155  %{__perl} -pi.orig -e '  %{__perl} -pi -e '
156          s|^(Example)|#$1|;          s|^(Example)|#$1|;
157          s|^#(AllowSupplementaryGroups) .+$|$1 yes|;          s|^#(AllowSupplementaryGroups) .+$|$1 yes|;
158          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 162  you will need to install %{name}-devel.
162          s|^#(LogTime)|$1|;          s|^#(LogTime)|$1|;
163          s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|;          s|^#(MilterSocket) /.*$|$1 unix:%{_localstatedir}/clamav/clmilter.socket|;
164          s|^#(User) .+$|$1 clamav|;          s|^#(User) .+$|$1 clamav|;
165      ' etc/clamav-milter.conf      ' etc/clamav-milter.conf.sample >etc/clamav-milter.conf
166    
167  %{__perl} -pi.orig -e '  %{__perl} -p -e '
168          s|^(Checks) .+$|$1 24|;          s|^(Checks) .+$|$1 24|;
169          s|^(Example)|#$1|;          s|^(Example)|#$1|;
170          s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|;          s|^#(DatabaseDirectory) .+$|$1 %{_localstatedir}/clamav|;
# Line 172  you will need to install %{name}-devel. Line 172  you will need to install %{name}-devel.
172          s|^#(LogSyslog)|$1|;          s|^#(LogSyslog)|$1|;
173          s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;          s|^#(NotifyClamd) .+$|$1 %{_sysconfdir}/clamd.conf|;
174          s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;          s|^#(UpdateLogFile) .+$|$1 %{_localstatedir}/log/clamav/freshclam.log|;
175      ' etc/freshclam.conf      ' etc/freshclam.conf.sample >etc/freshclam.conf
176    
177  %{__cat} <<EOF >clamd.logrotate  %{__cat} <<EOF >clamd.logrotate
178  %{_localstatedir}/log/clamav/clamd.log {  %{_localstatedir}/log/clamav/clamd.log {
# Line 223  EOF Line 223  EOF
223  %{!?_without_milter:--enable-milter} \  %{!?_without_milter:--enable-milter} \
224      --with-dbdir="%{_localstatedir}/clamav" \      --with-dbdir="%{_localstatedir}/clamav" \
225      --with-group="clamav" \      --with-group="clamav" \
226      --with-libcurl \      --with-libcurl=%{_prefix} \
227      --with-user="clamav"      --with-user="clamav"
228  ### Disable JIT until it is implemented securely (RHbz #573191)  ### Disable JIT until it is implemented securely (RHbz #573191)
229  #    --enable-llvm \  #    --enable-llvm \
# Line 234  EOF Line 234  EOF
234  %{__make} install DESTDIR="%{buildroot}"  %{__make} install DESTDIR="%{buildroot}"
235    
236  %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd  %{__install} -Dp -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/clamd
237    %{__install} -Dp -m0644 etc/freshclam.conf %{buildroot}%{_sysconfdir}/freshclam.conf
238  %{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam  %{__install} -Dp -m0755 freshclam.cron %{buildroot}%{_sysconfdir}/cron.daily/freshclam
239  %{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam  %{__install} -Dp -m0644 freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam
240    %{__install} -Dp -m0644 etc/clamd.conf %{buildroot}%{_sysconfdir}/clamd.conf
241  %{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav  %{__install} -Dp -m0644 clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamav
242    
243  %if %{!?_without_milter:1}0  %if %{!?_without_milter:1}0
244    %{__install} -Dp -m0644 etc/clamav-milter.conf %{buildroot}%{_sysconfdir}/clamav-milter.conf
245  %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter  %{__install} -Dp -m0755 %{SOURCE2} %{buildroot}%{_initrddir}/clamav-milter
246  %{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter  %{__install} -Dp -m0644 clamav-milter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/clamav-milter
247  %else  %else
# Line 318  fi Line 321  fi
321  %files  %files
322  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
323  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README
324  %doc docs/*.pdf etc/freshclam.conf  %doc etc/freshclam.conf.sample
325    %doc docs/*.pdf
326  ### Remove test virus documents as they trigger clamav  ### Remove test virus documents as they trigger clamav
327  #%doc test/  #%doc test/
328  %doc %{_mandir}/man1/sigtool.1*  %doc %{_mandir}/man1/sigtool.1*
329  %doc %{_mandir}/man1/clambc.1*  %doc %{_mandir}/man1/clambc.1*
330  %doc %{_mandir}/man1/clamscan.1*  %doc %{_mandir}/man1/clamscan.1*
331    %doc %{_mandir}/man1/clamsubmit.1*
332  %doc %{_mandir}/man1/freshclam.1*  %doc %{_mandir}/man1/freshclam.1*
333  %doc %{_mandir}/man5/freshclam.conf.5*  %doc %{_mandir}/man5/freshclam.conf.5*
334  %config(noreplace) %{_sysconfdir}/freshclam.conf  %config(noreplace) %{_sysconfdir}/freshclam.conf
# Line 331  fi Line 336  fi
336  %{_bindir}/clamscan  %{_bindir}/clamscan
337  %{_bindir}/freshclam  %{_bindir}/freshclam
338  %{_bindir}/sigtool  %{_bindir}/sigtool
339    %{_bindir}/clamsubmit
340  %{_libdir}/libclamav.so.*  %{_libdir}/libclamav.so.*
341  %{_libdir}/libclamunrar.so.*  %{_libdir}/libclamunrar.so.*
342  %{_libdir}/libclamunrar_iface.so.*  %{_libdir}/libclamunrar_iface.so.*
# Line 338  fi Line 344  fi
344  %{_libdir}/libclamav.so  %{_libdir}/libclamav.so
345  %{_libdir}/libclamunrar.so  %{_libdir}/libclamunrar.so
346  %{_libdir}/libclamunrar_iface.so  %{_libdir}/libclamunrar_iface.so
347    %exclude %{_sysconfdir}/freshclam.conf.sample
348    
349  %files -n clamd  %files -n clamd
350  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
351  %doc etc/clamd.conf  %doc etc/clamd.conf.sample
352  %doc %{_mandir}/man1/clambc.1*  %doc %{_mandir}/man1/clambc.1*
353  %doc %{_mandir}/man1/clamconf.1*  %doc %{_mandir}/man1/clamconf.1*
354  %doc %{_mandir}/man1/clamdscan.1*  %doc %{_mandir}/man1/clamdscan.1*
# Line 361  fi Line 368  fi
368  %dir %{_localstatedir}/clamav/  %dir %{_localstatedir}/clamav/
369  %dir %{_localstatedir}/log/clamav/  %dir %{_localstatedir}/log/clamav/
370  %ghost %{_localstatedir}/log/clamav/clamd.log  %ghost %{_localstatedir}/log/clamav/clamd.log
371    
372  %exclude %{_localstatedir}/clamav/*  %exclude %{_localstatedir}/clamav/*
373    %exclude %{_sysconfdir}/clamd.conf.sample
374    
375  %if %{!?_without_milter:1}0  %if %{!?_without_milter:1}0
376  %files milter  %files milter
377  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
378    %doc etc/clamav-milter.conf.sample
379  %doc %{_mandir}/man5/clamav-milter.conf.5*  %doc %{_mandir}/man5/clamav-milter.conf.5*
380  %doc %{_mandir}/man8/clamav-milter.8*  %doc %{_mandir}/man8/clamav-milter.8*
381  %config(noreplace) %{_sysconfdir}/clamav-milter.conf  %config(noreplace) %{_sysconfdir}/clamav-milter.conf
# Line 375  fi Line 385  fi
385  %else  %else
386  %exclude %{_mandir}/man5/clamav-milter.conf.5*  %exclude %{_mandir}/man5/clamav-milter.conf.5*
387  %endif  %endif
388    %exclude %{_sysconfdir}/clamav-milter.conf.sample
389    
390  %files db  %files db
391  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
# Line 396  fi Line 407  fi
407  %exclude %{_libdir}/libclamunrar_iface.la  %exclude %{_libdir}/libclamunrar_iface.la
408    
409  %changelog  %changelog
410  * Sat May 4 2013 David Beveridge <dave@bevhost.com> - 0.97.8-1  * Thu Jan 29 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.6-1
411    - Updated to release 0.98.6 [SME: 8821]
412    
413    * Tue Dec 16 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.98.5-1
414    - Updated to release 0.98.5 [SME: 8728]
415    
416    * Sat Jun 21 2014 Ian Wells <esmith@wellsi.com> - 0.98.4-2.sme
417    - Add BuildRequires for openssl-devel and libxml2-devel [SME: 8457]
418    - Remove Packager and Vendor from spec file.
419    
420    * Thu Jun 17 2014 David Beveridge <dave@bevhost.com> - 0.98.4-1
421    - Updates to release 0.98.4.
422    
423    * Thu May 8 2014 David Beveridge <dave@bevhost.com> - 0.98.3-1
424    - Updated to release 0.98.3.
425    
426    * Sun Jan 26 2014 David Beveridge <dave@bevhost.com> - 0.98.1-1
427    - Updates to release 0.98.1.
428    
429    * Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-1
430    - Updated to release 0.98.
431    
432    * Tue May 07 2013 David Hrbáč <david@hrbac.cz> - 0.97.8-1
433  - Updated to release 0.97.8.  - Updated to release 0.97.8.
434    
435  * 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