%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 - 4.0.1-1 - package init