1
0

Accepting request 703237 from home:gary_smith:branches:devel:languages:python

- Update to 0.28.1
  * Removed patch pycparser.patch as it is no longer needed
  * Now works with pycparser 2.18 and above
  * Now ``Repository.write_archive(..)`` keeps the file mode
  * New ``Patch.data`` returns the raw contents of the patch as a byte string
  * New ``Patch.text`` returns the contents of the patch as a text string,

OBS-URL: https://build.opensuse.org/request/show/703237
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=50
This commit is contained in:
Tomáš Chvátal
2019-05-15 18:35:11 +00:00
committed by Git OBS Bridge
parent c1adf547c6
commit 6778612787
5 changed files with 15 additions and 77 deletions

View File

@@ -19,14 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pygit2
Version: 0.28.0
Version: 0.28.1
Release: 0
Summary: Python bindings for libgit2
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}
@@ -49,7 +48,6 @@ Bindings for libgit2, a linkable C library for the Git version-control system.
%prep
%setup -q -n pygit2-%{version}
%patch0 -p1
# do not add options to pytest
rm pytest.ini
@@ -59,6 +57,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%install
%python_install
%python_expand rm -rf %{buildroot}%{$python_sitearch}/pygit2/decl/
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check