hi everyone,

You will find here a small patch for the curl.spec file.

1) To build curl with the the rigth ssl depencies (ex zlib), i use
"pkg-config --libs openssl"  to populate LIBS.

2) i use the full path for %{l_prefix}/bin/pkg-config

Thanks and regards

PS: How can we upload diff , previously located in
ftp://ftp.openpkg.org/contrib/00UPLOAD/ ?



diff -p -up ./curl.spec.orig ./curl.spec
--- ./curl.spec.orig    2009-11-04 17:46:03.000000000 +0100
+++ ./curl.spec 2010-02-07 17:32:00.000000000 +0100
@@ -32,7 +32,7 @@ Class:        BASE
 Group:        Web
 License:      MIT-style
 Version:      7.19.7
-Release:      20091104
+Release:      20100207
 
 #   package options
 %option       with_ssl       yes
@@ -118,12 +118,15 @@ AutoReqProv:  no
     export CPPFLAGS="%{l_cppflags}"
     export LDFLAGS="%{l_ldflags}"
     export LIBS=""
+%if "%{with_ssl}" == "yes"
+    LIBS=" "
+%endif
 %if "%{with_idn}" == "yes"
-    CFLAGS=" "
-    LIBS=" "
+    CFLAGS=" "
+    LIBS=" "
 %endif
 %if "%{with_ldap}" == "yes"
-    LIBS="-lldap -llber -lssl -lcrypto"
+    LIBS=" "
 %endif
     export GREP="grep"
     ./configure 

Reply via email to