]> git.pld-linux.org Git - packages/python-pygit2.git/commitdiff
- relax libgit2 version check to >=1.1 auto/th/python-pygit2-1.6.1-1
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 5 Sep 2021 07:47:00 +0000 (09:47 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 5 Sep 2021 07:47:00 +0000 (09:47 +0200)
libgit2-1.2.patch [new file with mode: 0644]
python-pygit2.spec

diff --git a/libgit2-1.2.patch b/libgit2-1.2.patch
new file mode 100644 (file)
index 0000000..079007b
--- /dev/null
@@ -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
index ef9f4174b78b57e8616e669887fed2fad20249a6..ae35a1d6c245436a6429a2a418e3b755746cb12a 100644 (file)
@@ -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
This page took 0.144952 seconds and 4 git commands to generate.