diff --git a/files_in_srpm.txt b/files_in_srpm.txt new file mode 100644 index 0000000000000000000000000000000000000000..f75f04e64ced24a2d8679e7651afc81c13756e59 --- /dev/null +++ b/files_in_srpm.txt @@ -0,0 +1,2 @@ +pygit2-1.18.0.tar.gz +python-pygit2.spec diff --git a/pygit2-1.18.0.tar.gz b/pygit2-1.18.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9d7bb47bd4fd193edf8535de37a668e143608893 Binary files /dev/null and b/pygit2-1.18.0.tar.gz differ diff --git a/python-pygit2.spec b/python-pygit2.spec new file mode 100644 index 0000000000000000000000000000000000000000..31a449085b52613e3a0831679d48bb427959ddf4 --- /dev/null +++ b/python-pygit2.spec @@ -0,0 +1,48 @@ +%global srcname pygit2 + +Name: python-%{srcname} +Version: 1.14.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.14.0-1 +- initial package. diff --git a/python-pygit2.src.rpm b/python-pygit2.src.rpm new file mode 100644 index 0000000000000000000000000000000000000000..b9d89b6965029bfbea4619fce4caaa5bc020abc6 Binary files /dev/null and b/python-pygit2.src.rpm differ