2 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
5 Group: Applications/Internet
7 URL: http://curl.haxx.se/
8 #Source0: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
9 Source0: %{name}-%{version}.tar.gz
10 Source1001: %{name}.manifest
12 BuildRequires: pkgconfig(openssl)
13 BuildRequires: pkgconfig(libidn)
14 BuildRequires: pkgconfig(zlib)
15 BuildRequires: pkgconfig(libcares)
16 BuildRequires: pkgconfig(libnghttp2)
22 curl is a client to get documents/files from servers, using any of the
23 supported protocols. The command is designed to work without user
24 interaction or any kind of interactivity.
26 curl offers a busload of useful tricks like proxy support, user
27 authentication, ftp upload, HTTP post, file transfer resume and more.
30 Summary: A library for getting files from web servers
31 Group: System/Libraries
33 Requires(post): /sbin/ldconfig
34 Requires(postun): /sbin/ldconfig
36 %description -n libcurl
37 This package provides a way for applications to use FTP, HTTP, Gopher and
38 other servers for getting files.
41 %package -n libcurl-devel
42 Summary: Files needed for building applications with libcurl
43 Group: Development/Libraries
45 Requires: libcurl = %{version}-%{release}
46 Requires: libidn-devel
47 Requires: nghttp2-devel
48 Provides: curl-devel = %{version}-%{release}
49 Obsoletes: curl-devel < %{version}-%{release}
51 %description -n libcurl-devel
52 libcurl is the core engine of curl; this packages contains all the libs,
53 headers, and manual pages to develop applications using libcurl.
64 export CPPFLAGS="-DHAVE_PK11_CREATEGENERICOBJECT"
66 %if "%{TIZEN_PROFILE_TV}" == "1"
67 CFLAGS+=" -DTIZEN_TV_EXT"
68 %reconfigure --without-nss --without-gnutls --with-openssl --disable-ipv6 \
70 %reconfigure --without-nss --without-gnutls --with-openssl --enable-ipv6 \
72 --with-ca-path==/etc/ssl/certs \
73 --with-ca-bundle=/etc/ssl/ca-bundle.pem \
75 --with-lber-lib=lber \
76 --enable-manual --enable-versioned-symbols --enable-ares --enable-debug --enable-curldebug \
79 --without-zsh-functions-dir \
81 #--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
83 sed -i -e 's,-L/usr/lib ,,g;s,-L/usr/lib64 ,,g;s,-L/usr/lib$,,g;s,-L/usr/lib64$,,g' \
87 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
88 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
95 rm -rf $RPM_BUILD_ROOT
97 make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
99 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
100 install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
101 install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
104 # don't need curl's copy of the certs; use openssl's
105 find ${RPM_BUILD_ROOT} -name ca-bundle.crt -exec rm -f '{}' \;
106 rm -rf ${RPM_BUILD_ROOT}/usr/share/man
108 %post -n libcurl -p /sbin/ldconfig
110 %postun -n libcurl -p /sbin/ldconfig
117 %manifest %{name}.manifest
118 %{_libdir}/libcurl.so.*
121 %files -n libcurl-devel
122 %{_bindir}/curl-config*
125 %{_libdir}/pkgconfig/*.pc
126 %{_datadir}/aclocal/libcurl.m4