2007-01-16 00:08:21 +01:00
|
|
|
#
|
2011-08-03 16:03:40 +02:00
|
|
|
# spec file for package curl
|
2007-01-16 00:08:21 +01:00
|
|
|
#
|
2015-02-15 18:07:47 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:08:21 +01:00
|
|
|
#
|
2008-09-05 22:26:25 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:08:21 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-18 13:51:12 +01:00
|
|
|
|
2010-10-22 19:36:46 +02:00
|
|
|
%bcond_without openssl
|
|
|
|
%bcond_with mozilla_nss
|
|
|
|
%bcond_without testsuite
|
2007-01-16 00:08:21 +01:00
|
|
|
Name: curl
|
2015-10-10 13:43:37 +02:00
|
|
|
Version: 7.45.0
|
2012-05-14 10:01:48 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A Tool for Transferring Data from URLs
|
2012-11-06 09:40:05 +01:00
|
|
|
License: BSD-3-Clause and MIT
|
2012-05-14 10:01:48 +02:00
|
|
|
Group: Productivity/Networking/Web/Utilities
|
|
|
|
Url: http://curl.haxx.se/
|
|
|
|
Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
|
|
|
Source2: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma.asc
|
|
|
|
Source3: baselibs.conf
|
2012-12-18 11:09:31 +01:00
|
|
|
Source4: %{name}.keyring
|
2014-11-15 17:38:21 +01:00
|
|
|
Patch0: libcurl-ocloexec.patch
|
2012-05-14 10:01:48 +02:00
|
|
|
Patch1: dont-mess-with-rpmoptflags.diff
|
2013-02-18 10:00:56 +01:00
|
|
|
Patch3: curl-secure-getenv.patch
|
2015-03-24 21:46:39 +01:00
|
|
|
# PATCH-FIX-OPENSUSE lnussel@suse.de -- use openssl's built in verify path as fallback
|
|
|
|
Patch4: curl-7.41.0-use-openssl-s-built-in-verify-path-as-fallback.diff
|
2015-05-21 16:02:13 +02:00
|
|
|
BuildRequires: groff
|
2014-11-15 17:38:21 +01:00
|
|
|
BuildRequires: krb5-mini-devel
|
2012-02-02 19:50:23 +01:00
|
|
|
BuildRequires: libtool
|
2012-01-18 13:50:45 +01:00
|
|
|
BuildRequires: lzma
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: pkg-config
|
2015-02-15 18:07:47 +01:00
|
|
|
BuildRequires: pkgconfig(libidn)
|
|
|
|
BuildRequires: pkgconfig(libmetalink)
|
2015-10-19 09:55:37 +02:00
|
|
|
BuildRequires: pkgconfig(libnghttp2)
|
2015-02-15 18:07:47 +01:00
|
|
|
BuildRequires: pkgconfig(libssh2)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2014-11-15 17:38:21 +01:00
|
|
|
Requires: libcurl4 = %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-22 19:36:46 +02:00
|
|
|
%if %{with openssl}
|
2015-02-15 18:07:47 +01:00
|
|
|
BuildRequires: pkgconfig(libssl)
|
2010-10-22 19:36:46 +02:00
|
|
|
%endif
|
|
|
|
%if %{with mozilla_nss}
|
|
|
|
BuildRequires: mozilla-nss-devel
|
|
|
|
%endif
|
2014-03-13 14:18:58 +01:00
|
|
|
#BuildRequires: openssh
|
2008-09-15 12:13:37 +02:00
|
|
|
%if 0%{?_with_stunnel:1}
|
2007-11-19 10:19:29 +01:00
|
|
|
# used by the testsuite
|
|
|
|
BuildRequires: stunnel
|
2008-09-15 12:13:37 +02:00
|
|
|
%endif
|
2008-11-02 15:37:35 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: curl-64bit
|
|
|
|
%endif
|
2011-08-15 14:06:41 +02:00
|
|
|
|
2007-01-16 00:08:21 +01:00
|
|
|
%description
|
|
|
|
Curl is a client to get documents and files from or send documents to a
|
2008-09-05 22:26:25 +02:00
|
|
|
server using any of the supported protocols (HTTP, HTTPS, FTP, FTPS,
|
|
|
|
TFTP, DICT, TELNET, LDAP, or FILE). The command is designed to work
|
|
|
|
without user interaction or any kind of interactivity.
|
2007-01-16 00:08:21 +01:00
|
|
|
|
2007-04-12 17:12:15 +02:00
|
|
|
%package -n libcurl4
|
2011-11-29 09:10:06 +01:00
|
|
|
Summary: Version 4 of cURL shared library
|
2007-04-12 17:12:15 +02:00
|
|
|
Group: Productivity/Networking/Web/Utilities
|
|
|
|
|
|
|
|
%description -n libcurl4
|
2011-11-29 09:10:06 +01:00
|
|
|
The cURL shared library version 4 for accessing data using different
|
|
|
|
network protocols.
|
2007-04-12 17:12:15 +02:00
|
|
|
|
|
|
|
%package -n libcurl-devel
|
|
|
|
Summary: A Tool for Transferring Data from URLs
|
2007-10-09 16:57:38 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-05-14 10:01:48 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libcurl4 = %{version}
|
2007-05-06 17:12:17 +02:00
|
|
|
# curl-devel (v 7.15.5) was last used in 10.2
|
2007-08-03 15:41:16 +02:00
|
|
|
Provides: curl-devel <= 7.15.5
|
2007-06-03 21:11:39 +02:00
|
|
|
Obsoletes: curl-devel < 7.16.2
|
2007-04-12 17:12:15 +02:00
|
|
|
|
|
|
|
%description -n libcurl-devel
|
|
|
|
Curl is a client to get documents and files from or send documents to a
|
|
|
|
server using any of the supported protocols (HTTP, HTTPS, FTP, GOPHER,
|
|
|
|
DICT, TELNET, LDAP, or FILE). The command is designed to work without
|
|
|
|
user interaction or any kind of interactivity.
|
2007-01-16 00:08:21 +01:00
|
|
|
|
|
|
|
%prep
|
2011-11-29 09:41:20 +01:00
|
|
|
%setup -q
|
2014-11-15 17:38:21 +01:00
|
|
|
%patch0
|
2012-01-18 13:50:45 +01:00
|
|
|
%patch1
|
2013-02-18 10:00:56 +01:00
|
|
|
%patch3
|
2015-03-24 21:46:39 +01:00
|
|
|
%patch4 -p1
|
2014-04-10 11:06:38 +02:00
|
|
|
|
2007-01-16 00:08:21 +01:00
|
|
|
%build
|
2013-04-13 17:46:54 +02:00
|
|
|
# curl complains if macro definition is contained in CFLAGS
|
|
|
|
# see m4/xc-val-flgs.m4
|
|
|
|
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
2015-02-26 11:52:00 +01:00
|
|
|
CFLAGS=$(echo "%{optflags}" | sed -e 's/-D_FORTIFY_SOURCE=2//')
|
2013-04-13 17:46:54 +02:00
|
|
|
export CPPFLAGS CFLAGS
|
2015-01-02 16:18:12 +01:00
|
|
|
export CFLAGS="$CFLAGS -fPIE"
|
|
|
|
export LDFLAGS="$LDFLAGS -pie"
|
2012-01-18 13:51:12 +01:00
|
|
|
autoreconf -fi
|
2015-10-19 11:39:40 +02:00
|
|
|
# local hack to make curl-config --libs stop printing libraries it depends on
|
|
|
|
# (currently, libtool sets link_all_deplibs=(yes|unknown) everywhere,
|
|
|
|
# will hopefully change in the future)
|
|
|
|
sed -i 's/\(link_all_deplibs=\)unknown/\1no/' configure
|
2012-07-30 09:42:51 +02:00
|
|
|
%configure \
|
2007-02-02 16:10:02 +01:00
|
|
|
--enable-ipv6 \
|
2010-10-22 19:36:46 +02:00
|
|
|
%if %{with openssl}
|
2007-02-02 16:10:02 +01:00
|
|
|
--with-ssl \
|
2015-10-10 13:43:37 +02:00
|
|
|
--without-ca-path \
|
|
|
|
--without-ca-bundle \
|
2010-10-22 19:36:46 +02:00
|
|
|
%else
|
|
|
|
--without-ssl \
|
|
|
|
%if %{with mozilla_nss}
|
|
|
|
--with-nss \
|
|
|
|
%endif
|
|
|
|
%endif
|
2014-11-15 17:38:21 +01:00
|
|
|
--with-gssapi=%{_libexecdir}/mit \
|
2010-03-26 16:17:01 +01:00
|
|
|
--with-libssh2\
|
2007-02-02 16:10:02 +01:00
|
|
|
--enable-hidden-symbols \
|
2011-04-09 23:16:06 +02:00
|
|
|
--disable-static \
|
2015-02-15 18:07:47 +01:00
|
|
|
--enable-threaded-resolver \
|
2015-06-19 15:41:49 +02:00
|
|
|
--with-libmetalink
|
2011-04-09 23:16:06 +02:00
|
|
|
|
2015-10-19 11:39:40 +02:00
|
|
|
# if this fails, the above sed hack did not work
|
|
|
|
./libtool --config | grep -q link_all_deplibs=no
|
2007-05-23 17:37:15 +02:00
|
|
|
# enable-hidden-symbols needs gcc4 and causes that curl exports only its API
|
2011-09-18 20:45:34 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-10-22 19:36:46 +02:00
|
|
|
|
|
|
|
%if %{with testsuite}
|
|
|
|
%check
|
2015-02-26 11:52:00 +01:00
|
|
|
pushd tests
|
2014-11-15 17:38:21 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-07-10 17:25:05 +02:00
|
|
|
# make sure the testsuite runs don't race on MP machines in autobuild
|
|
|
|
if test -z "$BUILD_INCARNATION" -a -r /.buildenv; then
|
|
|
|
. /.buildenv
|
|
|
|
fi
|
|
|
|
if test -z "$BUILD_INCARNATION"; then
|
|
|
|
BUILD_INCARNATION=0
|
|
|
|
fi
|
2015-08-01 10:40:59 +02:00
|
|
|
|
2007-07-10 17:25:05 +02:00
|
|
|
base=$((8990 + $BUILD_INCARNATION * 20))
|
2015-08-01 10:40:59 +02:00
|
|
|
# bug940009 do not run flaky tests for any architecture
|
|
|
|
# at least test 1510 do fail for i586 and ppc64le
|
|
|
|
perl ./runtests.pl -a -b$base '!flaky' || exit
|
|
|
|
|
2015-02-26 11:52:00 +01:00
|
|
|
popd
|
2015-05-21 16:02:13 +02:00
|
|
|
%endif
|
2007-01-16 00:08:21 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-26 11:52:00 +01:00
|
|
|
%make_install
|
|
|
|
rm -f %{buildroot}%{_libdir}/libcurl.la
|
|
|
|
install -Dm 0644 docs/libcurl/libcurl.m4 %{buildroot}%{_datadir}/aclocal/libcurl.m4
|
2007-01-16 00:08:21 +01:00
|
|
|
|
2007-06-03 21:11:39 +02:00
|
|
|
%post -n libcurl4 -p /sbin/ldconfig
|
2007-01-16 00:08:21 +01:00
|
|
|
|
2007-06-03 21:11:39 +02:00
|
|
|
%postun -n libcurl4 -p /sbin/ldconfig
|
2007-01-16 00:08:21 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-10-09 16:57:38 +02:00
|
|
|
%doc README RELEASE-NOTES
|
|
|
|
%doc docs/{BUGS,FAQ,FEATURES,MANUAL,RESOURCES,TODO,TheArtOfHttpScripting}
|
2014-11-15 17:38:21 +01:00
|
|
|
%{_bindir}/curl
|
2015-05-21 16:02:13 +02:00
|
|
|
%{_mandir}/man1/curl.1%{ext_man}
|
2007-01-16 00:08:21 +01:00
|
|
|
|
2007-04-12 17:12:15 +02:00
|
|
|
%files -n libcurl4
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libcurl.so.4*
|
|
|
|
|
|
|
|
%files -n libcurl-devel
|
2007-01-16 00:08:21 +01:00
|
|
|
%defattr(-,root,root)
|
2014-11-15 17:38:21 +01:00
|
|
|
%{_bindir}/curl-config
|
|
|
|
%{_includedir}/curl
|
2015-02-26 11:52:00 +01:00
|
|
|
%dir %{_datadir}/aclocal/
|
2014-11-15 17:38:21 +01:00
|
|
|
%{_datadir}/aclocal/libcurl.m4
|
2007-01-16 00:08:21 +01:00
|
|
|
%{_libdir}/libcurl.so
|
|
|
|
%{_libdir}/pkgconfig/libcurl.pc
|
2012-07-30 09:42:51 +02:00
|
|
|
%{_mandir}/man1/curl-config.1%{ext_man}
|
|
|
|
%{_mandir}/man3/*
|
2009-03-03 22:12:52 +01:00
|
|
|
%doc docs/libcurl/symbols-in-versions
|
2007-12-12 18:05:45 +01:00
|
|
|
|
2007-02-16 18:20:49 +01:00
|
|
|
%changelog
|