python-dulwich-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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.13.0
  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. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. Dulwich is a pure-Python implementation of the Git file formats and
  20. protocols. The project is named after the village in which Mr. and
  21. Mrs. Git live in the Monty Python sketch.
  22. %prep
  23. %setup -q -n %{srcname}-%{version}
  24. %build
  25. CFLAGS="%{optflags}" %{__python} setup.py build
  26. %install
  27. rm -rf %{buildroot}
  28. %{__python} setup.py install --skip-build --root %{buildroot}
  29. rm -rf %{buildroot}%{python_sitearch}/docs
  30. %clean
  31. rm -rf %{buildroot}
  32. %check
  33. cd dulwich/tests
  34. #nosetests test*.py
  35. nosetests test_blackbox.py
  36. nosetests test_client.py
  37. #nosetests test_diff_tree.py
  38. nosetests test_fastexport.py
  39. nosetests test_file.py
  40. nosetests test_index.py
  41. nosetests test_lru_cache.py
  42. nosetests test_objects.py
  43. nosetests test_object_store.py
  44. nosetests test_patch.py
  45. nosetests test_pack.py
  46. nosetests test_protocol.py
  47. nosetests test_repository.py
  48. nosetests test_server.py
  49. nosetests test_web.py
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc AUTHORS COPYING NEWS docs/
  53. %{_bindir}/dul-*
  54. %{_bindir}/%{srcname}
  55. %{python_sitearch}/%{srcname}*
  56. %exclude %{python_sitearch}/%{srcname}/tests*
  57. %changelog
  58. * Tue May 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.13.0-1
  59. - new upstream release
  60. - fixed %%doc
  61. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.4-1
  62. - new upstream release
  63. * Sat Jul 20 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1
  64. - new upstream release
  65. * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.7-1
  66. - new upstream release
  67. * Fri Nov 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.6-1
  68. - new upstream release
  69. - deleted Patch0
  70. * Wed May 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-2
  71. - dropt BuildRequires: python-unittest2
  72. * Thu May 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-1
  73. - new upstream release
  74. - added Patch0 from Debian sid
  75. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.8.3-2
  76. - rebuild with python-2.7.2
  77. * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-1
  78. - initial build for Vine Linux
  79. * Sun Apr 17 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.1-1
  80. - Updated to new upstream version 0.7.1
  81. * Fri Mar 11 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.0-3
  82. - Test section reworked
  83. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2
  84. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  85. * Thu Jan 27 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.0-1
  86. - Updated to new upstream version 0.7.0
  87. * Mon Nov 08 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.2-1
  88. - Filtering added
  89. - Updated to new upstream version 0.6.2
  90. * Wed Sep 01 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.1-1
  91. - Fixed grep parameter
  92. - Run all test now
  93. - Updated to new upstream version 0.6.1
  94. * Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-3
  95. - Removed exec permission from test.py
  96. - Added python-nose
  97. * Fri Jun 25 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-2
  98. - Changed summary
  99. - Change to srcname
  100. - Fixed rpmlint issue
  101. - Added check section and exclude the tests directory
  102. * Thu Jun 17 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-1
  103. - Fixed some rpmlint issues
  104. - Added docs directory
  105. - Updated to new upstream version 0.6.0
  106. * Wed Apr 28 2010 Fabian Affolter <fabian@bernewireless.net> - 0.5.0-2
  107. - Doc added
  108. - Added BR setuptools
  109. * Fri Apr 16 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> 0.5.0-1
  110. - Initial package