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