Summary: A utility for getting files from remote servers (FTP, HTTP, and others) Name: curl Version: 7.22.0 Release: 1 License: MIT Group: Applications/Internet Source0: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2 Source1: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2.asc Source2: curlbuild.h URL: http://curl.haxx.se/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel >= 0.9.8, pkg-config, libidn-devel >= 1.15 BuildRequires: libssh2-devel >= 1.2.2, zlib-devel Requires: libidn >= 1.15, openssl >= 0.9.8, zlib, libssh2 >= 1.2.2 %description cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and Dict servers, using any of the supported protocols. cURL is designed to work without user interaction or any kind of interactivity. cURL offers many useful capabilities, like proxy support, user authentication, FTP upload, HTTP post, and file transfer resume. The library is available as 32-bit and 64-bit. %package devel Summary: Files needed for building applications with libcurl Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: libidn-devel, openssl-devel >= 0.9.8, pkg-config, zlib-devel, libssh2-devel %description devel cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and Dict servers, using any of the supported protocols. The curl-devel package includes files needed for developing applications which can use cURL's capabilities internally. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "cc -q64" or "gcc -maix64". %prep %setup -q %build export CONFIG_SHELL=/usr/bin/ksh export CONFIG_ENV_ARGS=/usr/bin/ksh # first build the 64-bit version export OBJECT_MODE=64 export CC="xlc -q64" ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --enable-shared --enable-static make %{?_smp_mflags} cp lib/.libs/libcurl.so.4 . cp include/curl/curlbuild.h curlbuild-ppc64.h make clean # now build the 32-bit version export OBJECT_MODE=32 export CC="xlc" ./configure \ --prefix=%{_prefix} \ --mandir=%{_prefix}/man \ --enable-shared --enable-static make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects /usr/bin/ar -X64 -q lib/.libs/libcurl.a ./libcurl.so.4 %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : mv ${RPM_BUILD_ROOT}%{_includedir}/curl/curlbuild.h ${RPM_BUILD_ROOT}%{_includedir}/curl/curlbuild-ppc32.h mv curlbuild-ppc64.h ${RPM_BUILD_ROOT}%{_includedir}/curl cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_includedir}/curl/curlbuild.h ( cd ${RPM_BUILD_ROOT} for dir in bin include lib do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done ) %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc CHANGES README* COPYING %doc docs/BUGS docs/FAQ docs/FEATURES %doc docs/MANUAL docs/RESOURCES %doc docs/TheArtOfHttpScripting docs/TODO %{_bindir}/curl %{_libdir}/*.a %{_mandir}/man1/curl.1 /usr/bin/curl /usr/lib/*.a %files devel %defattr(-,root,system) %doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS %{_bindir}/curl-config* %{_includedir}/%{name} %{_libdir}/*.la %{_libdir}/pkgconfig/*.pc %{_mandir}/man1/curl-config.1 %{_mandir}/man3/* /usr/bin/curl-config* /usr/include/* /usr/lib/*.la %changelog * Tue Nov 22 2011 Michael Perzl - 7.22.0-1 - updated to version 7.22.0 * Tue Nov 22 2011 Michael Perzl - 7.21.7-1 - updated to version 7.21.7 * Tue Dec 21 2010 Michael Perzl - 7.21.3-1 - updated to version 7.21.3 * Wed Oct 13 2010 Michael Perzl - 7.21.2-1 - updated to version 7.21.2 * Thu Aug 12 2010 Michael Perzl - 7.21.1-1 - updated to version 7.21.1 * Wed Jun 16 2010 Michael Perzl - 7.21.0-1 - updated to version 7.21.0 * Fri Apr 16 2010 Michael Perzl - 7.20.1-1 - updated to version 7.20.1 * Thu Feb 11 2010 Michael Perzl - 7.20.0-1 - updated to version 7.20.0 * Thu Nov 05 2009 Michael Perzl - 7.19.7-1 - updated to version 7.19.7 * Mon Sep 21 2009 Michael Perzl - 7.19.6-2 - fixed a 64-bit header file issue * Mon Aug 17 2009 Michael Perzl - 7.19.6-1 - updated to version 7.19.6 * Tue Jun 16 2009 Michael Perzl - 7.19.5-1 - updated to version 7.19.5 * Fri Mar 20 2009 Michael Perzl - 7.19.4-1 - updated to version 7.19.4 * Tue Jan 20 2009 Michael Perzl - 7.19.3-1 - updated to version 7.19.3 * Fri Nov 14 2008 Michael Perzl - 7.19.2-1 - updated to version 7.19.2 * Thu Nov 06 2008 Michael Perzl - 7.19.1-1 - updated to version 7.19.1 * Tue Sep 02 2008 Michael Perzl - 7.19.0-1 - updated to version 7.19.0 * Tue Jun 24 2008 Michael Perzl - 7.18.2-1 - updated to version 7.18.2 and built against new OpenSSL * Mon Mar 31 2008 Michael Perzl - 7.18.1-1 - updated to version 7.18.1 * Tue Feb 19 2008 Michael Perzl - 7.18.0-1 - updated to version 7.18.0 * Fri Dec 28 2007 Michael Perzl - 7.17.1-1 - first version for AIX V5.1 and higher