Kaynağa Gözat

add optional ARES support

Ralf S. Engelschall 19 yıl önce
ebeveyn
işleme
2692d505f9
1 değiştirilmiş dosya ile 11 ekleme ve 1 silme
  1. 11 1
      curl/curl.spec

+ 11 - 1
curl/curl.spec

@@ -33,12 +33,13 @@ Class:        BASE
 Group:        Web
 License:      MIT-style
 Version:      7.16.0
-Release:      20061030
+Release:      20061207
 
 #   package options
 %option       with_ssl   yes
 %option       with_zlib  yes
 %option       with_idn   no
+%option       with_ares  no
 
 #   list of sources
 Source0:      http://curl.haxx.se/download/curl-%{version}.tar.bz2
@@ -60,6 +61,10 @@ PreReq:       zlib
 BuildPreReq:  libidn, pkgconfig
 PreReq:       libidn
 %endif
+%if "%{with_ares}" == "yes"
+BuildPreReq:  ares
+PreReq:       ares
+%endif
 AutoReq:      no
 AutoReqProv:  no
 
@@ -118,6 +123,11 @@ AutoReqProv:  no
         --with-libidn=%{l_prefix} \
 %else
         --without-libidn \
+%endif
+%if "%{with_ares}" == "yes"
+        --enable-ares=%{l_prefix} \
+%else
+        --disable-ares \
 %endif
         --disable-shared
     %{l_make} %{l_mflags -O}