]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav.spec
update BR
[packages/clamav.git] / clamav.spec
index 32ac1fb6ed46e1150b175f812a726b4efcf739d4..b96836bf86c57c8035d37eaa1e6394e33c8a2f2c 100644 (file)
 %bcond_without llvm            # LLVM support
 %endif
 
+%ifarch x32
+%undefine with_llvm
+%endif
+
+%bcond_with    system_llvm
+
 Summary:       An anti-virus utility for Unix
 Summary(pl.UTF-8):     Narzędzie antywirusowe dla Uniksów
 Name:          clamav
-Version:       0.98.3
-Release:       2
+Version:       0.99.1
+Release:       1
 License:       GPL v2+
 Group:         Daemons
 Source0:       http://downloads.sourceforge.net/clamav/%{name}-%{version}.tar.gz
-# Source0-md5: b649d35ee85d4d6075a98173dd255c17
+# Source0-md5: cf1f3cbe62a08c9165801f79239166ff
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Source3:       %{name}-milter.init
@@ -35,21 +41,24 @@ Patch2:             am-nosilentrules.patch
 %endif
 Patch3:                ac2.68.patch
 Patch4:                %{name}-openssl.patch
+Patch5:                %{name}-major.patch
+Patch6:                x32.patch
 URL:           http://www.clamav.net/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bzip2-devel
+BuildRequires: check-devel
 BuildRequires: curl-devel
 BuildRequires: gmp-devel
 BuildRequires: libltdl-devel
 %{?with_milter:BuildRequires:  libmilter-devel}
-BuildRequires: libstdc++-devel
+BuildRequires: libstdc++-devel >= 5:3.4
 BuildRequires: libtool
 %{?with_milter:BuildRequires:  libwrap-devel}
-BuildRequires: llvm-devel
-%{?with_llvm:BuildRequires:    llvm-devel}
+%{?with_llvm:%{?with_system_llvm:BuildRequires:        llvm-devel < 3.7}}
 BuildRequires: ncurses-devel
 BuildRequires: openssl-devel
+BuildRequires: pkgconfig
 BuildRequires: rpm >= 4.4.9-56
 BuildRequires: rpmbuild(macros) >= 1.647
 BuildRequires: zlib-devel
@@ -172,8 +181,12 @@ Biblioteki statyczne clamav.
 %if "%{pld_release}" == "ac"
 %patch2 -p1
 %endif
+%if "%{pld_release}" != "ac"
 %patch3 -p1
-%patch4 -p1
+%endif
+#%patch4 -p1
+%patch5 -p1
+%patch6 -p1
 
 %build
 %{__libtoolize}
@@ -185,6 +198,7 @@ Biblioteki statyczne clamav.
        --disable-silent-rules \
        --disable-clamav \
        --enable-clamdtop \
+       %{?with_llvm:--enable-llvm %{?with_system_llvm:--with-system-llvm}} \
        %{?with_milter:--enable-milter} \
        --with-dbdir=/var/lib/%{name} \
        --with-no-cache \
@@ -367,11 +381,11 @@ fi
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libclamav.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libclamav.so.6
+%attr(755,root,root) %ghost %{_libdir}/libclamav.so.7
 %attr(755,root,root) %{_libdir}/libclamunrar.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libclamunrar.so.6
+%attr(755,root,root) %ghost %{_libdir}/libclamunrar.so.7
 %attr(755,root,root) %{_libdir}/libclamunrar_iface.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libclamunrar_iface.so.6
+%attr(755,root,root) %ghost %{_libdir}/libclamunrar_iface.so.7
 
 %files devel
 %defattr(644,root,root,755)
This page took 0.038418 seconds and 4 git commands to generate.