curl/curl.spec

151 lines
3.9 KiB
RPMSpec
Raw Normal View History

2013-09-05 15:44:01 +04: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
%ifarch aarch64
%define debug_package %{nil}
%endif
2012-02-01 15:13:20 +04:00
Summary: Gets a file from a FTP, GOPHER or HTTP server
Name: curl
Epoch: 1
2014-11-21 16:25:45 +03:00
Version: 7.39.0
Release: 1
2012-02-01 15:13:20 +04:00
License: BSD-like
Group: Networking/Other
2013-09-05 15:44:01 +04:00
Url: http://curl.haxx.se
2012-02-01 15:13:20 +04:00
Source0: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
2013-01-16 20:45:59 +04:00
Patch4: %{name}-7.26.0-multilib.patch
2012-07-04 18:06:35 +04:00
Patch6: %{name}-7.26.0-do-not-build-examples.patch
2013-09-05 15:44:01 +04:00
BuildRequires: groff-base
BuildRequires: stunnel
BuildRequires: krb5-devel
BuildRequires: openldap-devel
2013-01-16 20:45:59 +04:00
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libidn)
BuildRequires: pkgconfig(libssh2)
2014-06-24 15:31:56 +04:00
BuildRequires: pkgconfig(libcares)
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.
%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.
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.
%package examples
Summary: Example files for %{name} development
Group: Development/C
2013-09-05 15:44:01 +04: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.
%prep
%setup -q
2013-09-05 15:44:01 +04:00
%apply_patches
2012-02-01 15:13:20 +04:00
%build
autoreconf -fiv
2014-06-24 15:31:56 +04:00
%configure \
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 '{}' \;
# 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*
2012-02-01 15:13:20 +04:00
%files
%{_bindir}/curl
%{_mandir}/man1/curl.1*
%files -n %{libname}
2013-09-05 15:44:01 +04:00
%{_libdir}/libcurl.so.%{major}*
2012-02-01 15:13:20 +04:00
2013-09-05 15:44:01 +04:00
%files -n %{devname}
2012-02-01 15:13:20 +04:00
%docdir docs/
%doc docs/BUGS docs/KNOWN_BUGS docs/CONTRIBUTE docs/FAQ CHANGES
%doc docs/FEATURES docs/RESOURCES docs/TODO docs/THANKS docs/INTERNALS
%{_bindir}/curl-config
%{multiarch_bindir}/curl-config
%{_libdir}/libcurl.so
%{_includedir}/curl
%{_libdir}/pkgconfig/*.pc
2014-06-24 15:31:56 +04:00
%{_datadir}/aclocal/*.m4
2012-02-01 15:13:20 +04:00
%{_mandir}/man1/curl-config.1*
%{_mandir}/man3/*
%files examples
%doc docs/examples