[packages/python-pygit2] - relax libgit2 version check to >=1.1
baggins
baggins at pld-linux.org
Sun Sep 5 09:47:40 CEST 2021
commit 239911712c1618a1a5c1b8daa2d80c212fe7865f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 5 09:47:00 2021 +0200
- relax libgit2 version check to >=1.1
libgit2-1.2.patch | 11 +++++++++++
python-pygit2.spec | 2 ++
2 files changed, 13 insertions(+)
---
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
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 <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
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/239911712c1618a1a5c1b8daa2d80c212fe7865f
More information about the pld-cvs-commit
mailing list