%bcond_with ares # with c-ares (asynchronous DNS operations) library (disables IPv6)
%bcond_without ssh # without SSH support
%bcond_without ssl # without SSL support
-%bcond_without heimdal # without HEIMDAL support
+%bcond_without krb5 # without MIT Kerberos 5 support
#
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Summary(es.UTF-8): Un cliente para bajar archivos de servidores (FTP, HTTP, y otros)
Summary(uk.UTF-8): Утиліта для отримання файлів з серверів FTP, HTTP та інших
Name: curl
Version: 7.16.1
-Release: 1
+Release: 2
License: MIT-like
Group: Applications/Networking
Source0: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
# Source0-md5: acdab0b0467c55e10ed02d2afed80575
Patch0: %{name}-no_strip.patch
Patch1: %{name}-ac.patch
-Patch2: %{name}-heimdal.patch
URL: http://curl.haxx.se/
BuildRequires: autoconf >= 2.57
BuildRequires: automake
%{?with_ares:BuildRequires: c-ares-devel}
-%{?with_heimdal:BuildRequires: heimdal-devel >= 0.7}
+%{?with_krb5:BuildRequires: krb5-devel}
BuildRequires: libidn-devel >= 0.4.1
%{?with_ssh:BuildRequires: libssh2-devel}
BuildRequires: libtool
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
%{?with_ares:Requires: c-ares-devel}
-%{?with_heimdal:Requires: heimdal-devel}
+%{?with_krb5:Requires: krb5-devel}
Requires: libidn-devel >= 0.4.1
%{?with_ssl:Requires: openssl-devel >= 0.9.7c}
Requires: zlib-devel
%setup -q
%patch0 -p1
%patch1 -p1
-%{?with_heimdal:%patch2 -p0}
%build
%{__libtoolize}
%configure \
%{?with_ssl:--with-ssl=%{_prefix}} \
%{?with_ssl:--with-ca-bundle=/usr/share/ssl/ca-bundle.crt} \
- %{?with_heimdal:--with-gssapi=%{_prefix}} \
+ %{?with_krb5:--with-gssapi=%{_prefix}} \
%{?with_ares:--enable-ares=%{_prefix}} \
--%{?with_ares:dis}%{!?with_ares:en}able-ipv6