]> git.pld-linux.org Git - packages/clamav.git/blobdiff - clamav.spec
- added bcond for curl, disabled by default as previous versions were
[packages/clamav.git] / clamav.spec
index 961d0d14490c72347368c1069a1a85e816e0670e..abed590331ba7fcfeb4c3f2c5b219b30a8f738ec 100644 (file)
@@ -3,6 +3,7 @@
 #
 # Conditional build:
 %bcond_with    milter  # without milter subpackage
+%bcond_with    curl    # without curl
 #
 Summary:       An anti-virus utility for Unix
 Summary(pl):   Antywirusowe narzêdzie dla Uniksów
@@ -35,9 +36,9 @@ Patch2:               %{name}-nolibs.patch
 URL:           http://www.clamav.net/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: curl-devel
+%{?with_curl:BuildRequires:    curl-devel}
 BuildRequires: gmp-devel
-BuildRequires: libidn-devel
+%{?with_curl:BuildRequires:    libidn-devel}
 %{?with_milter:BuildRequires:  libwrap-devel}
 BuildRequires: libtool
 BuildRequires: rpmbuild(macros) >= 1.159
@@ -54,6 +55,7 @@ Requires(post,preun): /sbin/chkconfig
 Requires:      /usr/sbin/usermod
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      bc
+%{?with_curl:Requires: curl}
 Provides:      group(clamav)
 Provides:      user(clamav)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -158,6 +160,7 @@ mv -f acinclude.m4.tmp acinclude.m4
 %{__automake}
 %configure \
        --disable-clamav \
+       %{?!with_curl:--without-libcurl} \
        %{?with_milter:--enable-milter} \
        --with-dbdir=/var/lib/%{name}
 %{__make}
This page took 0.05989 seconds and 4 git commands to generate.