python-cherrypy-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-cherrypy
  3. Version: 3.1.2
  4. Release: 2%{?_dist_release}
  5. Summary: Pythonic, object-oriented web development framework
  6. Group: Development/Libraries
  7. License: BSD
  8. URL: http://www.cherrypy.org/
  9. Source0: http://download.cherrypy.org/cherrypy/%{version}/CherryPy-%{version}.tar.gz
  10. Patch0: python-cherrypy-tutorial-doc.patch
  11. Patch1: python-cherrypy-changederrormessage.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildArch: noarch
  14. BuildRequires: python-devel
  15. BuildRequires: python-setuptools
  16. BuildRequires: tidy
  17. %description
  18. CherryPy allows developers to build web applications in much the same way
  19. they would build any other object-oriented Python program. This usually
  20. results in smaller source code developed in less time.
  21. %prep
  22. %setup -q -n CherryPy-%{version}
  23. %patch0 -p1
  24. %patch1 -p1 -b .errmsg
  25. %{__sed} -i 's/\r//' README.txt cherrypy/tutorial/README.txt cherrypy/tutorial/tutorial.conf
  26. %build
  27. %{__python} setup.py build
  28. %install
  29. %__rm -rf $RPM_BUILD_ROOT
  30. %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
  31. %check
  32. cd cherrypy/test
  33. # The tidy tool test needs tidy in the test dir
  34. ln -s %{_bindir}/tidy tidy
  35. PYTHONPATH='../../' %{__python} test.py --dumb
  36. %clean
  37. %__rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root,-)
  40. %doc README.txt
  41. %doc cherrypy/tutorial
  42. %{_bindir}/cherryd
  43. %{python_sitelib}/*
  44. %changelog
  45. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.2-2
  46. - rebuild with python-2.7.2
  47. * Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.1.2-1
  48. - initial build based on Fedora development
  49. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.1.2-5
  50. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  51. * Mon May 31 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-4
  52. - Fix a failing unittest with newer python
  53. * Sat Apr 24 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-3
  54. - Revert a try at 3.2.x-rc1 as the tests won't pass without some work.
  55. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.2-2
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  57. * Tue Jun 16 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.2-1
  58. - New upstream with python-2.6 fixes.
  59. - BR tidy for tests.
  60. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.1-2
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  62. * Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 3.1.1-1
  63. - Update to 3.1.1
  64. - Fix python-2.6 build errors
  65. - Make test code non-interactive via cmdline switch
  66. - Refresh the no test and tutorial patch
  67. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.3-3
  68. - Rebuild for Python 2.6
  69. * Tue Jan 22 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-2
  70. - Forgot to upload the tarball.
  71. * Mon Jan 21 2008 Toshio Kuratomi <toshio@fedoraproject.org> 3.0.3-1
  72. - Upgrade to 3.0.3.
  73. * Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-2
  74. - EINTR Patch needed to be forwarded ported as well as it is only applied to
  75. CP trunk (3.x).
  76. * Thu Jan 17 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.3.0-1
  77. - Update to new upstream which rolls in the backported security fix.
  78. - Refresh other patches to apply against new version.
  79. - Change to new canonical source URL.
  80. - Reenable tests.
  81. * Sun Jan 6 2008 Toshio Kuratomi <toshio@fedoraproject.org> 2.2.1-8
  82. - Fix a security bug with a backport of http://www.cherrypy.org/changeset/1775
  83. - Include the egginfo files as well as the python files.
  84. * Sat Nov 3 2007 Luke Macken <lmacken@redhat.com> 2.2.1-7
  85. - Apply backported fix from http://www.cherrypy.org/changeset/1766
  86. to improve CherryPy's SIGSTOP/SIGCONT handling (Bug #364911).
  87. Thanks to Nils Philippsen for the patch.
  88. * Mon Feb 19 2007 Luke Macken <lmacken@redhat.com> 2.2.1-6
  89. - Disable regression tests until we can figure out why they
  90. are dying in mock.
  91. * Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-5
  92. - Add python-devel to BuildRequires
  93. * Sun Dec 10 2006 Luke Macken <lmacken@redhat.com> 2.2.1-4
  94. - Rebuild for python 2.5
  95. * Mon Sep 18 2006 Luke Macken <lmacken@redhat.com> 2.2.1-3
  96. - Rebuild for FC6
  97. - Include pyo files instead of ghosting them
  98. * Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-2
  99. - Rebuild
  100. * Thu Jul 13 2006 Luke Macken <lmacken@redhat.com> 2.2.1-1
  101. - Update to 2.2.1
  102. - Remove unnecessary python-abi requirement
  103. * Sat Apr 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.2.0-1
  104. - Update to 2.2.0
  105. * Wed Feb 22 2006 Gijs Hollestelle <gijs@gewis.nl> 2.1.1-1
  106. - Update to 2.1.1 (Security fix)
  107. * Tue Nov 1 2005 Gijs Hollestelle <gijs@gewis.nl> 2.1.0-1
  108. - Updated to 2.1.0
  109. * Sat May 14 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-2
  110. - Added dist tag
  111. * Sun May 8 2005 Gijs Hollestelle <gijs@gewis.nl> 2.0.0-1
  112. - Updated to 2.0.0 final
  113. - Updated python-cherrypy-tutorial-doc.patch to match new version
  114. * Wed Apr 6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 2.0.0-0.2.b
  115. - Removed CFLAGS
  116. * Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 2.0.0-0.1.b
  117. - Initial Fedora Package