File python-curl.spec of Package python-curl
#
# spec file for package python-curl (Version 7.18.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-curl
BuildRequires: libcurl-devel >= 7.18.1
BuildRequires: openssl-devel python-devel
Version: 7.18.1
Release: 5.1
Summary: Python module interface to the cURL library
Source: pycurl-%{version}.tar.bz2
Patch0: pycurl-7.18.1-nostaticlibs.patch
URL: http://pycurl.sourceforge.net/
Group: Development/Libraries/Python
License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%description
PycURL is a Python module interface to the cURL library. PycURL can be
used to fetch objects identified by an URL within a Python program.
Authors:
--------
Kjetil Jacobsen <kjetilja@gmail.com>
Markus F.X.J. Oberhumer <markus@oberhumer.com>
%prep
%setup -q -n pycurl-%{version}
%patch0
%build
export CFLAGS="$RPM_OPT_FLAGS"
python ./setup.py build
%install
python ./setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog COPYING README TODO examples doc/*.html
%{py_sitedir}/pycurl.so
%{py_sitedir}/curl
%if %{suse_version} > 1010
%{py_sitedir}/*.egg-info
%endif
%changelog
* Fri Apr 25 2008 jfunk@funktronics.ca
- Update to 7.18.1:
* Added POST301, SSH_HOST_PUBLIC_KEY_MD5,
COPYPOSTFIELDS and PROXY_TRANSFER_MODE options.
* Check for static libs in setup.py to better detect
whether libcurl was linked with OpenSSL or GNUTLS.
* PycURL is now dual licensed under the LGPL and
a license similar to the cURL license (an MIT/X
derivate).
- Version 7.16.4:
* Allow any callable object as the callback function.
This change comes handy when you would like to use objects
which are callable but are not functions or methods, for
example those objects created by the functions in the functools
module (patch by Daniel Pena Arteaga <dpena at ph.tum.de>).
* Added NEW_DIRECTORY_PERMS and NEW_FILE_PERMS options.
- Version 7.16.2.1:
* Added IOCMD_NOP and IOCMD_RESTARTREAD for ioctl callback
handling (patch by Mark Eichin).
* Use Py_ssize_t where appropriate for Python 2.5 and 64-bit
compatibility. This fixes the problem reported by Aaron
Hill, where the exception "pycurl.error: (2, '')" is thrown
when calling setopt(pycurl.POSTFIELDS,...) on 64-bit
platforms.
- Version 7.16.2:
* Added options HTTP_TRANSFER_DECODING, HTTP_CONTENT_DECODING,
TIMEOUT_MS, CONNECTTIMEOUT_MS from libcurl 7.16.2.
* Right-strip URLs read from files in the test scripts
to avoid sending requests with '\n' at the end.
- Version 7.16.1:
* Added constants for all libcurl (error) return codes. They
are named the same as the macro constants in curl.h but prefixed
with E_ instead of CURLE. Return codes for the multi API are
prefixed with M_ instead of CURLM.
* Added CURLOPT_FTP_SSL_CCC, CURLOPT_SSH_PUBLIC_KEYFILE,
CURLOPT_SSH_PRIVATE_KEYFILE, CURLOPT_SSH_AUTH_TYPES.
* Removed CLOSEPOLICY and friends since this option is now
deprecated in libcurl.
* Set the _use_datetime attribute on the CURLTransport class
to unbreak xmlrpc_curl.py on Python 2.5.
- Version 7.16.0 [no public release]:
* Added CURLOPT_SSL_SESSIONID_CACHE.
* Removed SOURCE_* options since they are no longer
supported by libcurl.
* Mon Oct 2 2006 cthiel@suse.de
- fix build on older distributions
* Sun Oct 1 2006 cthiel@suse.de
- update to version 7.15.5.1
* Added test for basic ftp usage (tests/test_ftp.py).
* Fix broken ssl mutex lock funcction when using GNU TLS
* Thu Sep 21 2006 cthiel@suse.de
- fix build with python 2.5
* Mon Aug 14 2006 cthiel@suse.de
- update to version 7.15.5
* Added CURLOPT_FTP_ALTERNATIVE_TO_USER, CURLOPT_MAX_SEND_SPEED_LARGE, and
CURLOPT_MAX_RECV_SPEED_LARGE.
- requires curl >= 7.15.5
* Sat Aug 5 2006 cthiel@suse.de
- initial package (version 7.15.4.2)