[packages/sphinx-pdg] - fix comparison of float and sting - rel 2

baggins baggins at pld-linux.org
Sun Dec 13 17:11:15 CET 2015


commit 8cbf9e72cb8e4870c0e92f9d65324f1719371627
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Dec 13 17:10:58 2015 +0100

    - fix comparison of float and sting
    - rel 2

 float-ver.patch | 11 +++++++++++
 sphinx-pdg.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/sphinx-pdg.spec b/sphinx-pdg.spec
index 0f858c7..4d442ad 100644
--- a/sphinx-pdg.spec
+++ b/sphinx-pdg.spec
@@ -11,12 +11,13 @@ Summary:	Sphinx - Python documentation generator
 Summary(pl.UTF-8):	Sphinx - narzędzie do tworzenia dokumentacji dla Pythona
 Name:		sphinx-pdg
 Version:	1.3.3
-Release:	1
+Release:	2
 License:	BSD
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.python.org/pypi/Sphinx
 Source0:	https://pypi.python.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
 # Source0-md5:	3800ffa038a1eedb5139f9c247e7ee2f
+Patch0:		float-ver.patch
 URL:		http://sphinx.pocoo.org/
 %if %{with python2}
 BuildRequires:	python-babel >= 1.3
@@ -142,6 +143,7 @@ sphinx-pdg-3.
 
 %prep
 %setup -q -n Sphinx-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
diff --git a/float-ver.patch b/float-ver.patch
new file mode 100644
index 0000000..48ae5f9
--- /dev/null
+++ b/float-ver.patch
@@ -0,0 +1,11 @@
+--- Sphinx-1.3.3/sphinx/application.py~	2015-11-29 14:18:15.000000000 +0100
++++ Sphinx-1.3.3/sphinx/application.py	2015-12-13 17:10:16.838949090 +0100
+@@ -159,7 +159,7 @@
+ 
+         # check the Sphinx version if requested
+         if self.config.needs_sphinx and \
+-           self.config.needs_sphinx > sphinx.__display_version__[:3]:
++           str(self.config.needs_sphinx) > sphinx.__display_version__[:3]:
+             raise VersionRequirementError(
+                 'This project needs at least Sphinx v%s and therefore cannot '
+                 'be built with this version.' % self.config.needs_sphinx)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sphinx-pdg.git/commitdiff/8cbf9e72cb8e4870c0e92f9d65324f1719371627



More information about the pld-cvs-commit mailing list