python-GitPython/python-GitPython.spec
2020-10-26 16:59:12 +08:00

53 lines
1.6 KiB
RPMSpec

%global modname git
%global srcname GitPython
Name: python-%{srcname}
Version: 3.1.11
Release: 1
Summary: Python Git Library
License: BSD and MIT
URL: https://github.com/gitpython-developers/GitPython
Source0: https://github.com/gitpython-developers/GitPython/archive/3.1.11.tar.gz
BuildArch: noarch
%global _description \
GitPython is a python library used to interact with git repositories,\
high-level like git-porcelain, or low-level like git-plumbing.\
\
It provides abstractions of git objects for easy access of repository data,\
and additionally allows you to access the git repository more directly using\
either a pure python implementation, or the faster, but more resource\
intensive git command implementation.\
\
The object database implementation is optimized for handling large quantities\
of objects and large datasets, which is achieved by using\
low-level structures and data streaming.
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: git-core
Requires: python3-gitdb >= 4.0.0
%description -n python3-%{srcname} %{_description}
Python 3 version.
%prep
%autosetup -n %{srcname}-%{version} -p1
%build
%py3_build
%install
%py3_install
%files -n python3-%{srcname}
%license LICENSE
%doc CHANGES AUTHORS
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{modname}/
%changelog
* Mon Oct 26 2020 Jiachen Fan <fanjiachen3@huawei.com> - 3.1.11-1
- package init