]>
Commit | Line | Data |
---|---|---|
d47f2ad8 JB |
1 | # |
2 | # Conditional build: | |
d47f2ad8 JB |
3 | %bcond_with tests # unit tests (require git checkout, not archive?) |
4 | %bcond_without doc # Sphinx documentation | |
5 | ||
404da54d | 6 | Summary: Python Git Library |
d47f2ad8 | 7 | Summary(pl.UTF-8): Biblioteka Git dla Pythona |
fb4ab120 JR |
8 | Name: python3-git |
9 | Version: 3.1.26 | |
e4943939 | 10 | Release: 2 |
404da54d | 11 | License: BSD |
d47f2ad8 JB |
12 | Group: Development/Languages/Python |
13 | #Source0Download: https://github.com/gitpython-developers/GitPython/releases | |
ddbcfa81 | 14 | Source0: https://github.com/gitpython-developers/GitPython/archive/%{version}/GitPython-%{version}.tar.gz |
fb4ab120 JR |
15 | # Source0-md5: 64aa168043fa344ae0dda9e0e969600a |
16 | Patch0: markdown.patch | |
d47f2ad8 | 17 | URL: https://pypi.org/project/GitPython/ |
d47f2ad8 JB |
18 | BuildRequires: python3-modules >= 1:3.4 |
19 | BuildRequires: python3-setuptools | |
20 | %if %{with tests} | |
21 | BuildRequires: python3-ddt >= 1.1.1 | |
22 | BuildRequires: python3-gitdb >= 2.0.0 | |
23 | %endif | |
e0a63ebd | 24 | BuildRequires: rpm-pythonprov |
d47f2ad8 | 25 | BuildRequires: rpmbuild(macros) >= 1.714 |
fb4ab120 JR |
26 | %if %{with doc} |
27 | BuildRequires: python3-gitdb | |
28 | BuildRequires: sphinx-pdg | |
29 | %endif | |
30 | Requires: python3-modules >= 1:3.4 | |
404da54d ER |
31 | Obsoletes: GitPython |
32 | BuildArch: noarch | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
d47f2ad8 JB |
36 | GitPython is a Python library used to interact with git repositories, |
37 | high-level like git-porcelain, or low-level like git-plumbing. | |
38 | ||
39 | It provides abstractions of git objects for easy access of repository | |
40 | data, and additionally allows you to access the git repository more | |
41 | directly using either a pure Python implementation, or the faster, but | |
42 | more resource intensive git command implementation. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | GitPython to biblioteka Pythona służąca do pracy z repozytoriami gita, | |
46 | wysokopoziomowo, jak git-porcelain lub niskopoziomowo, jak | |
47 | git-plumbing. | |
48 | ||
49 | Biblioteka udostępnia abstrakcje obiektów gita, zapewniając łatwy | |
50 | dostęp do danych repozytorium, a ponadto pozwala na dostęp do | |
51 | repozytorium bardziej bezpośrednio albo przy użyciu czysto pythonowej | |
52 | implementacji, albo szybciej, ale z większym zużyciem zasobów, przy | |
53 | użyciu implementacji poleceń gita. | |
404da54d | 54 | |
d47f2ad8 JB |
55 | %package apidocs |
56 | Summary: API documentation for GitPython library | |
57 | Summary(pl.UTF-8): Dokumentacja API biblioteki GitPython | |
58 | Group: Documentation | |
59 | ||
60 | %description apidocs | |
61 | API documentation for GitPython library. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja API biblioteki GitPython. | |
404da54d ER |
65 | |
66 | %prep | |
194eb70a | 67 | %setup -q -n GitPython-%{version} |
fb4ab120 | 68 | %patch0 -p1 |
404da54d ER |
69 | |
70 | %build | |
d47f2ad8 | 71 | %py3_build %{?with_tests:test} |
d47f2ad8 JB |
72 | |
73 | %if %{with doc} | |
74 | %{__make} -C doc html | |
75 | %endif | |
404da54d ER |
76 | |
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
d47f2ad8 | 79 | |
d47f2ad8 JB |
80 | %py3_install |
81 | ||
404da54d ER |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
d47f2ad8 | 87 | %doc AUTHORS CHANGES LICENSE README.md |
d47f2ad8 JB |
88 | %dir %{py3_sitescriptdir}/git |
89 | %{py3_sitescriptdir}/git/*.py | |
90 | %{py3_sitescriptdir}/git/index | |
91 | %{py3_sitescriptdir}/git/objects | |
fb4ab120 | 92 | %{py3_sitescriptdir}/git/py.typed |
d47f2ad8 JB |
93 | %{py3_sitescriptdir}/git/refs |
94 | %{py3_sitescriptdir}/git/repo | |
95 | %{py3_sitescriptdir}/git/__pycache__ | |
96 | %{py3_sitescriptdir}/GitPython-%{version}-py*.egg-info | |
d47f2ad8 JB |
97 | |
98 | %if %{with doc} | |
99 | %files apidocs | |
100 | %defattr(644,root,root,755) | |
101 | %doc doc/build/html/{_static,*.html,*.js} | |
404da54d | 102 | %endif |