diff --git a/.cvsignore b/.cvsignore index bac00d9..c6686a0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -6,3 +6,4 @@ curl-7.16.2.tar.bz2 curl-7.16.3.tar.bz2 curl-7.16.4.tar.bz2 curl-7.17.0.tar.bz2 +curl-7.17.1.tar.bz2 diff --git a/curl-7.16.4-ftp.patch b/curl-7.16.4-ftp.patch deleted file mode 100644 index 11e5d9a..0000000 --- a/curl-7.16.4-ftp.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- curl-7.16.4/lib/ftp.c.ftp 2007-07-02 00:01:19.000000000 +0200 -+++ curl-7.16.4/lib/ftp.c 2007-08-10 13:24:34.000000000 +0200 -@@ -2372,7 +2372,7 @@ static CURLcode ftp_state_user_resp(stru - (void)instate; /* no use for this yet */ - - /* some need password anyway, and others just return 2xx ignored */ -- if((ftpcode == 331 || ftpcode/100 == 2) && (ftpc->state == FTP_USER)) { -+ if((ftpcode == 331) && (ftpc->state == FTP_USER)) { - /* 331 Password required for ... - (the server requires to send the user's password too) */ - NBFTPSENDF(conn, "PASS %s", ftp->passwd?ftp->passwd:""); diff --git a/curl-7.17.1-sslgen.patch b/curl-7.17.1-sslgen.patch new file mode 100644 index 0000000..4ab3c8d --- /dev/null +++ b/curl-7.17.1-sslgen.patch @@ -0,0 +1,10 @@ +--- curl-7.17.1/lib/sslgen.c.orig 2007-11-16 22:48:48.000000000 -0500 ++++ curl-7.17.1/lib/sslgen.c 2007-11-16 22:49:19.000000000 -0500 +@@ -243,6 +243,7 @@ + #else + #ifdef USE_NSS + *done = TRUE; /* fallback to BLOCKING */ ++ conn->ssl[sockindex].use = TRUE; + return Curl_nss_connect(conn, sockindex); + #else + #ifdef USE_QSOSSL diff --git a/curl.spec b/curl.spec index f81c150..e58e5f0 100644 --- a/curl.spec +++ b/curl.spec @@ -3,16 +3,15 @@ Summary: A utility for getting files from remote servers (FTP, HTTP, and others) Name: curl -Version: 7.16.4 -Release: 10%{?dist} +Version: 7.17.1 +Release: 1%{?dist} License: MIT Group: Applications/Internet Source: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2 Patch1: curl-7.15.3-multilib.patch Patch2: curl-7.16.0-privlibs.patch -Patch3: curl-7.16.4-ftp.patch -Patch4: curl-7.16.4-nsspem.patch -Patch5: curl-7.16.4-curl-config.patch +Patch3: curl-7.16.4-curl-config.patch +Patch4: curl-7.17.1-sslgen.patch Provides: webclient URL: http://curl.haxx.se/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -52,9 +51,8 @@ use cURL's capabilities internally. %setup -q %patch1 -p1 -b .multilib %patch2 -p1 -b .privlibs -%patch3 -p1 -b .ftp -%patch4 -p1 -b .nsspem -%patch5 -p1 -b .curl-config +%patch3 -p1 -b .curl-config +%patch4 -p1 -b .sslgen %build if pkg-config nss ; then @@ -69,7 +67,7 @@ fi --disable-static sed -i -e 's,-L/usr/lib ,,g;s,-L/usr/lib64 ,,g;s,-L/usr/lib$,,g;s,-L/usr/lib64$,,g' \ Makefile libcurl.pc -make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} +make CFLAGS="$RPM_OPT_FLAGS -DHAVE_PK11_CREATEGENERICOBJECT" %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT @@ -116,6 +114,11 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/aclocal/libcurl.m4 %changelog +* Sat Nov 17 2007 Jindrich Novy 7.17.1-1 +- update to curl 7.17.1 +- include patch to enable SSL usage in NSS when a socket is opened + nonblocking, thanks to Rob Crittenden (rcritten@redhat.com) + * Wed Oct 24 2007 Jindrich Novy 7.16.4-10 - correctly provide/obsolete curl-devel (#130251) diff --git a/sources b/sources index 6cabfb3..c3d5059 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -ffa6d1f4e28ca493a43f9dc17882c4d8 curl-7.16.4.tar.bz2 +1fa635d1dfde8337c98c82749d75c1de curl-7.17.1.tar.bz2