From f0122bfb2cf315cd3a4dfecf9cc624f886abbb51 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Thu, 7 Dec 2006 21:54:29 +0000 Subject: [PATCH] auto-import python-pycurl-7.15.5.1-3 on branch devel from python-pycurl-7.15.5.1-3.src.rpm --- .cvsignore | 1 + python-pycurl.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 60 insertions(+) create mode 100644 python-pycurl.spec diff --git a/.cvsignore b/.cvsignore index e69de29..8bf1040 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pycurl-7.15.5.1.tar.gz diff --git a/python-pycurl.spec b/python-pycurl.spec new file mode 100644 index 0000000..b3b1761 --- /dev/null +++ b/python-pycurl.spec @@ -0,0 +1,58 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: python-pycurl +Version: 7.15.5.1 +Release: 3%{?dist} +Summary: A Python interface to libcurl + +Group: Development/Languages +License: LGPL +URL: http://pycurl.sourceforge.net/ +Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-devel +BuildRequires: curl-devel >= 7.15.5 + +Provides: pycurl = %{version}-%{release} + +%description +PycURL is a Python interface to libcurl. 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. + +%prep +%setup -q -n pycurl-%{version} +chmod a-x examples/* + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%check +%{__python} tests/test_internals.py -q + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} +rm -rf %{buildroot}%{_datadir}/doc/pycurl + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc COPYING ChangeLog README TODO examples doc tests +%{python_sitearch}/* + +%changelog +* Thu Dec 7 2006 Jeffrey C. Ollie - 7.15.5.1-3 +- Don't forget to Provide: pycurl!!! + +* Thu Dec 7 2006 Jeffrey C. Ollie - 7.15.5.1-2 +- Remove INSTALL from the list of documentation +- Use python_sitearch for all of the files + +* Thu Dec 7 2006 Jeffrey C. Ollie - 7.15.5.1-1 +- First version for Fedora Extras + diff --git a/sources b/sources index e69de29..58b128e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +464cfbeba150d99d92a407c7c8b751de pycurl-7.15.5.1.tar.gz