1
0
forked from pool/python-pygit2

Accepting request 1073635 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1073635
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygit2?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2023-03-26 18:19:58 +00:00 committed by Git OBS Bridge
commit f68c127087
3 changed files with 26 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 21 07:13:27 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- 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 <yarunachalam@suse.com>

View File

@ -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 <ngompa13@gmail.com>.
#
# 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

15
support-libgit2-1.6.patch Normal file
View File

@ -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 <Python.h>
#include <git2.h>
-#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
/*