2015-02-03 01:06:31 +10:00
|
|
|
%define major 4
|
2012-02-01 15:13:20 +04:00
|
|
|
%define libname %mklibname %{name} %{major}
|
2013-09-05 15:44:01 +04:00
|
|
|
%define devname %mklibname %{name} -d
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
Summary: Gets a file from a FTP, GOPHER or HTTP server
|
|
|
|
Name: curl
|
|
|
|
Epoch: 1
|
2017-07-04 17:30:46 +03:00
|
|
|
Version: 7.54.1
|
2017-04-19 18:12:08 +03:00
|
|
|
Release: 1
|
2012-02-01 15:13:20 +04:00
|
|
|
License: BSD-like
|
|
|
|
Group: Networking/Other
|
2016-07-12 22:39:31 +03:00
|
|
|
Url: https://curl.haxx.se
|
2017-07-04 17:30:46 +03:00
|
|
|
Source0: https://curl.haxx.se/download/%{name}-%{version}.tar.lzma
|
|
|
|
Source1: https://curl.haxx.se/download/%{name}-%{version}.tar.lzma.asc
|
2016-03-10 19:45:26 +10:00
|
|
|
Patch0: curl-7.30.0-multilib.patch
|
2017-07-04 17:30:46 +03:00
|
|
|
#Patch1: curl-7.54.0-do-not-build-examples.patch
|
|
|
|
Patch2: curl-7.54.1-debug.patch
|
|
|
|
# Upstream patch fixing a segfault introduced in 7.54.1
|
|
|
|
Patch8: 6208547002b4d897c14364661ca4e2e5d0b80006.patch
|
2015-02-03 01:06:31 +10:00
|
|
|
BuildRequires: groff
|
2013-09-05 15:44:01 +04:00
|
|
|
BuildRequires: stunnel
|
|
|
|
BuildRequires: krb5-devel
|
|
|
|
BuildRequires: openldap-devel
|
2015-02-03 01:06:31 +10:00
|
|
|
BuildRequires: pkgconfig(libcares)
|
2013-01-16 20:45:59 +04:00
|
|
|
BuildRequires: pkgconfig(libidn)
|
|
|
|
BuildRequires: pkgconfig(libssh2)
|
2015-02-03 01:06:31 +10:00
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-01-26 16:35:43 +03:00
|
|
|
Requires: %{libname} = %{EVRD}
|
2012-02-01 15:13:20 +04:00
|
|
|
Provides: webfetch
|
|
|
|
|
|
|
|
%description
|
|
|
|
curl is a client to get documents/files from servers, using any of the
|
|
|
|
supported protocols. The command is designed to work without user
|
|
|
|
interaction or any kind of interactivity.
|
|
|
|
|
|
|
|
curl offers a busload of useful tricks like proxy support, user
|
|
|
|
authentication, ftp upload, HTTP post, file transfer resume and more.
|
|
|
|
|
|
|
|
This version is compiled with SSL (https) support.
|
|
|
|
|
2015-02-03 01:06:31 +10:00
|
|
|
%files
|
|
|
|
%{_bindir}/curl
|
|
|
|
%{_mandir}/man1/curl.1*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2012-02-01 15:13:20 +04:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: A library of functions for file transfer
|
|
|
|
Group: Networking/Other
|
|
|
|
Requires: rootcerts >= 1:20070713.00
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
libcurl is a library of functions for sending and receiving files through
|
|
|
|
various protocols, including http and ftp.
|
|
|
|
|
|
|
|
You should install this package if you plan to use any applications that
|
|
|
|
use libcurl.
|
|
|
|
|
2015-02-03 01:06:31 +10:00
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libcurl.so.%{major}*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2013-09-05 15:44:01 +04:00
|
|
|
%package -n %{devname}
|
2012-02-01 15:13:20 +04:00
|
|
|
Summary: Header files and static libraries for libcurl
|
|
|
|
Group: Development/C
|
2012-07-04 18:06:35 +04:00
|
|
|
Requires: %{libname} = %{EVRD}
|
|
|
|
Provides: %{name}-devel = %{EVRD}
|
2012-02-01 15:13:20 +04:00
|
|
|
|
2013-09-05 15:44:01 +04:00
|
|
|
%description -n %{devname}
|
2012-02-01 15:13:20 +04:00
|
|
|
libcurl is a library of functions for sending and receiving files through
|
|
|
|
various protocols, including http and ftp.
|
|
|
|
|
|
|
|
You should install this package if you wish to develop applications that
|
|
|
|
use libcurl.
|
|
|
|
|
2015-02-03 01:06:31 +10:00
|
|
|
%files -n %{devname}
|
|
|
|
%docdir docs/
|
2016-11-03 15:29:38 +03:00
|
|
|
%doc docs/BUGS docs/KNOWN_BUGS docs/FAQ CHANGES
|
|
|
|
%doc docs/FEATURES docs/RESOURCES docs/TODO docs/THANKS
|
2015-02-03 01:06:31 +10:00
|
|
|
%{_bindir}/curl-config
|
|
|
|
%{multiarch_bindir}/curl-config
|
|
|
|
%{_libdir}/libcurl.so
|
|
|
|
%{_includedir}/curl
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_mandir}/man1/curl-config.1*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2012-02-01 15:13:20 +04:00
|
|
|
%package examples
|
|
|
|
Summary: Example files for %{name} development
|
|
|
|
Group: Development/C
|
2015-02-03 01:06:31 +10:00
|
|
|
Requires: %{name}-devel = %{EVRD}
|
2013-01-16 20:45:59 +04:00
|
|
|
BuildArch: noarch
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
%description examples
|
|
|
|
Example files for %{name} development.
|
|
|
|
|
2015-02-03 01:06:31 +10:00
|
|
|
%files examples
|
|
|
|
%doc docs/examples
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
|
2012-02-01 15:13:20 +04:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-09-05 15:44:01 +04:00
|
|
|
%apply_patches
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
|
|
|
|
2016-09-29 17:37:35 +10:00
|
|
|
%configure2_5x \
|
2013-01-16 20:45:59 +04:00
|
|
|
--disable-static \
|
2012-02-01 15:13:20 +04:00
|
|
|
--with-ssl \
|
|
|
|
--without-gnutls \
|
|
|
|
--with-zlib \
|
2013-01-16 20:45:59 +04:00
|
|
|
--with-lber-lib=lber \
|
2012-02-01 15:13:20 +04:00
|
|
|
--with-libidn \
|
|
|
|
--with-ssh2 \
|
|
|
|
--with-random \
|
|
|
|
--enable-hidden-symbols \
|
|
|
|
--enable-optimize \
|
|
|
|
--enable-nonblocking \
|
|
|
|
--enable-thread \
|
|
|
|
--enable-crypto-auth \
|
|
|
|
--enable-libgcc \
|
|
|
|
--enable-ldaps \
|
|
|
|
--enable-ipv6 \
|
|
|
|
--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
|
|
|
|
--with-gssapi=%{_prefix} \
|
2013-10-10 16:25:53 +04:00
|
|
|
--enable-ares
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
2013-09-05 15:44:01 +04:00
|
|
|
# we don't want them in curl-examples:
|
|
|
|
rm -r docs/examples/.deps ||:
|
|
|
|
|
2012-02-01 15:13:20 +04:00
|
|
|
# disable tests that want to connect/run sshd, which is quite impossible
|
2013-09-05 15:44:01 +04:00
|
|
|
#%check
|
2013-02-08 17:39:09 +04:00
|
|
|
# Some tests fail at random inside ABF (timeouts?), but work in local builds.
|
|
|
|
# Let's make a test failure non-fatal for the moment.
|
2013-09-05 15:44:01 +04:00
|
|
|
#make test TEST_Q='-a -p -v !SCP !SFTP !SOCKS4 !SOCKS5 !TFTP !198' || :
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
%install
|
2013-01-16 20:45:59 +04:00
|
|
|
%makeinstall_std
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
# [july 2008] HACK. to be replaced by a real fix
|
2013-01-16 20:45:59 +04:00
|
|
|
sed -i -e 's!-Wl,--as-needed!!' -e 's!-Wl,--no-undefined!!' %{buildroot}%{_bindir}/%{name}-config
|
|
|
|
sed -i -e 's!-Wl,--as-needed!!' -e 's!-Wl,--no-undefined!!' %{buildroot}%{_libdir}/pkgconfig/*.pc
|
2012-02-01 15:13:20 +04:00
|
|
|
|
|
|
|
%multiarch_binaries %{buildroot}%{_bindir}/%{name}-config
|
|
|
|
|
|
|
|
# (tpg) use rootcerts's certificates #35917
|
|
|
|
find %{buildroot} -name ca-bundle.crt -exec rm -f '{}' \;
|
|
|
|
|
2012-10-16 15:26:25 +00:00
|
|
|
# we don't package mk-ca-bundle so we don't need man for it
|
2013-01-16 20:45:59 +04:00
|
|
|
rm -f %{buildroot}%{_mandir}/man1/mk-ca-bundle.1*
|