--- /dev/null
+--- pygit2-1.6.1/src/types.h~ 2021-06-19 11:40:24.000000000 +0200
++++ pygit2-1.6.1/src/types.h 2021-09-05 09:45:39.881939711 +0200
+@@ -32,7 +32,7 @@
+ #include <Python.h>
+ #include <git2.h>
+
+-#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 1)
++#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 1)
+ #error You need a compatible libgit2 version (1.1.x)
+ #endif
+
#Source0Download: https://pypi.org/simple/pygit2/
Source0: https://files.pythonhosted.org/packages/source/p/pygit2/%{pypi_name}-%{version}.tar.gz
# Source0-md5: dea86e8c5db413d547dc6509124ccbf9
+Patch0: libgit2-1.2.patch
URL: https://pypi.org/project/pygit2/
BuildRequires: libgit2-devel >= 1.1
BuildRequires: rpm-pythonprov
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%py3_build