[python26-pycurl/el5] First python26 package rhbz#682553
stevetraylen
stevetraylen at fedoraproject.org
Mon Jul 16 17:25:19 UTC 2012
commit acdff139d384b2c4993896e58401521237bf0b03
Author: Steve Traylen <steve.traylen at cern.ch>
Date: Mon Jul 16 20:38:25 2012 +0200
First python26 package rhbz#682553
.gitignore | 1 +
python-pycurl-7.15.5.1-xml_validity.patch | 31 +++++++++++
python26-pycurl.spec | 85 +++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 118 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2c3e96a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pycurl-7.15.5.1.tar.gz
diff --git a/python-pycurl-7.15.5.1-xml_validity.patch b/python-pycurl-7.15.5.1-xml_validity.patch
new file mode 100644
index 0000000..1291db3
--- /dev/null
+++ b/python-pycurl-7.15.5.1-xml_validity.patch
@@ -0,0 +1,31 @@
+diff -up pycurl-7.15.5.1/doc/callbacks.html.xml_validity pycurl-7.15.5.1/doc/callbacks.html
+--- pycurl-7.15.5.1/doc/callbacks.html.xml_validity 2010-09-29 18:20:12.589807858 +0200
++++ pycurl-7.15.5.1/doc/callbacks.html 2010-09-29 18:20:14.759767907 +0200
+@@ -120,7 +120,7 @@ VERBOSE option must be enabled for this
+ </pre>
+
+ <h2>Other examples</h2>
+-The pycurl distribution also contains a number of test scripts and
++<p>The pycurl distribution also contains a number of test scripts and
+ examples which show how to use the various callbacks in libcurl.
+ For instance, the file 'examples/file_upload.py' in the distribution contains
+ example code for using READFUNCTION, 'tests/test_cb.py' shows
+diff -up pycurl-7.15.5.1/doc/curlshareobject.html.xml_validity pycurl-7.15.5.1/doc/curlshareobject.html
+--- pycurl-7.15.5.1/doc/curlshareobject.html.xml_validity 2010-09-29 18:20:40.677767505 +0200
++++ pycurl-7.15.5.1/doc/curlshareobject.html 2010-09-29 18:22:00.071769406 +0200
+@@ -14,6 +14,7 @@
+
+ <p>CurlShare objects have the following methods:</p>
+
++<dl>
+ <dt><code>setopt(</code><em>option, value</em><code>)</code> -> <em>None</em></dt>
+ <dd>
+
+@@ -23,6 +24,7 @@ href="http://curl.haxx.se/libcurl/c/curl
+ <em>option</em> is specified with the CURLSHOPT_* constants in libcurl,
+ except that the CURLSHOPT_ prefix has been changed to SH_. Currently,
+ <em>value</em> must be either LOCK_DATA_COOKIE or LOCK_DATA_DNS.
++</p>
+
+ <p>Example usage:</p>
+
diff --git a/python26-pycurl.spec b/python26-pycurl.spec
new file mode 100644
index 0000000..e03a47e
--- /dev/null
+++ b/python26-pycurl.spec
@@ -0,0 +1,85 @@
+%global __python26 /usr/bin/python2.6
+%global python26_sitearch %{_libdir}/python2.6/site-packages
+
+# Fix byte-compilation:
+%define __os_install_post %{__python26_os_install_post}
+
+
+Name: python26-pycurl
+Version: 7.15.5.1
+Release: 9%{?dist}
+Summary: A Python interface to libcurl
+
+Group: Development/Languages
+License: LGPLv2+
+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: python26-devel
+BuildRequires: curl-devel >= 7.15.5
+
+# Fixes errors on the documentation files reported by xmllint.
+Patch0: python-pycurl-7.15.5.1-xml_validity.patch
+
+Requires: python(abi) = 2.6
+
+%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}
+%patch0 -p1 -b .xml_validity
+rm -f doc/*.xml_validity
+chmod a-x examples/*
+
+%build
+CFLAGS="$RPM_OPT_FLAGS -DHAVE_CURL_OPENSSL" %{__python26} setup.py build
+
+%check
+%{__python26} tests/test_internals.py -q
+
+%install
+rm -rf %{buildroot}
+%{__python26} setup.py install -O1 --skip-build --root %{buildroot}
+rm -rf %{buildroot}%{_datadir}/doc/pycurl
+chmod 755 %{buildroot}%{python26_sitearch}/pycurl.so
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING ChangeLog README TODO examples doc tests
+%{python26_sitearch}/*
+
+%changelog
+* Sun Mar 6 2011 Steve Traylen <steve.traylen at cern.ch> - 7.15.5.1-9
+- Adapt RHEL5 .spec file to for python26 package in EPEL.
+- Correct license from GPL to LGPL.
+
+* Wed Sep 29 2010 Karel Klic <kklic at redhat.com> - 7.15.5.1-8
+- Do not include unpatched files in the doc directory
+
+* Wed Sep 29 2010 Karel Klic <kklic at redhat.com> - 7.15.5.1-7
+- Added a patch to fix errors reported by xmllint
+
+* Mon Sep 27 2010 Marek Grac <mgrac at redhat.com> - 7.15.5.1-6
+- Update package number
+
+* Thu Dec 7 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 7.15.5.1-4
+- Add -DHAVE_CURL_OPENSSL to fix PPC build problem.
+
+* Thu Dec 7 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 7.15.5.1-3
+- Don't forget to Provide: pycurl!!!
+
+* Thu Dec 7 2006 Jeffrey C. Ollie <jeff at ocjtech.us> - 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 <jeff at ocjtech.us> - 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
More information about the scm-commits
mailing list