]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- added bcond for curl, disabled by default as previous versions were
authorhawk <hawk@pld-linux.org>
Sun, 17 Oct 2004 17:46:13 +0000 (17:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  build without curl, fixed curl and libidn R,BR

Changed files:
    clamav.spec -> 1.124

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.109427 seconds and 4 git commands to generate.