[packages/python-pygit2] - updated to 0.21.3 - updated docbuild patch

qboosh qboosh at pld-linux.org
Thu Sep 18 16:43:45 CEST 2014


commit 6a54849d3cd8e94b10d246b5b34e6ce5a74b2782
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 18 16:43:43 2014 +0200

    - updated to 0.21.3
    - updated docbuild patch

 python-pygit2-docbuild.patch | 17 ++++++-----------
 python-pygit2.spec           |  6 +++---
 2 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/python-pygit2.spec b/python-pygit2.spec
index 3051644..272b61f 100644
--- a/python-pygit2.spec
+++ b/python-pygit2.spec
@@ -8,12 +8,12 @@
 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.21.2
+Version:	0.21.3
 Release:	1
 License:	GPL v2 with linking exception
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/p/pygit2/%{module}-%{version}.tar.gz
-# Source0-md5:	bcb35b873e70628ad1c8f72cb137f310
+# Source0-md5:	c929bb958f91ffaa942cac754218aa92
 Patch0:		%{name}-docbuild.patch
 URL:		https://pypi.python.org/pypi/pygit2
 BuildRequires:	libgit2-devel >= 0.21.0
@@ -61,7 +61,7 @@ Dokumentacja API %{module}.
 
 %prep
 %setup -q -n %{module}-%{version}
-%patch0 -p0
+%patch0 -p1
 
 # these tests use network
 %{__rm} test/test_{credentials,repository}.py
diff --git a/python-pygit2-docbuild.patch b/python-pygit2-docbuild.patch
index 6b9b8f4..90866e8 100644
--- a/python-pygit2-docbuild.patch
+++ b/python-pygit2-docbuild.patch
@@ -1,17 +1,12 @@
---- docs/conf.py.orig	2013-10-13 17:53:38.807267727 +0100
-+++ docs/conf.py	2013-10-13 18:06:24.038047114 +0100
-@@ -12,11 +12,13 @@
- # serve to show the default.
- 
- import sys, os
-+from distutils.util import get_platform
- 
- # If extensions (or modules to document with autodoc) are in another directory,
+--- pygit2-0.21.3/docs/conf.py.orig	2014-09-18 16:25:58.336102616 +0200
++++ pygit2-0.21.3/docs/conf.py	2014-09-18 16:30:38.056090370 +0200
+@@ -18,7 +18,8 @@
  # add these directories to sys.path here. If the directory is relative to the
  # documentation root, use os.path.abspath to make it absolute, like shown here.
--sys.path.insert(0, os.path.abspath('../build/lib.linux-x86_64-2.7'))
+ version_string = sys.platform.rstrip(digits) + "-" + os.uname()[4] + "-" + ".".join(platform.python_version_tuple()[0:2])
+-sys.path.insert(0, os.path.abspath('../build/lib.' + version_string))
 +builddir = os.getenv('PACKAGE_BUILD', '../build')
-+sys.path.insert(0, os.path.abspath('%s/lib.%s-%s' % (builddir, get_platform(), sys.version[0:3])))
++sys.path.insert(0, os.path.abspath(builddir + '/lib.' + version_string))
  
  # -- General configuration -----------------------------------------------------
  
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list