ソースを参照

add optional Kerberos support

Ralf S. Engelschall 19 年 前
コミット
d8e1a10d80
1 ファイル変更15 行追加5 行削除
  1. 15 5
      curl/curl.spec

+ 15 - 5
curl/curl.spec

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