From a38093656dd86d0dd80c15f620be82ff7779511d Mon Sep 17 00:00:00 2001 From: hawk Date: Sun, 17 Oct 2004 17:46:13 +0000 Subject: [PATCH] - added bcond for curl, disabled by default as previous versions were build without curl, fixed curl and libidn R,BR Changed files: clamav.spec -> 1.124 --- clamav.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clamav.spec b/clamav.spec index 961d0d1..abed590 100644 --- a/clamav.spec +++ b/clamav.spec @@ -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} -- 2.43.0