forked from mcepl/python-pygit2
Accepting request 1163862 from home:fstrba:branches:devel:languages:python
Fix build in factory with libgit2 1.8.x OBS-URL: https://build.opensuse.org/request/show/1163862 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=86
This commit is contained in:
@@ -25,6 +25,7 @@ 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
|
||||
Patch0: pygit2-Upgrade_to_libgit2_v1_8_0.patch
|
||||
BuildRequires: %{python_module cached-property}
|
||||
BuildRequires: %{python_module cffi >= 1.4.0}
|
||||
BuildRequires: %{python_module devel}
|
||||
@@ -46,7 +47,10 @@ Requires: python-cached-property
|
||||
Bindings for libgit2, a linkable C library for the Git version-control system.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pygit2-%{version}
|
||||
%setup -q -n pygit2-%{version}
|
||||
%if %{?pkg_vcmp:%pkg_vcmp libgit2-devel >= 1.8}%{!?pkg_vcmp:0}
|
||||
%patch -P 0 -p1
|
||||
%endif
|
||||
|
||||
# do not add options to pytest
|
||||
rm pytest.ini
|
||||
|
Reference in New Issue
Block a user