From 239911712c1618a1a5c1b8daa2d80c212fe7865f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 5 Sep 2021 09:47:00 +0200 Subject: [PATCH] - relax libgit2 version check to >=1.1 --- libgit2-1.2.patch | 11 +++++++++++ python-pygit2.spec | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 libgit2-1.2.patch diff --git a/libgit2-1.2.patch b/libgit2-1.2.patch new file mode 100644 index 0000000..079007b --- /dev/null +++ b/libgit2-1.2.patch @@ -0,0 +1,11 @@ +--- 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 + #include + +-#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 + diff --git a/python-pygit2.spec b/python-pygit2.spec index ef9f417..ae35a1d 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -15,6 +15,7 @@ Group: Libraries/Python #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 @@ -49,6 +50,7 @@ pygit2 to zbiór wiązań Pythona do biblioteki współdzielonej libgit2. %prep %setup -q -n %{module}-%{version} +%patch0 -p1 %build %py3_build -- 2.44.0