]>
Commit | Line | Data |
---|---|---|
ddbcfa81 | 1 | %define module git |
404da54d ER |
2 | Summary: Python Git Library |
3 | Name: python-%{module} | |
67c83eb8 | 4 | Version: 2.1.11 |
ddbcfa81 | 5 | Release: 1 |
404da54d ER |
6 | License: BSD |
7 | Group: Development/Languages | |
ddbcfa81 | 8 | Source0: https://github.com/gitpython-developers/GitPython/archive/%{version}/GitPython-%{version}.tar.gz |
67c83eb8 | 9 | # Source0-md5: 05e5f6be4887704c8643639c24e4e3c9 |
404da54d | 10 | URL: http://pypi.python.org/pypi/GitPython/ |
404da54d | 11 | BuildRequires: python-devel |
e0a63ebd | 12 | BuildRequires: python-modules |
404da54d | 13 | BuildRequires: python-setuptools |
e0a63ebd | 14 | BuildRequires: rpm-pythonprov |
5d7a0eea | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
780d101b | 16 | Requires: python-gitdb >= 2.0.0 |
404da54d ER |
17 | Obsoletes: GitPython |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | GitPython is a Python library used to interact with Git repositories. | |
23 | ||
24 | GitPython provides object model access to your git repository. Once | |
25 | you have created a repository object, you can traverse it to find | |
26 | parent commit(s), trees, blobs, etc. | |
27 | ||
28 | GitPython is a port of the grit library in Ruby created by Tom | |
29 | Preston-Werner and Chris Wanstrath. | |
30 | ||
31 | %prep | |
194eb70a | 32 | %setup -q -n GitPython-%{version} |
404da54d ER |
33 | |
34 | %build | |
34c0214a | 35 | %py_build |
404da54d ER |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
34c0214a | 39 | %py_install |
404da54d ER |
40 | |
41 | %py_postclean | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
2a39babc | 48 | %doc CHANGES LICENSE AUTHORS |
404da54d ER |
49 | %dir %{py_sitescriptdir}/git |
50 | %{py_sitescriptdir}/git/*.py[co] | |
2a39babc JR |
51 | %dir %{py_sitescriptdir}/git/index |
52 | %{py_sitescriptdir}/git/index/*.py[co] | |
404da54d ER |
53 | %dir %{py_sitescriptdir}/git/objects |
54 | %{py_sitescriptdir}/git/objects/*.py[co] | |
2a39babc JR |
55 | %dir %{py_sitescriptdir}/git/objects/submodule |
56 | %{py_sitescriptdir}/git/objects/submodule/*.py[co] | |
57 | %dir %{py_sitescriptdir}/git/refs | |
58 | %{py_sitescriptdir}/git/refs/*.py[co] | |
59 | %dir %{py_sitescriptdir}/git/repo | |
60 | %{py_sitescriptdir}/git/repo/*.py[co] | |
61 | %dir %{py_sitescriptdir}/git/test | |
62 | %{py_sitescriptdir}/git/test/*.py[co] | |
63 | %dir %{py_sitescriptdir}/git/test/fixtures | |
64 | %{py_sitescriptdir}/git/test/fixtures/* | |
65 | %dir %{py_sitescriptdir}/git/test/lib | |
66 | %{py_sitescriptdir}/git/test/lib/*.py[co] | |
ddbcfa81 JR |
67 | %dir %{py_sitescriptdir}/git/test/performance |
68 | %{py_sitescriptdir}/git/test/performance/*.py[co] | |
404da54d ER |
69 | %if "%{py_ver}" > "2.4" |
70 | %{py_sitescriptdir}/GitPython-%{version}*.egg-info | |
71 | %endif |