|
|
f0122bf |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
f0122bf |
|
|
|
f0122bf |
Name: python-pycurl
|
|
|
f0122bf |
Version: 7.15.5.1
|
|
|
94188fd |
Release: 4%{?dist}
|
|
|
f0122bf |
Summary: A Python interface to libcurl
|
|
|
f0122bf |
|
|
|
f0122bf |
Group: Development/Languages
|
|
|
f0122bf |
License: LGPL
|
|
|
f0122bf |
URL: http://pycurl.sourceforge.net/
|
|
|
f0122bf |
Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz
|
|
|
f0122bf |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
f0122bf |
|
|
|
f0122bf |
BuildRequires: python-devel
|
|
|
f0122bf |
BuildRequires: curl-devel >= 7.15.5
|
|
|
f0122bf |
|
|
|
f0122bf |
Provides: pycurl = %{version}-%{release}
|
|
|
f0122bf |
|
|
|
f0122bf |
%description
|
|
|
f0122bf |
PycURL is a Python interface to libcurl. PycURL can be used to fetch
|
|
|
f0122bf |
objects identified by a URL from a Python program, similar to the
|
|
|
f0122bf |
urllib Python module. PycURL is mature, very fast, and supports a lot
|
|
|
f0122bf |
of features.
|
|
|
f0122bf |
|
|
|
f0122bf |
%prep
|
|
|
f0122bf |
%setup -q -n pycurl-%{version}
|
|
|
f0122bf |
chmod a-x examples/*
|
|
|
f0122bf |
|
|
|
f0122bf |
%build
|
|
|
94188fd |
CFLAGS="$RPM_OPT_FLAGS -DHAVE_CURL_OPENSSL" %{__python} setup.py build
|
|
|
f0122bf |
|
|
|
f0122bf |
%check
|
|
|
f0122bf |
%{__python} tests/test_internals.py -q
|
|
|
f0122bf |
|
|
|
f0122bf |
%install
|
|
|
f0122bf |
rm -rf %{buildroot}
|
|
|
f0122bf |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
f0122bf |
rm -rf %{buildroot}%{_datadir}/doc/pycurl
|
|
|
f0122bf |
|
|
|
f0122bf |
%clean
|
|
|
f0122bf |
rm -rf %{buildroot}
|
|
|
f0122bf |
|
|
|
f0122bf |
%files
|
|
|
f0122bf |
%defattr(-,root,root,-)
|
|
|
f0122bf |
%doc COPYING ChangeLog README TODO examples doc tests
|
|
|
f0122bf |
%{python_sitearch}/*
|
|
|
f0122bf |
|
|
|
f0122bf |
%changelog
|
|
|
94188fd |
* Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-4
|
|
|
94188fd |
- Add -DHAVE_CURL_OPENSSL to fix PPC build problem.
|
|
|
94188fd |
|
|
|
f0122bf |
* Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-3
|
|
|
f0122bf |
- Don't forget to Provide: pycurl!!!
|
|
|
f0122bf |
|
|
|
f0122bf |
* Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-2
|
|
|
f0122bf |
- Remove INSTALL from the list of documentation
|
|
|
f0122bf |
- Use python_sitearch for all of the files
|
|
|
f0122bf |
|
|
|
f0122bf |
* Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-1
|
|
|
f0122bf |
- First version for Fedora Extras
|
|
|
f0122bf |
|