added -py3 support [release 7.19.5-2mamba;Thu Nov 06 2014]
This commit is contained in:
parent
393a627e1c
commit
776eb30a9e
42
pycurl.spec
42
pycurl.spec
@ -1,7 +1,7 @@
|
||||
Name: pycurl
|
||||
Version: 7.19.5
|
||||
Release: 1mamba
|
||||
Summary: PycURL is a Python interface to libcurl
|
||||
Release: 2mamba
|
||||
Summary: A Python interface to libcurl
|
||||
Group: Development/Libraries/Python
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
@ -37,6 +37,33 @@ This means it has a somewhat steep learning curve unless you are already familia
|
||||
To sum up, PycURL is very fast (esp. for multiple concurrent operations) and very feature complete, but has a somewhat complex interface.
|
||||
If you need something simpler or prefer a pure Python module you might want to check out urllib2 and urlgrabber.
|
||||
|
||||
%if "%?with_pyver"
|
||||
%define pyver %{with_pyver}
|
||||
%define __python %(rpm --eval %{__python%{with_pyver}})
|
||||
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
|
||||
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
|
||||
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
|
||||
%define python_version %(rpm --eval %{python%{with_pyver}_version})
|
||||
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
|
||||
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
|
||||
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
|
||||
|
||||
%package py%{pyver}
|
||||
Group: System/Libraries/Python
|
||||
Summary: A Python interface to libcurl
|
||||
%py_requires
|
||||
|
||||
%description py%{pyver}
|
||||
PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module.
|
||||
PycURL is mature, very fast, and supports a lot of features.
|
||||
PycURL is targeted at the advanced developer - if you need dozens of concurrent fast and reliable connections or any of the sophisiticated features as listed above then PycURL is for you.
|
||||
The main drawback with PycURL is that it is a relative thin layer over libcurl without any of those nice Pythonic class hierarchies.
|
||||
This means it has a somewhat steep learning curve unless you are already familiar with libcurl's C API.
|
||||
To sum up, PycURL is very fast (esp. for multiple concurrent operations) and very feature complete, but has a somewhat complex interface.
|
||||
If you need something simpler or prefer a pure Python module you might want to check out urllib2 and urlgrabber.
|
||||
%endif
|
||||
|
||||
|
||||
%package doc
|
||||
Group: Documentation
|
||||
Summary: Documentation package for %{name}
|
||||
@ -73,10 +100,16 @@ mv doc html
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
%if "%?with_pyver"
|
||||
%files py%{pyver}
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/pycurl.*.so
|
||||
%else
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/curl
|
||||
%{python_sitearch}/pycurl.so
|
||||
%endif
|
||||
%{python_sitearch}/curl
|
||||
%{python_sitearch}/pycurl-*-py*.egg-info
|
||||
%doc COPYING-LGPL COPYING-MIT
|
||||
|
||||
@ -85,6 +118,9 @@ mv doc html
|
||||
%doc ChangeLog examples html
|
||||
|
||||
%changelog
|
||||
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7.19.5-2mamba
|
||||
- added -py3 support
|
||||
|
||||
* Tue Jul 15 2014 Automatic Build System <autodist@mambasoft.it> 7.19.5-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user