diff -Nru json-schema-validator-2.3/debian/changelog json-schema-validator-2.3/debian/changelog --- json-schema-validator-2.3/debian/changelog 2012-05-28 04:03:00.000000000 +0000 +++ json-schema-validator-2.3/debian/changelog 2012-07-16 09:09:20.000000000 +0000 @@ -1,8 +1,17 @@ +json-schema-validator (2.3-0ubuntu1~linaro2) precise; urgency=low + + * Added build time dependency on python-doc to get local copy of + intersphinx inventory. Idea from Michael Fladischer's post on + debian-python: http://lists.debian.org/debian- + python/2011/07/msg00016.html + + -- Marcin Juszkiewicz Mon, 16 Jul 2012 10:39:33 +0200 + json-schema-validator (2.3-0ubuntu1~linaro1) quantal; urgency=low * New upstream release. * Added Suggests: -doc package to main one. - * Use 'sphinxdoc' debhelper's addon. + * Use 'sphinxdoc' debhelper's addon. * Added 'nocheck' guard for running tests. -- Marcin Juszkiewicz Mon, 28 May 2012 11:55:03 +0800 diff -Nru json-schema-validator-2.3/debian/patches/intersphinx_mapping.patch json-schema-validator-2.3/debian/patches/intersphinx_mapping.patch --- json-schema-validator-2.3/debian/patches/intersphinx_mapping.patch 1970-01-01 00:00:00.000000000 +0000 +++ json-schema-validator-2.3/debian/patches/intersphinx_mapping.patch 2012-07-16 08:51:56.000000000 +0000 @@ -0,0 +1,39 @@ +Description: Use local object inventory files for sphinx + Use the local object inventory files to prevent sphinx-build from + downloading them during build. + This patch makes the intersphinx mappings depend on the existence of + these files, thus passing Debian Policy 12.3 while still maintaining + a level of comfort for the reader of the documentation. +Author: Fladischer Michael +Forwarded: not-needed +Last-Update: 2011-03-03 + +--- + doc/conf.py | 17 ++++++++++++++++- + 1 file changed, 16 insertions(+), 1 deletion(-) + +--- json-schema-validator-2.3.orig/doc/conf.py ++++ json-schema-validator-2.3/doc/conf.py +@@ -196,6 +196,21 @@ latex_documents = [ + # If false, no module index is generated. + #latex_use_modindex = True + + + # Example configuration for intersphinx: refer to the Python standard library. +-intersphinx_mapping = {'http://docs.python.org/': None} ++#intersphinx_mapping = {'http://docs.python.org/': None} ++def check_object_path(key, url, path): ++ if os.path.isfile(path): ++ return {key: (url, path)} ++ return {} ++ ++intersphinx_mapping = {} ++intersphinx_mapping.update(check_object_path('python', ++ 'http://docs.python.org/', ++ '/usr/share/doc/python' ++ + '.'.join([str(x) for x in sys.version_info[0:2]]) ++ + '/html/objects.inv')) ++intersphinx_mapping.update(check_object_path('sphinx', ++ 'http://sphinx.pocoo.org/', ++ '/usr/share/doc/python-sphinx/html/objects.inv')) ++ diff -Nru json-schema-validator-2.3/debian/patches/series json-schema-validator-2.3/debian/patches/series --- json-schema-validator-2.3/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ json-schema-validator-2.3/debian/patches/series 2012-07-16 08:45:09.000000000 +0000 @@ -0,0 +1 @@ +intersphinx_mapping.patch