Blame SPECS/python-pycurl.spec

fcfddd
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
fcfddd
fcfddd
Name:           python-pycurl
fcfddd
Version:        7.19.0
7d1829
Release:        17%{?dist}
fcfddd
Summary:        A Python interface to libcurl
fcfddd
fcfddd
Group:          Development/Languages
fcfddd
License:        LGPLv2+ or MIT
fcfddd
URL:            http://pycurl.sourceforge.net/
fcfddd
Source0:        http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz
fcfddd
fcfddd
# upstream patches
fcfddd
Patch1:         0001-No-longer-keep-copies-of-string-options-since-this-i.patch
fcfddd
Patch2:         0002-Fixes-https-sourceforge.net-tracker-func-detail-aid-.patch
fcfddd
Patch3:         0003-Fixes-refcount-bug-and-provides-better-organization-.patch
fcfddd
Patch4:         0004-Test-for-reset-fixes-refcount-bug.patch
fcfddd
Patch5:         0005-Updating-ChangeLog-with-relevant-changes.patch
fcfddd
fcfddd
# downstream patches
fcfddd
Patch101:       0101-test_internals.py-add-a-test-for-ref-counting-of-res.patch
fcfddd
Patch102:       0102-pycurl.c-eliminate-duplicated-code-in-util_write_cal.patch
fcfddd
Patch103:       0103-pycurl.c-allow-to-return-1-from-write-callback.patch
fcfddd
Patch104:       0104-test_write_abort.py-test-returning-1-from-write-call.patch
fcfddd
Patch105:       0105-add-the-GLOBAL_ACK_EINTR-constant-to-the-list-of-exp.patch
fcfddd
fcfddd
Requires:       keyutils-libs
fcfddd
BuildRequires:  python-devel
fcfddd
BuildRequires:  curl-devel >= 7.19.0
fcfddd
BuildRequires:  openssl-devel
fcfddd
fcfddd
# During its initialization, PycURL checks that the actual libcurl version
fcfddd
# is not lower than the one used when PycURL was built.
fcfddd
# Yes, that should be handled by library versioning (which would then get
fcfddd
# automatically reflected by rpm).
fcfddd
# For now, we have to reflect that dependency.
fcfddd
%global libcurl_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
fcfddd
%global curlver_h /usr/include/curl/curlver.h
fcfddd
%global libcurl_ver %(sed %{libcurl_sed} %{curlver_h} 2>/dev/null || echo 0)
fcfddd
Requires:       libcurl >= %{libcurl_ver}
fcfddd
fcfddd
Provides:       pycurl = %{version}-%{release}
fcfddd
fcfddd
%description
fcfddd
PycURL is a Python interface to libcurl. PycURL can be used to fetch
fcfddd
objects identified by a URL from a Python program, similar to the
fcfddd
urllib Python module. PycURL is mature, very fast, and supports a lot
fcfddd
of features.
fcfddd
fcfddd
%prep
fcfddd
%setup0 -q -n pycurl-%{version}
fcfddd
%patch1 -p1
fcfddd
%patch2 -p1
fcfddd
%patch3 -p1
fcfddd
%patch4 -p1
fcfddd
%patch5 -p1
fcfddd
%patch101 -p1
fcfddd
%patch102 -p1
fcfddd
%patch103 -p1
fcfddd
%patch104 -p1
fcfddd
%patch105 -p1
fcfddd
chmod a-x examples/*
fcfddd
fcfddd
%build
fcfddd
CFLAGS="$RPM_OPT_FLAGS -DHAVE_CURL_OPENSSL" %{__python} setup.py build
fcfddd
fcfddd
%check
fcfddd
export PYTHONPATH=$RPM_BUILD_ROOT%{python_sitearch}
fcfddd
make test PYTHON=%{__python}
fcfddd
fcfddd
%install
fcfddd
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
fcfddd
rm -rf %{buildroot}%{_datadir}/doc/pycurl
fcfddd
fcfddd
%files
fcfddd
%doc COPYING COPYING2 ChangeLog README TODO examples doc tests
fcfddd
%{python_sitearch}/*
fcfddd
fcfddd
%changelog
7d1829
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 7.19.0-17
7d1829
- Mass rebuild 2014-01-24
7d1829
7d1829
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 7.19.0-16
7d1829
- Mass rebuild 2013-12-27
7d1829
fcfddd
* Tue Apr 09 2013 Kamil Dudka <kdudka@redhat.com> - 7.19.0-15.1
fcfddd
- add the GLOBAL_ACK_EINTR constant to the list of exported symbols (#920589)
fcfddd
fcfddd
* Wed Mar 06 2013 Kamil Dudka <kdudka@redhat.com> - 7.19.0-15
fcfddd
- allow to return -1 from the write callback (#857875) 
fcfddd
- remove the patch for curl-config --static-libs no longer needed
fcfddd
- run the tests against the just built pycurl, not the system one
fcfddd
fcfddd
* Mon Feb 25 2013 Kamil Dudka <kdudka@redhat.com> - 7.19.0-14
fcfddd
- apply bug-fixes committed to upstream CVS since 7.19.0 (fixes #896025)
fcfddd
fcfddd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.0-13
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fcfddd
fcfddd
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 7.19.0-12
fcfddd
- Improve spec
fcfddd
fcfddd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.0-11
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fcfddd
fcfddd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.0-10
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fcfddd
fcfddd
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.0-9
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fcfddd
fcfddd
* Mon Dec 20 2010 Dennis Gilmore <dennis@ausil.us> - 7.19.0-8
fcfddd
- add Missing Requires on keyutils-libs
fcfddd
fcfddd
* Tue Aug 17 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.19.0-7
fcfddd
- Add patch developed by David Malcolm to fix segfaults caused by a missing incref
fcfddd
fcfddd
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 7.19.0-6
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
fcfddd
fcfddd
* Tue Mar  2 2010 Karel Klic <kklic@redhat.com> - 7.19.0-5
fcfddd
- Package COPYING2 file
fcfddd
- Added MIT as a package license
fcfddd
fcfddd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.0-4
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fcfddd
fcfddd
* Fri Apr 17 2009 Stepan Kasal <skasal@redhat.com> - 7.19.0-3
fcfddd
- fix typo in the previous change
fcfddd
fcfddd
* Fri Apr 17 2009 Stepan Kasal <skasal@redhat.com> - 7.19.0-2
fcfddd
- add a require to reflect a dependency on libcurl version (#496308)
fcfddd
fcfddd
* Thu Mar  5 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.19.0-1
fcfddd
- Update to 7.19.0
fcfddd
fcfddd
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.18.2-3
fcfddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fcfddd
fcfddd
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 7.18.2-2
fcfddd
- Rebuild for Python 2.6
fcfddd
fcfddd
* Thu Jul  3 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.18.2-1
fcfddd
- Update to 7.18.2
fcfddd
- Thanks to Ville Skyttä re-enable the tests and fix a minor problem
fcfddd
  with the setup.py. (Bug # 45400)
fcfddd
fcfddd
* Thu Jun  5 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.18.1-1
fcfddd
- Update to 7.18.1
fcfddd
- Disable tests because it's not testing the built library, it's trying to
fcfddd
  test an installed library.
fcfddd
fcfddd
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 7.16.4-3
fcfddd
- Autorebuild for GCC 4.3
fcfddd
fcfddd
* Thu Jan  3 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.4-2
fcfddd
- BR openssl-devel
fcfddd
fcfddd
* Wed Aug 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.4-1
fcfddd
- Update to 7.16.4
fcfddd
- Update license tag.
fcfddd
fcfddd
* Sat Jun  9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.2.1-1
fcfddd
- Update to released version.
fcfddd
fcfddd
* Thu Dec  7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.0-0.1.20061207
fcfddd
- Update to a CVS snapshot since development has a newer version of curl than is in FC <= 6
fcfddd
fcfddd
* Thu Dec  7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-4
fcfddd
- Add -DHAVE_CURL_OPENSSL to fix PPC build problem.
fcfddd
fcfddd
* Thu Dec  7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-3
fcfddd
- Don't forget to Provide: pycurl!!!
fcfddd
fcfddd
* Thu Dec  7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-2
fcfddd
- Remove INSTALL from the list of documentation
fcfddd
- Use python_sitearch for all of the files
fcfddd
fcfddd
* Thu Dec  7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-1
fcfddd
- First version for Fedora Extras