Accepting request 41589 from home:lnussel:nss

Copy from home:lnussel:nss/curl via accept of submit request 41589 revision 3.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/41589
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/curl?expand=0&rev=38
This commit is contained in:
Cristian Rodríguez
2010-06-16 14:02:02 +00:00
committed by Git OBS Bridge
parent 110cb150fa
commit d915a84230
2 changed files with 26 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 2 14:12:54 UTC 2010 - lnussel@suse.de
- allowing switching to nss instead of openssl via bcond
-------------------------------------------------------------------
Mon May 10 01:12:22 UTC 2010 - crrodriguez@opensuse.org

View File

@@ -17,9 +17,18 @@
# norootforbuild
%bcond_without openssl
%bcond_with mozilla_nss
%bcond_without testsuite
Name: curl
BuildRequires: libidn-devel openldap2-devel openssl-devel pkg-config zlib-devel
BuildRequires: libidn-devel openldap2-devel pkg-config zlib-devel
%if %{with openssl}
BuildRequires: openssl-devel
%endif
%if %{with mozilla_nss}
BuildRequires: mozilla-nss-devel
%endif
%if 0%{suse_version} > 930
BuildRequires: krb5-devel
%else
@@ -88,8 +97,15 @@ export CFLAGS="$RPM_OPT_FLAGS"
./configure \
--prefix=%{_prefix} \
--enable-ipv6 \
%if %{with openssl}
--with-ssl \
--with-ca-path=/etc/ssl/certs/ \
%else
--without-ssl \
%if %{with mozilla_nss}
--with-nss \
%endif
%endif
%if %suse_version > 930
--with-gssapi=/usr/lib/mit \
%else
@@ -103,6 +119,9 @@ export CFLAGS="$RPM_OPT_FLAGS"
./libtool --config | grep -q link_all_deplibs=no
# enable-hidden-symbols needs gcc4 and causes that curl exports only its API
make %{?jobs:-j%jobs}
%if %{with testsuite}
%check
cd tests
make
# make sure the testsuite runs don't race on MP machines in autobuild
@@ -120,6 +139,7 @@ perl ./runtests.pl -a -b$base || {
echo "WARNING: runtests.pl failed with code $?, continuing nevertheless"
%endif
}
%endif
%install
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}