python-pycurl-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: python-pycurl
  3. Version: 7.19.0
  4. Release: 3%{?_dist_release}
  5. Summary: A Python interface to libcurl
  6. Summary(ja): libcurl の Python インタフェース
  7. Group: Development/Languages
  8. License: LGPLv2+
  9. URL: http://pycurl.sourceforge.net/
  10. Source0: http://pycurl.sourceforge.net/download/pycurl-%{version}.tar.gz
  11. Patch0: python-pycurl-no-static-libs.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  13. BuildRequires: python-devel
  14. BuildRequires: curl-devel >= 7.19.0
  15. BuildRequires: openssl-devel
  16. BuildRequires: openldap-devel
  17. # During its initialization, PycURL checks that the actual libcurl version
  18. # is not lower than the one used when PycURL was built.
  19. # Yes, that should be handled by library versioning (which would then get
  20. # automatically reflected by rpm).
  21. # For now, we have to reflect that dependency.
  22. %define libcurl_sed '/^#define LIBCURL_VERSION "/!d;s/"[^"]*$//;s/.*"//;q'
  23. %define curlver_h /usr/include/curl/curlver.h
  24. %define libcurl_ver %(sed %{libcurl_sed} %{curlver_h} 2>/dev/null || echo 0)
  25. Requires: curl >= %{libcurl_ver}
  26. Provides: pycurl = %{version}-%{release}
  27. %description
  28. PycURL is a Python interface to libcurl. PycURL can be used to fetch
  29. objects identified by a URL from a Python program, similar to the
  30. urllib Python module. PycURL is mature, very fast, and supports a lot
  31. of features.
  32. %prep
  33. %setup0 -q -n pycurl-%{version}
  34. %patch0 -p0
  35. chmod a-x examples/*
  36. %build
  37. CFLAGS="$RPM_OPT_FLAGS -DHAVE_CURL_OPENSSL" %{__python} setup.py build
  38. %check
  39. export PYTHONPATH=$PWD/build/lib*
  40. %{__python} tests/test_internals.py -q
  41. %install
  42. rm -rf %{buildroot}
  43. %{__python} setup.py install -O1 --skip-build --root %{buildroot}
  44. rm -rf %{buildroot}%{_datadir}/doc/pycurl
  45. %clean
  46. rm -rf %{buildroot}
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc COPYING ChangeLog README TODO examples doc tests
  50. %{python_sitearch}/*
  51. %changelog
  52. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 7.19.0-3
  53. - rebuild with python-2.6
  54. * Sat Aug 8 2009 Shu KONNO <owa@bg.wakwak.com> - 7.19.0-2
  55. - spec in utf-8
  56. - added BR: openldap-devel
  57. * Thu Aug 6 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 7.19.0-1
  58. - initial build for VineSeed
  59. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.0-4
  60. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  61. * Fri Apr 17 2009 Stepan Kasal <skasal@redhat.com> - 7.19.0-3
  62. - fix typo in the previous change
  63. * Fri Apr 17 2009 Stepan Kasal <skasal@redhat.com> - 7.19.0-2
  64. - add a require to reflect a dependency on libcurl version (#496308)
  65. * Thu Mar 5 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.19.0-1
  66. - Update to 7.19.0
  67. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.18.2-3
  68. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  69. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 7.18.2-2
  70. - Rebuild for Python 2.6
  71. * Thu Jul 3 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.18.2-1
  72. - Update to 7.18.2
  73. - Thanks to Ville Skytt辰 re-enable the tests and fix a minor problem
  74. with the setup.py. (Bug # 45400)
  75. * Thu Jun 5 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.18.1-1
  76. - Update to 7.18.1
  77. - Disable tests because it's not testing the built library, it's trying to
  78. test an installed library.
  79. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 7.16.4-3
  80. - Autorebuild for GCC 4.3
  81. * Thu Jan 3 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.4-2
  82. - BR openssl-devel
  83. * Wed Aug 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.4-1
  84. - Update to 7.16.4
  85. - Update license tag.
  86. * Sat Jun 9 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.2.1-1
  87. - Update to released version.
  88. * Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.16.0-0.1.20061207
  89. - Update to a CVS snapshot since development has a newer version of curl than is in FC <= 6
  90. * Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-4
  91. - Add -DHAVE_CURL_OPENSSL to fix PPC build problem.
  92. * Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-3
  93. - Don't forget to Provide: pycurl!!!
  94. * Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-2
  95. - Remove INSTALL from the list of documentation
  96. - Use python_sitearch for all of the files
  97. * Thu Dec 7 2006 Jeffrey C. Ollie <jeff@ocjtech.us> - 7.15.5.1-1
  98. - First version for Fedora Extras