Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-pycurl
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
python3-pycurl.spec
@@ -0,0 +1,355 @@ +# +# spec file for package python3-pycurl +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%{?!py3_ver: %global py3_ver 3.4} +%{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} +%{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} + +Name: python3-pycurl +Version: 7.43.0 +Release: 35.1 +Summary: PycURL -- cURL library module +License: LGPL-2.1+ and MIT +Group: Development/Languages/Python +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__ +Patch0: pycurl-7.19.5-no-runtime-curlvercheck.patch +BuildRequires: libcurl-devel >= 7.19.0 +BuildRequires: openssl-devel +BuildRequires: python3-devel +# %if 0%{?is_opensuse} +# BuildRequires: python3-bottle +# BuildRequires: python3-nose +# BuildRequires: python3-simplejson +# %endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +This module provides bindings for the cURL library. + +%package doc +Summary: Documentation for python-curl +Group: Development/Libraries/Python +Requires: %{name} = %{version} + +%description doc +This module provides bindings for the cURL library. + +This package contains documentation and examples. + +%prep +%setup -q -n pycurl-%{version} +%patch0 -p1 + +%build +2to3 -w --no-diffs -n . +CFLAGS="%{optflags}" python3 setup.py build --with-ssl + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --with-ssl +rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING-LGPL COPYING-MIT README.rst +%{python3_sitearch}/* + +%files doc +%defattr(-,root,root) +%doc examples doc/*.rst + +%changelog +* Sun May 8 2016 arun@gmx.de +- specfile: + * updated source url to files.pythonhosted.org +* Tue Apr 19 2016 alarrosa@suse.com +- Only BuildRequire python3-nose, python3-bottle and python3-simplejson + on openSUSE since SLE doesn't have python3-bottle or python3-simplejson + and they're only needed by the test suite. +* Sat Feb 6 2016 arun@gmx.de +- update to version 7.43.0: + * Highlights of this release: + + Binary wheels are now built for Windows systems. + + setopt_string method added to Curl objects to permit setting + string libcurl options that PycURL does not know about. + + curl module can now be imported on Windows again. + + OPENSOCKETFUNCTION callback is now invoked with the address as + bytes on Python 3 as was documented. + + Support for many libcurl options and constants was added. +* Sat Jan 30 2016 arun@gmx.de +- specfile: + * update copyright year + * update patch +- update to version 7.21.5: + * Highlights of this release: + + Socket callbacks are now fully implemented + ("CURLOPT_OPENSOCKETFUNCTION", "CURLOPT_SOCKOPTFUNCTION", + "CURLOPT_CLOSESOCKETFUNCTION"). Unfortunately this required + changing "OPENSOCKETFUNCTION" API once again in a + backwards-incompatible manner. Support for "SOCKOPTFUNCTION" and + "CLOSESOCKETFUNCTION" was added in this + release. "OPENSOCKETFUNCTION" now supports Unix sockets. + + Many other libcurl options and constants have been added to + PycURL. + + When "pycurl" module initialization fails, "ImportError" is + raised instead of a fatal error terminating the process. + + Usability of official Windows builds has been greatly improved +* Tue Nov 3 2015 arun@gmx.de +- update to version 7.19.5.3: + * python and nosetests binaries can now be overridden when running + the test suite (patch by Kamil Dudka). + * Files needed to run the test suite are distributed in sdist + (patch by Kamil Dudka). +* Mon Nov 2 2015 arun@gmx.de +- update to version 7.19.5.2: + * C sources made 64-bit clean on Windows. + * Support for building against Python 3.5 added to winbuild.py. + * Fixed build on Windows when using MS SDK 8.1+ or MSVC 14/2015 + (patch by Gisle Vanem). + * Added automatic SSL library detection on CentOS 6 by loading + libcurl shared library in setup.py. This automatic detection is + meant to permit installing pycurl seamlessly via `pip install pycurl` + on CentOS; as such, it is only employed when no other configuration + options or configuration environment variables are given to setup.py + (original patch by Francisco Alves). + * Added --libcurl-dll option to setup.py to take SSL library + information out of libcurl shared library (original patch by + Francisco Alves). This option is only usable + with Python 2.5 or higher. + * --with-ssl, --with-gnutls and --with-nss options to setup.py now + result in PycURL explicitly linking against the respective SSL + library. Previously setup.py relied on curl-config to supply the + needed libraries in this case. + * List and tuples are now accepted in all positions of HTTPPOST + option values. + * Tuples are now accepted for options taking list values (e.g. + HTTPHEADER). + * Fixed a use after free in HTTPPOST when using FORM_BUFFERPTR with + a Unicode string (patch by Clint Clayton). + * Fixed a memory leak in HTTPPOST for multiple FORM_BUFFERPTR + (patch by Clint Clayton). + * CURLMOPT_* option constants were mistakenly defined on Curl + instances but not on CurlMulti instances. These option constants + are now defined on CurlMulti instances and on pycurl module, + but not on Curl instances. + * Fixed several memory leaks when setting string options to + Unicode values failed. + * Fixed a memory leak when using POSTFIELDS with unicode objects + on Python 2 (patch by Clint Clayton). + * Official support for Python 2.4 and 2.5 dropped. PycURL is no + longer tested against these Python versions on Travis. + * Added CURLAUTH_NEGOTIATE (libcurl 7.38.0+), CURLAUTH_NTLM_WB + (libcurl 7.22.0+), CURLAUTH_ONLY (libcurl 7.21.3+), + * Added CURLOPT_SERVICE_NAME (libcurl 7.43.0+). + * Added CURLOPT_PROXY_SERVICE_NAME (libcurl 7.43.0+). + * Added CURLE_SSL_CRL_BADFILE, CURLE_SSL_INVALIDCERTSTATUS + (libcurl 7.41.0+), CURLE_SSL_ISSUER_ERROR and + CURLE_SSL_PINNEDPUBKEYNOTMATCH (libcurl 7.39.0+). + * Added CURLOPT_SSL_VERIFYSTATUS (libcurl 7.41.0+). + * Added CURL_SSLVERSION_TLSv1_0, CURL_SSLVERSION_TLSv1_1 + and CURL_SSLVERSION_TLSv1_2 (libcurl 7.34.0+). + * The second argument of DEBUGFUNCTION callback is now of type bytes on + Python 3. When response body contains non-ASCII data and + DEBUGFUNCTION is enabled, this argument would receive non-ASCII data. + Which encoding this data is in is unknown by PycURL, and e.g. in + the case of HTTP requires parsing response headers. GitHub issue + [#210], patch by Barry Warsaw with help from Gregory Petukhov. + * Fixed build on GCC 4.4.5 (patch by Travis Jensen). + * Added CURLOPT_GSSAPI_DELEGATION, CURLGSSAPI_DELEGATION_FLAG, + CURLGSSAPI_DELEGATION_NONE and CURLGSSAPI_DELEGATION_POLICY_FLAG + (libcurl 7.22.0+, patch by Dmitry Ketov). +* Sun Jan 25 2015 arun@gmx.de +- specfile: update copyright year +- update to version 7.19.5.1: + * This release primarily fixes build breakage against libcurl 7.19.4 + through 7.21.1, such as versions shipped with CentOS. +* Sat Aug 2 2014 i@marguerite.su +- update version 7.19.5 + * 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. + * 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. + * Added CURLOPT_SSH_KNOWNHOSTS (libcurl 7.19.6+). + * Added CURLE_FTP_ACCEPT_FAILED (libcurl 7.24.0+).