/[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.11 by wellsi, Sat Jun 21 17:52:39 2014 UTC Revision 1.23 by jcrisp, Mon Nov 12 22:37:19 2018 UTC
# Line 11  Line 11 
11  %{?rh7:%define _without_milter 1}  %{?rh7:%define _without_milter 1}
12  %{?el2:%define _without_milter 1}  %{?el2:%define _without_milter 1}
13    
14    # Work around https://bugzilla.clamav.net/show_bug.cgi?id=12162 by bundling
15    # newer zlib version from RHEL/CentOS 7 (#1600458)
16    %global zlibversion 1.2.7
17    %global zlibrelease 17%{?dist}
18    
19    
20  Summary: Anti-virus software  Summary: Anti-virus software
21  Name: clamav  Name: clamav
22  Version: 0.98.4  Version: 0.100.2
23  Release: 1%{?dist}  Release: 2%{?dist}
24  License: GPL  # ClamAV is GPLv2, zlib is zlib, /contrib/dotzlib/ has Boost license
25    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
26    License: GPLv2 and zlib and Boost
27    %else
28    License: GPLv2
29    %endif
30    
31    
32  Group: Applications/System  Group: Applications/System
33  URL: http://www.clamav.net/  URL: http://www.clamav.net/
34    
 Packager: Dag Wieers <dag@wieers.com>  
 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/  
   
35  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
36  Source1: clamav.init  Source1: clamav.init
37  Source2: clamav-milter.init  Source2: clamav-milter.init
38  Source10: http://db.local.clamav.net/main.cvd  Source10: http://db.local.clamav.net/main.cvd
39  Source11: http://db.local.clamav.net/daily.cvd  Source11: http://db.local.clamav.net/daily.cvd
40    
41    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
42    # Cheerfully borrowed from zlib.spec in RHEL/CentOS 7
43    Source90:   http://www.zlib.net/zlib-%{zlibversion}.tar.bz2
44    #Source90: zlib-1.2.7.tar.bz2
45    %endif
46    
47    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
48    # Cheerfully borrowed from zlib.spec in RHEL/CentOS 7, see
49    # also https://git.centos.org/tree/rpms!zlib.git/c7/SOURCES
50    Patch90:       zlib-1.2.5-minizip-fixuncrypt.patch
51    # resolves: #805113
52    Patch91:       zlib-1.2.7-optimized-s390.patch
53    # resolves: #844791
54    Patch92:       zlib-1.2.7-z-block-flush.patch
55    # resolves: #1127330
56    Patch93:       zlib-1.2.7-fix-serious-but-very-rare-decompression-bug-in-inftr.patch
57    # resolves: #1337441
58    Patch94:       zlib-1.2.7-Fix-bug-where-gzopen-gzclose-would-write-an-empty-fi.patch
59    %endif
60    
61  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
62    
63  BuildRequires: bzip2-devel  BuildRequires: bzip2-devel
64  BuildRequires: curl-devel  BuildRequires: curl-devel
65  BuildRequires: gmp-devel  BuildRequires: gmp-devel
66  BuildRequires: ncurses-devel  BuildRequires: ncurses-devel
 BuildRequires: zlib-devel  
67  %{!?_without_milter:BuildRequires: sendmail-devel >= 8.12}  %{!?_without_milter:BuildRequires: sendmail-devel >= 8.12}
68  BuildRequires: check-devel  BuildRequires: check-devel
69    BuildRequires: openssl-devel
70    BuildRequires: libxml2-devel
71    BuildRequires: pcre-devel
72    BuildRequires: xz
73    
74  ### 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)
75  #Requires: clamav-db = %{version}-%{release}  #Requires: clamav-db = %{version}-%{release}
76  Requires: clamav-db  Requires: clamav-db
77    
78    Provides: bundled(libmspack) = 0.5-0.1.alpha.modified_by_clamav
79    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
80    Provides: bundled(zlib) = %{zlibversion}-%{zlibrelease}
81    %else
82    Requires: zlib-devel
83    %endif
84    
85  ### Fedora Extras introduced them differently :(  ### Fedora Extras introduced them differently :(
86  Obsoletes: libclamav <= %{version}-%{release}  Obsoletes: libclamav <= %{version}-%{release}
87  Obsoletes: clamav-lib <= %{version}-%{release}  Obsoletes: clamav-lib <= %{version}-%{release}
# Line 164  you will need to install %{name}-devel. Line 205  you will need to install %{name}-devel.
205          s|^#(User) .+$|$1 clamav|;          s|^#(User) .+$|$1 clamav|;
206      ' etc/clamav-milter.conf.sample >etc/clamav-milter.conf      ' etc/clamav-milter.conf.sample >etc/clamav-milter.conf
207    
208    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
209    # Cheerfully borrowed from zlib.spec in RHEL/CentOS 7, see
210    # https://git.centos.org/blob/rpms!zlib.git/c7/SPECS!zlib.spec
211    tar xfj %{SOURCE90}
212    pushd zlib-%{zlibversion}
213    %patch90 -p1 -b .fixuncrypt
214    %ifarch s390 s390x
215    %patch91 -p1 -b .optimized-deflate
216    %endif
217    %patch92 -p1 -b .z-flush
218    %patch93 -p1
219    %patch94 -p1
220    popd
221    %endif
222    
223  %{__perl} -p -e '  %{__perl} -p -e '
224          s|^(Checks) .+$|$1 24|;          s|^(Checks) .+$|$1 24|;
225          s|^(Example)|#$1|;          s|^(Example)|#$1|;
# Line 210  CLAMAV_FLAGS="--config-file=%{_sysconfdi Line 266  CLAMAV_FLAGS="--config-file=%{_sysconfdi
266  EOF  EOF
267    
268  %build  %build
269    
270    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
271    # Cheerfully borrowed from zlib.spec in RHEL/CentOS 7, see
272    # https://git.centos.org/blob/rpms!zlib.git/c7/SPECS!zlib.spec
273    pushd zlib-%{zlibversion}
274    %ifarch ppc64 ppc64le
275    export CFLAGS="$RPM_OPT_FLAGS -fPIC -O3"
276    %else
277    export CFLAGS="$RPM_OPT_FLAGS -fPIC"
278    %endif
279    
280    export LDFLAGS="$LDFLAGS -Wl,-z,relro"
281    
282    ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix} --static
283    make %{?_smp_mflags}
284    make install DESTDIR=%{_builddir}/%{name}-%{version}/zlib-%{zlibversion}-%{zlibrelease}
285    popd
286    %endif
287    
288    
289  %configure  \  %configure  \
290      --program-prefix="%{?_program_prefix}" \      --program-prefix="%{?_program_prefix}" \
291      --disable-clamav \      --disable-clamav \
# Line 223  EOF Line 299  EOF
299  %{!?_without_milter:--enable-milter} \  %{!?_without_milter:--enable-milter} \
300      --with-dbdir="%{_localstatedir}/clamav" \      --with-dbdir="%{_localstatedir}/clamav" \
301      --with-group="clamav" \      --with-group="clamav" \
302      --with-libcurl \      --with-libcurl=%{_prefix} \
303      --with-user="clamav"      --with-user="clamav"
304    
305    %if 0%{?zlibversion:1} && 0%{?zlibrelease:1}
306        --with-zlib=%{_builddir}/%{name}-%{version}/zlib-%{zlibversion}-%{zlibrelease}%{_prefix} \
307    %endif
308    
309  ### Disable JIT until it is implemented securely (RHbz #573191)  ### Disable JIT until it is implemented securely (RHbz #573191)
310  #    --enable-llvm \  #    --enable-llvm \
311  %{__make} %{?_smp_mflags}  %{__make} %{?_smp_mflags}
# Line 320  fi Line 401  fi
401    
402  %files  %files
403  %defattr(-, root, root, 0755)  %defattr(-, root, root, 0755)
404  %doc AUTHORS BUGS ChangeLog COPYING FAQ INSTALL NEWS README  %doc ChangeLog.md COPYING* INSTALL.md NEWS.md README.md
405  %doc etc/freshclam.conf.sample  %doc etc/freshclam.conf.sample
406  %doc docs/*.pdf  %doc docs/*.pdf
407  ### Remove test virus documents as they trigger clamav  ### Remove test virus documents as they trigger clamav
# Line 328  fi Line 409  fi
409  %doc %{_mandir}/man1/sigtool.1*  %doc %{_mandir}/man1/sigtool.1*
410  %doc %{_mandir}/man1/clambc.1*  %doc %{_mandir}/man1/clambc.1*
411  %doc %{_mandir}/man1/clamscan.1*  %doc %{_mandir}/man1/clamscan.1*
 %doc %{_mandir}/man1/clamsubmit.1*  
412  %doc %{_mandir}/man1/freshclam.1*  %doc %{_mandir}/man1/freshclam.1*
413  %doc %{_mandir}/man5/freshclam.conf.5*  %doc %{_mandir}/man5/freshclam.conf.5*
414  %config(noreplace) %{_sysconfdir}/freshclam.conf  %config(noreplace) %{_sysconfdir}/freshclam.conf
# Line 339  fi Line 419  fi
419  %{_libdir}/libclamav.so.*  %{_libdir}/libclamav.so.*
420  %{_libdir}/libclamunrar.so.*  %{_libdir}/libclamunrar.so.*
421  %{_libdir}/libclamunrar_iface.so.*  %{_libdir}/libclamunrar_iface.so.*
422    %{_libdir}/libclammspack.so.*
423  # 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.
424  %{_libdir}/libclamav.so  %{_libdir}/libclamav.so
425  %{_libdir}/libclamunrar.so  %{_libdir}/libclamunrar.so
426  %{_libdir}/libclamunrar_iface.so  %{_libdir}/libclamunrar_iface.so
427    %{_libdir}/libclammspack.so
428  %exclude %{_sysconfdir}/freshclam.conf.sample  %exclude %{_sysconfdir}/freshclam.conf.sample
429    
430  %files -n clamd  %files -n clamd
# Line 401  fi Line 483  fi
483  %{_bindir}/clamav-config  %{_bindir}/clamav-config
484  %{_includedir}/clamav.h  %{_includedir}/clamav.h
485  %{_libdir}/pkgconfig/libclamav.pc  %{_libdir}/pkgconfig/libclamav.pc
486    %{_libdir}/pkgconfig/libclammspack.pc
487  %exclude %{_libdir}/libclamav.la  %exclude %{_libdir}/libclamav.la
488  %exclude %{_libdir}/libclamunrar.la  %exclude %{_libdir}/libclamunrar.la
489  %exclude %{_libdir}/libclamunrar_iface.la  %exclude %{_libdir}/libclamunrar_iface.la
490    %exclude %{_libdir}/libclammspack.la
491    
492  %changelog  %changelog
493    * Mon Nov 12 2018 John Crisp <jcrisp@safeandsoundit.co.uk> - 0.100.3-1
494    - Bundle zlib 1.2.7-17.el7 to avoid malformed database errors (#1600458)
495    - [SME: 10645]
496    
497    * Wed Oct 24 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.100.2-1.sme
498    - Update to 0.100.2 [SME: 10579]
499    
500    * Wed Mar 14 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.4-1.sme
501    - Update to release 0.99.4 [SME: 10529]
502    
503    * Sat Jan 27 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.99.3-1.sme
504    - Update to release 0.99.3 [SME: 10499]
505    
506    * Tue May 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.2-1.sme
507    - Update to release 0.99.2 [SME: 9489]
508    
509    * Thu Mar 3 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99.1-1.sme
510    - Update to release 0.99.1 [SME: 9267]
511    
512    * Tue Jan 12 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-2.sme
513    - Add pcre-devel to BuildRequires [SME: 9151]
514    
515    * Wed Jan 6 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.99-1.sme
516    - Update to release 0.99 [SME: 9151]
517    
518    * Wed May 13 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.7-1.sme
519    - Updated to release 0.98.7 [SME: 8922]
520    
521    * Thu Jan 29 2015 Daniel Berteaud <daniel@firewall-services.com> - 0.98.6-1.sme
522    - Updated to release 0.98.6 [SME: 8822]
523    
524    * Tue Dec 16 2014 Daniel Berteaud <daniel@firewall-services.com> - 0.98.5-1.sme
525    - Updated to release 0.98.5 [SME: 8729]
526    
527    * Sat Jun 21 2014 Ian Wells <esmith@wellsi.com> - 0.98.4-2.sme
528    - Add BuildRequires for openssl-devel and libxml2-devel [SME: 8457]
529    - Remove Packager and Vendor from spec file.
530    
531  * Thu Jun 17 2014 David Beveridge <dave@bevhost.com> - 0.98.4-1  * Thu Jun 17 2014 David Beveridge <dave@bevhost.com> - 0.98.4-1
532  - Updates to release 0.98.4.  - Updates to release 0.98.4.
533    
534  * Thu May 8 2014 David Beveridge <dave@bevhost.com> - 0.98.3-1  * Thu May 8 2014 David Beveridge <dave@bevhost.com> - 0.98.3-1
535  - Updates to release 0.98.3.  - Updated to release 0.98.3.
536    
537  * Sun Jan 26 2014 David Beveridge <dave@bevhost.com.> - 0.98.1-1  * Sun Jan 26 2014 David Beveridge <dave@bevhost.com> - 0.98.1-1
538  - Updates to release 0.98.1.  - Updates to release 0.98.1.
539    
540  * Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-1  * Tue Sep 24 2013 Dag Wieers <dag@wieers.com> - 0.98-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