Accepting request 41607 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/curl based on submit request 41607 from user elvigia OBS-URL: https://build.opensuse.org/request/show/41607 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/curl?expand=0&rev=49
This commit is contained in:
parent
4d52ff15b1
commit
21bc3dc397
@ -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
|
||||
|
||||
|
25
curl.spec
25
curl.spec
@ -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
|
||||
@ -32,7 +41,7 @@ BuildRequires: stunnel
|
||||
%endif
|
||||
#define cvs_suffix -20090302
|
||||
Version: 7.20.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
AutoReqProv: on
|
||||
# bug437293
|
||||
%ifarch ppc64
|
||||
@ -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,10 @@ 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 +140,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}
|
||||
|
Loading…
Reference in New Issue
Block a user