use the tarball provided by github

The official upstream distribution of pycurl does not include test case
any more.
This commit is contained in:
Kamil Dudka 2014-07-16 15:23:24 +02:00
parent 27346e9118
commit 683be942e9
3 changed files with 8 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/pycurl-7.*.*.tar.gz
/REL_7_19_5.tar.gz

View File

@ -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
Name: python-pycurl
Version: 7.19.5
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
Requires: keyutils-libs
BuildRequires: python-devel
@ -52,7 +54,7 @@ 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}
# temporarily exclude failing test-cases
rm -f tests/{pycurl_object_test,share_test}.py
@ -65,8 +67,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

View File

@ -1 +1 @@
47b4eac84118e2606658122104e62072 pycurl-7.19.5.tar.gz
e122031fc031e0706386c9d54d3b049c REL_7_19_5.tar.gz