[packages/python-pygit2] - rel 2; no pycparser (from upstream)

arekm arekm at pld-linux.org
Thu Sep 20 18:05:34 CEST 2018


commit d979eb4eac76d0edd76e97e693ff9ed53d3a01fb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Sep 20 18:05:26 2018 +0200

    - rel 2; no pycparser (from upstream)

 pycparser.patch    | 23 +++++++++++++++++++++++
 python-pygit2.spec |  6 +++---
 2 files changed, 26 insertions(+), 3 deletions(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index 5946a79..d838752 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -14,13 +14,14 @@ Summary:	Python 2.x bindings for libgit2 library
 Summary(pl.UTF-8):	Wiązania Pythona 2.x do biblioteki libgit2
 Name:		python-%{module}
 Version:	0.27.2
-Release:	1
+Release:	2
 License:	GPL v2 with linking exception
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/pygit2/
 Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 # Source0-md5:	4db3fcd4c104f7e5a3cafb868e2bd0d4
 Patch0:		%{name}-docbuild.patch
+Patch1:		pycparser.patch
 URL:		https://pypi.python.org/pypi/pygit2
 BuildRequires:	libgit2-devel >= 0.27.0
 BuildRequires:	rpm-pythonprov
@@ -28,14 +29,12 @@ BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires:	python-cffi >= 1.8.1
 BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-pycparser
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
 BuildRequires:	python3-cffi >= 1.8.1
 BuildRequires:	python3-devel >= 1:3.2
 BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-pycparser
 BuildRequires:	python3-setuptools
 %endif
 %{?with_doc:BuildRequires:     sphinx-pdg}
@@ -80,6 +79,7 @@ Dokumentacja API modułu pygit2.
 %prep
 %setup -q -n %{module}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %if %{with python2}
diff --git a/pycparser.patch b/pycparser.patch
new file mode 100644
index 0000000..6d10ef0
--- /dev/null
+++ b/pycparser.patch
@@ -0,0 +1,23 @@
+From 1eaba181577de206d3d43ec7886d0353fc0c9f2a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= <jdavid.ibp at gmail.com>
+Date: Mon, 17 Sep 2018 20:19:41 +0200
+Subject: [PATCH] Do not require older pycparser<2.18
+
+Fixes #819
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index d1fc4e90..21d9276e 100644
+--- a/setup.py
++++ b/setup.py
+@@ -195,7 +195,7 @@ def run(self):
+       long_description=long_description,
+       packages=['pygit2'],
+       package_data={'pygit2': ['decl.h']},
+-      setup_requires=['cffi', 'pycparser<2.18'],
++      setup_requires=['cffi'],
+       install_requires=['cffi', 'six'],
+       zip_safe=False,
+       cmdclass=cmdclass,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pygit2.git/commitdiff/d979eb4eac76d0edd76e97e693ff9ed53d3a01fb



More information about the pld-cvs-commit mailing list