python-nose-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
  3. %define pkg_release 1%{?_dist_release}
  4. Name: python-nose
  5. Version: 1.3.0
  6. Release: %{pkg_release}
  7. Summary: A discovery-based unittest extension for Python
  8. Summary(ja): Python 用の発見型ユニットテスト・エクステンション
  9. Group: Development/Languages
  10. License: LGPLv2
  11. URL: http://somethingaboutorange.com/mrl/projects/nose/
  12. Source0: http://somethingaboutorange.com/mrl/projects/nose/nose-%{version}.tar.gz
  13. #Patch0: no-google-analytics.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  15. BuildArch: noarch
  16. BuildRequires: python-devel, python-setuptools
  17. Requires: python-setuptools
  18. %description
  19. nose: a discovery-based unittest extension.
  20. nose provides an alternate test discovery and running process for unittest,
  21. one that is intended to mimic the behavior of py.test as much as is
  22. reasonably possible without resorting to too much magic.
  23. %prep
  24. %setup -q -n nose-%{version}
  25. #%patch0 -p1
  26. %build
  27. CFLAGS="${RPM_OPT_FLAGS}" %{__python} setup.py build
  28. %install
  29. rm -rf ${RPM_BUILD_ROOT}
  30. %{__python} setup.py install -O1 --skip-build --root ${RPM_BUILD_ROOT} --install-data=%{_datadir}
  31. %clean
  32. rm -rf ${RPM_BUILD_ROOT}
  33. %files
  34. %defattr(-,root,root,-)
  35. %doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
  36. %{_bindir}/nosetests
  37. %{_bindir}/nosetests-2.7
  38. %{_mandir}/man1/nosetests.1.gz
  39. %{python_sitelib}/nose-%{version}-py%{pyver}.egg-info
  40. %{python_sitelib}/nose
  41. %changelog
  42. * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.3.0-1
  43. - new upstream release
  44. - deleted Patch0
  45. * Sun Jun 24 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.2-1
  46. - new upstream release
  47. - added Patch0 from Debian sid to delete google analytics
  48. * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.4-3
  49. - rebuild with python-2.7.2
  50. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.10.4-2
  51. - rebuild with python-2.6
  52. * Sat Dec 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.4-1
  53. - initial build for Vine Linux based on fedora package
  54. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.4-1
  55. - Update to 0.10.4 to fix 2.6 issues
  56. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.3-2
  57. - Rebuild for Python 2.6
  58. * Sat Aug 02 2008 Luke Macken <lmacken@redhat.com> 0.10.3-1
  59. - Update to 0.10.3
  60. * Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> 0.10.1-1
  61. - Update to 0.10.1
  62. * Mon Dec 3 2007 Luke Macken <lmacken@redhat.com> 0.10.0-2
  63. - Add python-setuptools to Requires (Bug #408491)
  64. * Tue Nov 27 2007 Luke Macken <lmacken@redhat.com> 0.10.0-1
  65. - 0.10.0
  66. * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.3.b1
  67. - Update for python-setuptools changes in rawhide
  68. * Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.2.b1
  69. - 0.10.0b1
  70. - Update license tag to LGPLv2
  71. * Wed Jun 20 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.1.a2
  72. - 0.10.0a2
  73. * Sat Jun 2 2007 Luke Macken <lmacken@redhat.com> 0.9.3-1
  74. - Latest upstream release
  75. - Remove python-nose-0.9.2-mandir.patch
  76. * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> 0.9.2-1
  77. - Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in
  78. the correct location.
  79. - 0.9.2
  80. * Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> 0.9.1-2
  81. - Rebuild for python 2.5
  82. * Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> 0.9.1-1
  83. - 0.9.1
  84. * Fri Sep 8 2006 Luke Macken <lmacken@redhat.com> 0.9.0-1
  85. - 0.9.0
  86. * Wed Apr 19 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.7.2-1
  87. - Initial RPM release