1
0

- Add patch to fix the pycparser issues as per bellow:

* pycparser.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=48
This commit is contained in:
Tomáš Chvátal
2019-04-08 08:30:13 +00:00
committed by Git OBS Bridge
parent 4493705311
commit c1adf547c6
3 changed files with 80 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ License: GPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/libgit2/pygit2
Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
Patch0: pycparser.patch
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pycparser}
@@ -48,8 +49,7 @@ Bindings for libgit2, a linkable C library for the Git version-control system.
%prep
%setup -q -n pygit2-%{version}
# do not hardcode version
sed -i -e 's:pycparser<2.18:pycparser:g' setup.py
%patch0 -p1
# do not add options to pytest
rm pytest.ini
@@ -62,9 +62,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# disable tests for now until https://github.com/libgit2/pygit2/issues/846
# gets fixed; upstream https://github.com/eliben/pycparser/issues/305
#%%pytest_arch
%pytest_arch
%files %{python_files}
%license COPYING