forked from mcepl/python-pygit2
- Drop the pygit2-0.28-Remove-pycparser-constraint.patch and replace
it with shorter sed - Switch to pytest testing: * Fails now but that is pycparser bug https://github.com/eliben/pycparser/issues/305 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=45
This commit is contained in:
committed by
Git OBS Bridge
parent
7abfe8db2a
commit
7ea1c3f2fc
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pygit2
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -13,12 +13,10 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# Define incompatible version for building libgit2
|
||||
%global libgit2_incompat_ver 0.29
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pygit2
|
||||
Version: 0.28.0
|
||||
@@ -28,18 +26,19 @@ 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: pygit2-0.28-Remove-pycparser-constraint.patch
|
||||
BuildRequires: %{python_module cffi}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pycparser}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: ca-certificates
|
||||
BuildRequires: ca-certificates-mozilla
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: (libgit2-devel >= %{version} with libgit2-devel < %{libgit2_incompat_ver})
|
||||
BuildRequires: libgit2-devel >= %{version}
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-pycparser
|
||||
Requires: python-six
|
||||
%requires_eq python-cffi
|
||||
%python_subpackages
|
||||
@@ -48,7 +47,11 @@ Requires: python-six
|
||||
Bindings for libgit2, a linkable C library for the Git version-control system.
|
||||
|
||||
%prep
|
||||
%autosetup -n pygit2-%{version} -p1
|
||||
%setup -q -n pygit2-%{version}
|
||||
# do not hardcode version
|
||||
sed -i -e 's:pycparser<2.18:pycparser:g' setup.py
|
||||
# do not add options to pytest
|
||||
rm pytest.ini
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
@@ -59,7 +62,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
Reference in New Issue
Block a user