diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..28b5f5b4c1e6e959441464003229e288b25b2053 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +pygit2-1.13.0.tar.gz +python-pygit2.spec diff --git a/pygit2-1.13.0.tar.gz b/pygit2-1.13.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..659fd504b75fc07aa0456e238c85bcd19f02a5b4 Binary files /dev/null and b/pygit2-1.13.0.tar.gz differ diff --git a/python-pygit2.spec b/python-pygit2.spec new file mode 100644 index 0000000000000000000000000000000000000000..bf237aaf0ebf91d934f0e49ee046ffc5953e9140 --- /dev/null +++ b/python-pygit2.spec @@ -0,0 +1,48 @@ +%global srcname pygit2 + +Name: python-%{srcname} +Version: 1.13.0 +Release: 1 +Summary: Python bindings for libgit2 +License: GPL-2.0-only WITH GCC-exception-2.0 +URL: https://www.pygit2.org/ +Source0: %{pypi_source %{srcname}} + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: libgit2-devel +BuildRequires: gcc +BuildRequires: make + +%description +pygit2 is a set of Python bindings to the libgit2 library, which implements +the core of Git. + +%package -n python3-%{srcname} +Summary: %{summary} +Provides: python-%{srcname} = %{version}-%{release} + +%description -n python3-%{srcname} +pygit2 is a set of Python bindings to the libgit2 library, which implements +the core of Git. + +%prep +%autosetup -n %{srcname}-%{version} -p1 + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{srcname} +%license COPYING +%{python3_sitearch}/%{srcname} +%{python3_sitearch}/%{srcname}-%{version}*.dist-info/ + +%changelog +* Wed Dec 3 2025 yyjeqhc 1.13.0-1 +- initial package. diff --git a/python-pygit2.src.rpm b/python-pygit2.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..2c469485542c549538fb9799086df33265c6394e Binary files /dev/null and b/python-pygit2.src.rpm differ