[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} |
---|
[8158] | 6 | Version: 0.9.4 |
---|
[7144] | 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 |
---|
[6163] | 15 | |
---|
[5525] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
| 18 | BuildRequires: python-devel |
---|
| 19 | BuildRequires: python-setuptools |
---|
| 20 | BuildRequires: python-nose |
---|
| 21 | |
---|
[8158] | 22 | Vendor: Project Vine |
---|
| 23 | Distribution: Vine Linux |
---|
[5525] | 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} |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | CFLAGS="%{optflags}" %{__python} setup.py build |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | rm -rf %{buildroot} |
---|
| 41 | %{__python} setup.py install --skip-build --root %{buildroot} |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf %{buildroot} |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %check |
---|
| 49 | cd dulwich/tests |
---|
| 50 | #nosetests test*.py |
---|
| 51 | nosetests test_blackbox.py |
---|
| 52 | nosetests test_client.py |
---|
| 53 | #nosetests test_diff_tree.py |
---|
| 54 | nosetests test_fastexport.py |
---|
| 55 | nosetests test_file.py |
---|
| 56 | nosetests test_index.py |
---|
| 57 | nosetests test_lru_cache.py |
---|
| 58 | nosetests test_objects.py |
---|
| 59 | nosetests test_object_store.py |
---|
| 60 | nosetests test_patch.py |
---|
| 61 | nosetests test_pack.py |
---|
| 62 | nosetests test_protocol.py |
---|
| 63 | nosetests test_repository.py |
---|
| 64 | nosetests test_server.py |
---|
| 65 | nosetests test_web.py |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %files |
---|
| 69 | %defattr(-,root,root,-) |
---|
| 70 | %doc AUTHORS COPYING HACKING NEWS README docs/ |
---|
| 71 | %{_bindir}/dul-* |
---|
| 72 | %{_bindir}/%{srcname} |
---|
| 73 | %{python_sitearch}/%{srcname}* |
---|
| 74 | %exclude %{python_sitearch}/%{srcname}/tests* |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %changelog |
---|
[8158] | 78 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.9.4-1 |
---|
| 79 | - new upstream release |
---|
| 80 | |
---|
[7733] | 81 | * Sat Jul 20 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.0-1 |
---|
| 82 | - new upstream release |
---|
| 83 | |
---|
[7378] | 84 | * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.7-1 |
---|
| 85 | - new upstream release |
---|
| 86 | |
---|
[7144] | 87 | * Fri Nov 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.6-1 |
---|
| 88 | - new upstream release |
---|
| 89 | - deleted Patch0 |
---|
| 90 | |
---|
[6183] | 91 | * Wed May 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-2 |
---|
| 92 | - dropt BuildRequires: python-unittest2 |
---|
| 93 | |
---|
[6163] | 94 | * Thu May 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.5-1 |
---|
| 95 | - new upstream release |
---|
| 96 | - added Patch0 from Debian sid |
---|
| 97 | |
---|
[5701] | 98 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.8.3-2 |
---|
| 99 | - rebuild with python-2.7.2 |
---|
| 100 | |
---|
[5525] | 101 | * Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.3-1 |
---|
| 102 | - initial build for Vine Linux |
---|
| 103 | |
---|
| 104 | * Sun Apr 17 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.1-1 |
---|
| 105 | - Updated to new upstream version 0.7.1 |
---|
| 106 | |
---|
| 107 | * Fri Mar 11 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.0-3 |
---|
| 108 | - Test section reworked |
---|
| 109 | |
---|
| 110 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-2 |
---|
| 111 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 112 | |
---|
| 113 | * Thu Jan 27 2011 Fabian Affolter <fabian@bernewireless.net> - 0.7.0-1 |
---|
| 114 | - Updated to new upstream version 0.7.0 |
---|
| 115 | |
---|
[7733] | 116 | * Mon Nov 08 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.2-1 |
---|
[5525] | 117 | - Filtering added |
---|
| 118 | - Updated to new upstream version 0.6.2 |
---|
| 119 | |
---|
| 120 | * Wed Sep 01 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.1-1 |
---|
| 121 | - Fixed grep parameter |
---|
| 122 | - Run all test now |
---|
| 123 | - Updated to new upstream version 0.6.1 |
---|
| 124 | |
---|
| 125 | * Sat Jul 03 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-3 |
---|
| 126 | - Removed exec permission from test.py |
---|
| 127 | - Added python-nose |
---|
| 128 | |
---|
| 129 | * Fri Jun 25 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-2 |
---|
| 130 | - Changed summary |
---|
| 131 | - Change to srcname |
---|
| 132 | - Fixed rpmlint issue |
---|
| 133 | - Added check section and exclude the tests directory |
---|
| 134 | |
---|
| 135 | * Thu Jun 17 2010 Fabian Affolter <fabian@bernewireless.net> - 0.6.0-1 |
---|
| 136 | - Fixed some rpmlint issues |
---|
| 137 | - Added docs directory |
---|
| 138 | - Updated to new upstream version 0.6.0 |
---|
| 139 | |
---|
| 140 | * Wed Apr 28 2010 Fabian Affolter <fabian@bernewireless.net> - 0.5.0-2 |
---|
| 141 | - Doc added |
---|
| 142 | - Added BR setuptools |
---|
| 143 | |
---|
| 144 | * Fri Apr 16 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> 0.5.0-1 |
---|
| 145 | - Initial package |
---|