From c0ecbc3b9d39f9ed75eac8b4dcea2773aea66e51 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Wed, 16 Jul 2014 15:23:24 +0200 Subject: [PATCH] temporarily use the tarball provided by github The official upstream distribution of pycurl does not include certain files needed by the test-suite: http://curl.haxx.se/mail/curlpython-2015-11/0002.html --- .gitignore | 1 + python-pycurl.spec | 9 +++++++-- sources | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3a07cbb..1222b80 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /pycurl-7.*.*.tar.gz +/REL_7_19_5_2.tar.gz diff --git a/python-pycurl.spec b/python-pycurl.spec index 39b170e..ca6303d 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -1,6 +1,8 @@ %{!?py3dir: %global py3dir %{_builddir}/python3-%{name}-%{version}-%{release}} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%global pycurl_rel REL_7_19_5_2 + Name: python-pycurl Version: 7.19.5.2 Release: 1%{?dist} @@ -9,7 +11,7 @@ Summary: A Python interface to libcurl Group: Development/Languages License: LGPLv2+ or MIT URL: http://pycurl.sourceforge.net/ -Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz +Source0: https://github.com/pycurl/pycurl/archive/%{pycurl_rel}.tar.gz # make tests work: http://curl.haxx.se/mail/curlpython-2015-11/0003.html Patch1: pycurl-7.19.5.2-run-tests.patch @@ -57,8 +59,9 @@ urllib Python module. PycURL is mature, very fast, and supports a lot of features. %prep -%setup0 -q -n pycurl-%{version} +%setup0 -q -n pycurl-%{pycurl_rel} %patch1 -p1 +rm -rf tests/win # temporarily exclude failing test-cases rm -f tests/{post_test,reset_test}.py @@ -72,8 +75,10 @@ cp -a . %{py3dir} %build export CFLAGS="$RPM_OPT_FLAGS" +%{__python} setup.py docstrings %{__python} setup.py build --with-nss pushd %{py3dir} +%{__python3} setup.py docstrings %{__python3} setup.py build --with-nss popd diff --git a/sources b/sources index 72d2014..dbe4e7e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -59cea96cc3027a1a7ed5020e69d4009a pycurl-7.19.5.2.tar.gz +ce8f5795646458ba0a5ead23b9788632 REL_7_19_5_2.tar.gz