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)
21 cURL is a tool for getting files from HTTP, FTP, FILE, LDAP, LDAPS,
22 DICT, TELNET and TFTP servers, using any of the supported protocols.
23 cURL is designed to work without user interaction or any kind of
24 interactivity. cURL offers many useful capabilities, like proxy support,
25 user authentication, FTP upload, HTTP post, and file transfer resume.
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 Provides: curl-devel = %{version}-%{release}
48 Obsoletes: curl-devel < %{version}-%{release}
50 %description -n libcurl-devel
51 cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and
52 Dict servers, using any of the supported protocols. The libcurl-devel
53 package includes files needed for developing applications which can
54 use cURL's capabilities internally.
67 export CPPFLAGS="-DHAVE_PK11_CREATEGENERICOBJECT"
69 %if "%{?tizen_profile_name}" == "tv"
70 CFLAGS+=" -DTIZEN_TV_EXT"
71 %reconfigure --without-nss --without-gnutls --with-openssl --disable-ipv6 \
73 %reconfigure --without-nss --without-gnutls --with-openssl --enable-ipv6 \
75 --with-ca-path=/etc/ssl/certs \
77 --with-lber-lib=lber \
78 --enable-manual --enable-versioned-symbols --enable-ares --enable-debug --enable-curldebug \
82 #--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
84 sed -i -e 's,-L/usr/lib ,,g;s,-L/usr/lib64 ,,g;s,-L/usr/lib$,,g;s,-L/usr/lib64$,,g' \
88 -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
89 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
96 rm -rf $RPM_BUILD_ROOT
98 make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
100 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
101 install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
102 install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
105 # don't need curl's copy of the certs; use openssl's
106 find ${RPM_BUILD_ROOT} -name ca-bundle.crt -exec rm -f '{}' \;
107 rm -rf ${RPM_BUILD_ROOT}/usr/share/man
110 rm -rf %{buildroot}/usr/share/license
111 mkdir -p %{buildroot}/usr/share/license
112 cp COPYING %{buildroot}/usr/share/license/%{name}
114 %post -n libcurl -p /sbin/ldconfig
116 %postun -n libcurl -p /sbin/ldconfig
122 %manifest %{name}.manifest
123 %{_libdir}/libcurl.so.*
124 /usr/share/license/%{name}
126 %files -n libcurl-devel
127 %{_bindir}/curl-config*
130 %{_libdir}/pkgconfig/*.pc
131 %{_datadir}/aclocal/libcurl.m4