2011-09-20 12:05:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pycurl
|
|
|
|
#
|
2017-04-06 15:49:32 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-09-20 12:05:30 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-11-04 11:07:50 +00:00
|
|
|
|
2011-09-20 12:05:30 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-02 14:06:38 +00:00
|
|
|
|
2017-04-06 15:49:32 +00:00
|
|
|
%define oldpython python
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-09-20 12:05:30 +00:00
|
|
|
Name: python-pycurl
|
2017-04-06 15:49:32 +00:00
|
|
|
Version: 7.43.0
|
2011-09-20 12:05:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: PycURL -- cURL library module
|
2012-01-20 08:25:21 +00:00
|
|
|
License: LGPL-2.1+ and MIT
|
2011-09-20 12:05:30 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-04-06 15:49:32 +00:00
|
|
|
Url: http://pycurl.sourceforge.net/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-%{version}.tar.gz
|
|
|
|
# PATCH-FIX-UPSTREAM remove __DATE__ and __TIME__
|
2014-05-20 14:19:04 +00:00
|
|
|
Patch0: pycurl-no-runtime-curlvercheck.patch
|
2017-04-06 15:49:32 +00:00
|
|
|
BuildRequires: %{python_module CherryPy}
|
|
|
|
BuildRequires: %{python_module bottle}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module flaky}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module pyflakes}
|
|
|
|
BuildRequires: %{python_module simplejson}
|
2011-09-20 12:05:30 +00:00
|
|
|
BuildRequires: libcurl-devel >= 7.19.0
|
|
|
|
BuildRequires: openssl-devel
|
2017-04-06 15:49:32 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2014-05-20 14:19:04 +00:00
|
|
|
Requires: python-CherryPy
|
Accepting request 293100 from home:Nijel:branches:devel:languages:python
- Run testsuite during build
- Update to 7.19.5.1:
* Added CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5_HOSTNAME.
* setup.py now prints PycURL-specific option help when -h is used.
* LibreSSL is now supported (patch by JiCiT.)
* Fixed an oversight that broke PycURL building against libcurl 7.19.4
through 7.21.1. The bug was introduced in PycURL 7.19.5.
* Tests are now included in source distributions again, thanks to
Kamil Dudka and Johan Bergstroem.
* Added CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT (libcurl 7.20.0+)
and CURLOPT_MAIL_AUTH (libcurl 7.25.0+).
* Tests removed from source and binary distributions.
* Documentation greatly improved. Quickstart guide added.
* pycurl.Curl, pycurl.CurlMulti and pycurl.CurlShare are now classes
rather than factory functions. Previously, the classes were "hidden"
(they were accessible as e.g. type(pycurl.Curl()), but could not be
instantiated, nor could class methods be obtained from the classes.
Please see this mailing list post for further information:
http://curl.haxx.se/mail/curlpython-2014-06/0004.html
* When passing a file-like object to READDATA option, PycURL was
mistakenly looking for write method on this object. Now read method
is looked up, as would be expected.
* Python 3.4 is now officially supported.
* Windows packages now build libcurl against zlib.
* CherryPy is no longer required for the test suite, ssl module from
the Python standard library is used instead.
* Fixed a reference leak of SOCKET and TIMER callbacks on
CurlMulti instances, thanks to Ben Darnell.
* Fixed build against openssl on cygwin, where pycurl needs to link
OBS-URL: https://build.opensuse.org/request/show/293100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=23
2015-03-25 14:11:46 +00:00
|
|
|
Requires: python-bottle
|
2014-05-20 14:19:04 +00:00
|
|
|
Requires: python-simplejson
|
2017-04-06 15:49:32 +00:00
|
|
|
%ifpython2
|
|
|
|
Provides: %{oldpython}-curl = %{version}
|
|
|
|
Obsoletes: %{oldpython}-curl < %{version}
|
2011-09-20 12:05:30 +00:00
|
|
|
%endif
|
2017-04-06 15:49:32 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%python_subpackages
|
2011-09-20 12:05:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides bindings for the cURL library.
|
|
|
|
|
2017-04-06 15:49:32 +00:00
|
|
|
%package -n %{name}-doc
|
2011-09-20 12:05:30 +00:00
|
|
|
Summary: Documentation for python-curl
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %{name} = %{version}
|
2017-04-06 15:49:32 +00:00
|
|
|
Provides: %{python_module pycurl-doc = %{version}}
|
|
|
|
BuildArch: noarch
|
2011-09-20 12:05:30 +00:00
|
|
|
|
2017-04-06 15:49:32 +00:00
|
|
|
%description -n %{name}-doc
|
2011-09-20 12:05:30 +00:00
|
|
|
This module provides bindings for the cURL library.
|
|
|
|
|
|
|
|
This package contains documentation and examples.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pycurl-%{version}
|
2017-04-06 15:49:32 +00:00
|
|
|
%patch0 -p1
|
2014-05-20 14:19:04 +00:00
|
|
|
|
2011-09-20 12:05:30 +00:00
|
|
|
%build
|
2017-04-06 15:49:32 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build --with-ssl
|
2011-09-20 12:05:30 +00:00
|
|
|
|
|
|
|
%install
|
2017-04-06 15:49:32 +00:00
|
|
|
%python_install
|
2012-05-02 14:06:38 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk
|
2011-09-20 12:05:30 +00:00
|
|
|
|
Accepting request 293100 from home:Nijel:branches:devel:languages:python
- Run testsuite during build
- Update to 7.19.5.1:
* Added CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5_HOSTNAME.
* setup.py now prints PycURL-specific option help when -h is used.
* LibreSSL is now supported (patch by JiCiT.)
* Fixed an oversight that broke PycURL building against libcurl 7.19.4
through 7.21.1. The bug was introduced in PycURL 7.19.5.
* Tests are now included in source distributions again, thanks to
Kamil Dudka and Johan Bergstroem.
* Added CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT (libcurl 7.20.0+)
and CURLOPT_MAIL_AUTH (libcurl 7.25.0+).
* Tests removed from source and binary distributions.
* Documentation greatly improved. Quickstart guide added.
* pycurl.Curl, pycurl.CurlMulti and pycurl.CurlShare are now classes
rather than factory functions. Previously, the classes were "hidden"
(they were accessible as e.g. type(pycurl.Curl()), but could not be
instantiated, nor could class methods be obtained from the classes.
Please see this mailing list post for further information:
http://curl.haxx.se/mail/curlpython-2014-06/0004.html
* When passing a file-like object to READDATA option, PycURL was
mistakenly looking for write method on this object. Now read method
is looked up, as would be expected.
* Python 3.4 is now officially supported.
* Windows packages now build libcurl against zlib.
* CherryPy is no longer required for the test suite, ssl module from
the Python standard library is used instead.
* Fixed a reference leak of SOCKET and TIMER callbacks on
CurlMulti instances, thanks to Ben Darnell.
* Fixed build against openssl on cygwin, where pycurl needs to link
OBS-URL: https://build.opensuse.org/request/show/293100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=23
2015-03-25 14:11:46 +00:00
|
|
|
%check
|
2017-04-06 15:49:32 +00:00
|
|
|
# taken from "make test" because we only need to run nosetests,
|
|
|
|
# not the rest of the mess in the upstream runner
|
|
|
|
pushd tests/fake-curl/libcurl
|
|
|
|
rm -f *.so
|
|
|
|
make
|
|
|
|
popd
|
2017-06-15 11:58:36 +00:00
|
|
|
# exclude certain tests
|
|
|
|
test_flags='!online'
|
|
|
|
if ! pkg-config --variable=supported_features libcurl|grep -qw HTTP2; then
|
|
|
|
test_flags="$test_flags,\!http2"
|
|
|
|
fi
|
|
|
|
if ! pkg-config --variable=supported_protocols libcurl|grep -qw SCP; then
|
|
|
|
test_flags="$test_flags,\!ssh"
|
|
|
|
fi
|
2017-04-06 15:49:32 +00:00
|
|
|
%{python_expand PYTHONPATH=$(ls -d build/lib.*) \
|
2017-06-15 11:58:36 +00:00
|
|
|
nosetests-%$python_bin_suffix --with-flaky -a "$test_flags"}
|
Accepting request 293100 from home:Nijel:branches:devel:languages:python
- Run testsuite during build
- Update to 7.19.5.1:
* Added CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5_HOSTNAME.
* setup.py now prints PycURL-specific option help when -h is used.
* LibreSSL is now supported (patch by JiCiT.)
* Fixed an oversight that broke PycURL building against libcurl 7.19.4
through 7.21.1. The bug was introduced in PycURL 7.19.5.
* Tests are now included in source distributions again, thanks to
Kamil Dudka and Johan Bergstroem.
* Added CURLOPT_MAIL_FROM and CURLOPT_MAIL_RCPT (libcurl 7.20.0+)
and CURLOPT_MAIL_AUTH (libcurl 7.25.0+).
* Tests removed from source and binary distributions.
* Documentation greatly improved. Quickstart guide added.
* pycurl.Curl, pycurl.CurlMulti and pycurl.CurlShare are now classes
rather than factory functions. Previously, the classes were "hidden"
(they were accessible as e.g. type(pycurl.Curl()), but could not be
instantiated, nor could class methods be obtained from the classes.
Please see this mailing list post for further information:
http://curl.haxx.se/mail/curlpython-2014-06/0004.html
* When passing a file-like object to READDATA option, PycURL was
mistakenly looking for write method on this object. Now read method
is looked up, as would be expected.
* Python 3.4 is now officially supported.
* Windows packages now build libcurl against zlib.
* CherryPy is no longer required for the test suite, ssl module from
the Python standard library is used instead.
* Fixed a reference leak of SOCKET and TIMER callbacks on
CurlMulti instances, thanks to Ben Darnell.
* Fixed build against openssl on cygwin, where pycurl needs to link
OBS-URL: https://build.opensuse.org/request/show/293100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=23
2015-03-25 14:11:46 +00:00
|
|
|
|
2017-04-06 15:49:32 +00:00
|
|
|
%files %{python_files}
|
2011-09-20 12:05:30 +00:00
|
|
|
%defattr(-,root,root,-)
|
2014-05-20 14:19:04 +00:00
|
|
|
%doc AUTHORS ChangeLog COPYING-LGPL COPYING-MIT README.rst
|
2011-09-20 12:05:30 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
2017-04-06 15:49:32 +00:00
|
|
|
%files -n %{name}-doc
|
2011-09-20 12:05:30 +00:00
|
|
|
%defattr(-,root,root)
|
2014-05-20 14:19:04 +00:00
|
|
|
%doc examples doc/*.rst
|
2011-09-20 12:05:30 +00:00
|
|
|
|
|
|
|
%changelog
|