From b635b6c4f631c68c6f418de8c2909d5110e1d7b5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 18 Aug 2024 13:01:22 +0000 Subject: automatic import of python-pygit2 --- python-pygit2.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 python-pygit2.spec (limited to 'python-pygit2.spec') diff --git a/python-pygit2.spec b/python-pygit2.spec new file mode 100644 index 0000000..1e54086 --- /dev/null +++ b/python-pygit2.spec @@ -0,0 +1,62 @@ +%global _empty_manifest_terminate_build 0 +%global module pygit2 + +Name: python-%{module} +Version: 1.14.1 +Release: 1 +Summary: Python bindings for libgit2 +License: GPL-2.0-only WITH GCC-exception-2.0 +URL: https://www.pygit2.org/ +Source0: https://github.com/libgit2/pygit2/archive/v%{version}.tar.gz#/%{module}-%{version}.tar.gz + +%description +pygit2 is a set of Python bindings to the libgit2 library, which implements +the core of Git. + +%package -n python3-%{module} +Summary: Python 3 bindings for libgit2 +Provides: python-%{module} + +BuildRequires: make +BuildRequires: gcc +BuildRequires: (libgit2-devel >= 1.7.0 with libgit2-devel < 1.8.0) +BuildRequires: python3-cffi >= 1.16.0 +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm + + +%description -n python3-%{module} +pygit2 is a set of Python bindings to the libgit2 library, which implements +the core of Git. + +The python3-%{pkgname} package contains the Python 3 bindings. + +%package doc +Summary: Documentation for %{name} +BuildArch: noarch +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme +%description doc +Documentation for %{name}. + + +%prep +%autosetup -n %{module}-%{version} -p 1 + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{module} +%license COPYING +%doc README.md +%{python3_sitearch}/%{module}-*.egg-info/ +%{python3_sitearch}/%{module}/ + +%changelog +* Thu Mar 07 2024 weilinfox - 1.14.1-1 +- Package for pygit2 1.14.1 -- cgit v1.2.3