diff --git a/.cvsignore b/.cvsignore index df87eb0..4476f1b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pycurl-7.18.1.tar.gz +pycurl-7.18.2.tar.gz diff --git a/python-pycurl-no-static-libs.patch b/python-pycurl-no-static-libs.patch new file mode 100644 index 0000000..c1410dc --- /dev/null +++ b/python-pycurl-no-static-libs.patch @@ -0,0 +1,12 @@ +--- setup.py~ 2008-04-22 17:00:45.000000000 +0300 ++++ setup.py 2008-07-03 21:53:36.000000000 +0300 +@@ -97,8 +97,7 @@ + else: + extra_compile_args.append(e) + libs = split_quoted( +- os.popen("'%s' --libs" % CURL_CONFIG).read()+\ +- os.popen("'%s' --static-libs" % CURL_CONFIG).read()) ++ os.popen("'%s' --libs" % CURL_CONFIG).read()) + for e in libs: + if e[:2] == "-l": + libraries.append(e[2:]) diff --git a/python-pycurl.spec b/python-pycurl.spec index a305c51..bda05c9 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -1,7 +1,7 @@ %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-pycurl -Version: 7.18.1 +Version: 7.18.2 Release: 1%{?dist} Summary: A Python interface to libcurl @@ -9,6 +9,7 @@ Group: Development/Languages License: LGPLv2+ URL: http://pycurl.sourceforge.net/ Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz +Patch0: python-pycurl-no-static-libs.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -25,14 +26,16 @@ urllib Python module. PycURL is mature, very fast, and supports a lot of features. %prep -%setup -q -n pycurl-%{version} +%setup0 -q -n pycurl-%{version} +%patch0 -p0 chmod a-x examples/* %build CFLAGS="$RPM_OPT_FLAGS -DHAVE_CURL_OPENSSL" %{__python} setup.py build %check -#%{__python} tests/test_internals.py -q +export PYTHONPATH=$PWD/build/lib* +%{__python} tests/test_internals.py -q %install rm -rf %{buildroot} @@ -48,6 +51,11 @@ rm -rf %{buildroot} %{python_sitearch}/* %changelog +* Thu Jul 3 2008 Jeffrey C. Ollie - 7.18.2-1 +- Update to 7.18.2 +- Thanks to Ville Skyttä re-enable the tests and fix a minor problem + with the setup.py. (Bug # 45400) + * Thu Jun 5 2008 Jeffrey C. Ollie - 7.18.1-1 - Update to 7.18.1 - Disable tests because it's not testing the built library, it's trying to diff --git a/sources b/sources index 3fbe784..06f6b27 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -adc4399a002ce794559941c13b89afb8 pycurl-7.18.1.tar.gz +39210d56f1d5a75ac8dd6a2866a93dd5 pycurl-7.18.2.tar.gz