/[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.1 by slords, Fri May 24 16:20:30 2013 UTC Revision 1.22 by dani, Wed Oct 24 12:03:16 2018 UTC
# Line 13  Line 13 
13    
14  Summary: Anti-virus software  Summary: Anti-virus software
15  Name: clamav  Name: clamav
16  Version: 0.97.7  Version: 0.100.2
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 317  fi Line 321  fi
321    
322  %files  %files
323  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
324  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README  %doc ChangeLog.md COPYING* INSTALL.md NEWS.md README.md
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*
# Line 334  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    %{_libdir}/libclammspack.so.*
343  # 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.
344  %{_libdir}/libclamav.so  %{_libdir}/libclamav.so
345  %{_libdir}/libclamunrar.so  %{_libdir}/libclamunrar.so
346  %{_libdir}/libclamunrar_iface.so  %{_libdir}/libclamunrar_iface.so
347    %{_libdir}/libclammspack.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 391  fi Line 403  fi
403  %{_bindir}/clamav-config  %{_bindir}/clamav-config
404  %{_includedir}/clamav.h  %{_includedir}/clamav.h
405  %{_libdir}/pkgconfig/libclamav.pc  %{_libdir}/pkgconfig/libclamav.pc
406    %{_libdir}/pkgconfig/libclammspack.pc
407  %exclude %{_libdir}/libclamav.la  %exclude %{_libdir}/libclamav.la
408  %exclude %{_libdir}/libclamunrar.la  %exclude %{_libdir}/libclamunrar.la
409  %exclude %{_libdir}/libclamunrar_iface.la  %exclude %{_libdir}/libclamunrar_iface.la
410    %exclude %{_libdir}/libclammspack.la
411    
412  %changelog  %changelog
413    * Wed Oct 24 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.100.2-1.sme
414    - Update to 0.100.2 [SME: 10579]
415    
416    * Wed Mar 14 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.4-1.sme
417    - Update to release 0.99.4 [SME: 10529]
418    
419    * Sat Jan 27 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.3-1.sme
420    - Update to release 0.99.3 [SME: 10499]
421    
422    * Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.2-1.sme
423    - Update to release 0.99.2 [SME: 9489]
424    
425    * Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme
426    - Update to release 0.99.1 [SME: 9267]
427    
428    * Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-2.sme
429    - Add pcre-devel to BuildRequires [SME: 9151]
430    
431    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-1.sme
432    - Update to release 0.99 [SME: 9151]
433    
434    * Wed May 13 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.7-1.sme
435    - Updated to release 0.98.7 [SME: 8922]
436    
437    * Thu Jan 29 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.6-1.sme
438    - Updated to release 0.98.6 [SME: 8822]
439    
440    * Tue Dec 16 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.98.5-1.sme
441    - Updated to release 0.98.5 [SME: 8729]
442    
443    * Sat Jun 21 2014 Ian Wells <esmith@wellsi.com> - 0.98.4-2.sme
444    - Add BuildRequires for openssl-devel and libxml2-devel [SME: 8457]
445    - Remove Packager and Vendor from spec file.
446    
447    * Thu Jun 17 2014 David Beveridge <dave@bevhost.com> - 0.98.4-1
448    - Updates to release 0.98.4.
449    
450    * Thu May 8 2014 David Beveridge <dave@bevhost.com> - 0.98.3-1
451    - Updated to release 0.98.3.
452    
453    * Sun Jan 26 2014 David Beveridge <dave@bevhost.com> - 0.98.1-1
454    - Updates to release 0.98.1.
455    
456    * Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-1
457    - Updated to release 0.98.
458    
459    * Tue May 07 2013 David Hrbáč <david@hrbac.cz> - 0.97.8-1
460    - Updated to release 0.97.8.
461    
462  * 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
463  - Updated to release 0.97.7.  - Updated to release 0.97.7.
464    


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