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