diff --git a/python-pygit2.changes b/python-pygit2.changes index 399b623..30dc1ae 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 21 07:13:27 UTC 2023 - Daniel Garcia + +- Add support-libgit2-1.6.patch to make it work with the latest + libgit2 release gh#libgit2/pygit2#1200 + ------------------------------------------------------------------- Sat Dec 3 20:06:29 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pygit2.spec b/python-pygit2.spec index 430b2fa..9db0bee 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,7 +1,7 @@ # # spec file for package python-pygit2 # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # Copyright (c) 2019 Neal Gompa . # # All modifications and additions to the file contributed by third parties @@ -17,7 +17,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-pygit2 Version: 1.11.1 @@ -26,6 +25,8 @@ Summary: Python bindings for libgit2 License: GPL-2.0-only URL: https://github.com/libgit2/pygit2 Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz +# PATCH-FIX-UPSTREAM support-libgit2-1.6.patch gh#libgit2/pygit2#1200 +Patch0: support-libgit2-1.6.patch BuildRequires: %{python_module cached-property} BuildRequires: %{python_module cffi >= 1.4.0} BuildRequires: %{python_module devel} @@ -68,6 +69,7 @@ rm -rf pygit2 %files %{python_files} %license COPYING %doc README.rst -%{python_sitearch}/* +%{python_sitearch}/pygit2 +%{python_sitearch}/pygit2-%{version}*-info %changelog diff --git a/support-libgit2-1.6.patch b/support-libgit2-1.6.patch new file mode 100644 index 0000000..b6ced7e --- /dev/null +++ b/support-libgit2-1.6.patch @@ -0,0 +1,15 @@ +Index: pygit2-1.11.1/src/types.h +=================================================================== +--- pygit2-1.11.1.orig/src/types.h ++++ pygit2-1.11.1/src/types.h +@@ -32,8 +32,8 @@ + #include + #include + +-#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 5) +-#error You need a compatible libgit2 version (1.5.x) ++#if !(LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR == 6) ++#error You need a compatible libgit2 version (1.6.x) + #endif + + /*