!1 init package python-gitdb

From: @disnight
Reviewed-by: @small_leek,@shinwell_hu
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2020-10-27 10:36:44 +08:00 committed by Gitee
commit defb24c6f9
3 changed files with 53 additions and 0 deletions

BIN
gitdb-4.0.1.tar.gz Normal file

Binary file not shown.

49
python-gitdb.spec Normal file
View File

@ -0,0 +1,49 @@
%global modname gitdb
Name: python-%{modname}
Version: 4.0.1
Release: 1
Summary: Git Object Database
License: BSD and MIT
URL: https://github.com/gitpython-developers/gitdb
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: git-core
%global _description \
GitDB allows you to access bare git repositories for reading and writing.\
It aims at allowing full access to loose objects as well as packs with\
performance and scalability in mind. It operates exclusively on streams,\
allowing to handle large objects with a small memory footprint.
%description %{_description}
%package -n python3-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-smmap >= 3.0.1
Requires: python3-smmap >= 3.0.1
%description -n python3-%{modname} %{_description}
Python 3 version.
%prep
%autosetup -n %{modname}-%{version} -Sgit
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m nose -v --exclude=test_pack_writing
%files -n python3-%{modname}
%license LICENSE
%doc AUTHORS
%{python3_sitelib}/%{modname}-*.egg-info/
%{python3_sitelib}/%{modname}/
%changelog
* Mon Oct 26 2020 Jiachen Fan <fanjiachen3@huawei.com> - 4.0.1-1
- package init

4
python-gitdb.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: gitpython-developers/gitdb
tag_prefix: ""
separator: "."