python-dulwich-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. %global srcname dulwich
  3. Name: python-%{srcname}
  4. Version: 0.8.3
  5. Release: 1%{?_dist_release}
  6. Summary: A python implementation of the Git file formats and protocols
  7. Summary(ja): Git ファイルフォーマットとプロトコルの python 実装
  8. Group: Development/Libraries
  9. License: GPLv2+
  10. URL: http://samba.org/~jelmer/dulwich/
  11. Source0: http://samba.org/~jelmer/%{srcname}/%{srcname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: python-devel
  14. BuildRequires: python-setuptools
  15. BuildRequires: python-nose
  16. BuildRequires: python-unittest2
  17. %description
  18. Dulwich is a pure-Python implementation of the Git file formats and
  19. protocols. The project is named after the village in which Mr. and
  20. Mrs. Git live in the Monty Python sketch.
  21. %prep
  22. %setup -q -n %{srcname}-%{version}
  23. %build
  24. CFLAGS="%{optflags}" %{__python} setup.py build
  25. %install
  26. rm -rf %{buildroot}
  27. %{__python} setup.py install --skip-build --root %{buildroot}
  28. %clean
  29. rm -rf %{buildroot}
  30. %check
  31. cd dulwich/tests
  32. #nosetests test*.py
  33. nosetests test_blackbox.py
  34. nosetests test_client.py
  35. #nosetests test_diff_tree.py
  36. nosetests test_fastexport.py
  37. nosetests test_file.py
  38. nosetests test_index.py
  39. nosetests test_lru_cache.py
  40. nosetests test_objects.py
  41. nosetests test_object_store.py
  42. nosetests test_patch.py
  43. nosetests test_pack.py
  44. nosetests test_protocol.py
  45. nosetests test_repository.py
  46. nosetests test_server.py
  47. nosetests test_web.py
  48. %files
  49. %defattr(-,root,root,-)
  50. %doc AUTHORS COPYING HACKING NEWS README docs/
  51. %{_bindir}/dul-*
  52. %{_bindir}/%{srcname}
  53. %{python_sitearch}/%{srcname}*
  54. %exclude %{python_sitearch}/%{srcname}/tests*
  55. %changelog
  56. * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-1
  57. - initial build for Vine Linux
  58. * Sun Apr 17 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.1-1
  59. - Updated to new upstream version 0.7.1
  60. * Fri Mar 11 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.0-3
  61. - Test section reworked
  62. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  64. * Thu Jan 27 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.0-1
  65. - Updated to new upstream version 0.7.0
  66. * Sat Nov 08 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.2-1
  67. - Filtering added
  68. - Updated to new upstream version 0.6.2
  69. * Wed Sep 01 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.1-1
  70. - Fixed grep parameter
  71. - Run all test now
  72. - Updated to new upstream version 0.6.1
  73. * Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-3
  74. - Removed exec permission from test.py
  75. - Added python-nose
  76. * Fri Jun 25 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-2
  77. - Changed summary
  78. - Change to srcname
  79. - Fixed rpmlint issue
  80. - Added check section and exclude the tests directory
  81. * Thu Jun 17 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-1
  82. - Fixed some rpmlint issues
  83. - Added docs directory
  84. - Updated to new upstream version 0.6.0
  85. * Wed Apr 28 2010 Fabian Affolter <fabian@bernewireless.net> - 0.5.0-2
  86. - Doc added
  87. - Added BR setuptools
  88. * Fri Apr 16 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> 0.5.0-1
  89. - Initial package