[Python-modules-commits] r28873 - in packages/python-gdata/trunk/debian (changelog rules)

mitya57-guest at users.alioth.debian.org mitya57-guest at users.alioth.debian.org
Mon May 12 13:17:08 UTC 2014


    Date: Monday, May 12, 2014 @ 13:17:08
  Author: mitya57-guest
Revision: 28873

Replace build directory with real files paths in docs.

Modified:
  packages/python-gdata/trunk/debian/changelog
  packages/python-gdata/trunk/debian/rules

Modified: packages/python-gdata/trunk/debian/changelog
===================================================================
--- packages/python-gdata/trunk/debian/changelog	2014-05-12 12:59:26 UTC (rev 28872)
+++ packages/python-gdata/trunk/debian/changelog	2014-05-12 13:17:08 UTC (rev 28873)
@@ -4,6 +4,7 @@
     previous work!
   * Add handle_redirects.patch to fix issues with Google forcing
     HTTPS URIs (closes: #747849).
+  * Replace build directory with real files paths in docs.
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Sat, 23 Nov 2013 20:12:59 +0400
 

Modified: packages/python-gdata/trunk/debian/rules
===================================================================
--- packages/python-gdata/trunk/debian/rules	2014-05-12 12:59:26 UTC (rev 28872)
+++ packages/python-gdata/trunk/debian/rules	2014-05-12 13:17:08 UTC (rev 28873)
@@ -2,7 +2,8 @@
 # -*- mode: makefile; coding: utf-8 -*-
 
 DEB_DIRECTORY = $(dir $(firstword $(MAKEFILE_LIST)))
-DEB_VERSION = $(word 2,$(shell cd $(DEB_DIRECTORY)/.. && dpkg-parsechangelog | grep ^Version:))
+SOURCE_DIRECTORY = $(realpath $(DEB_DIRECTORY)/..)
+DEB_VERSION = $(word 2,$(shell cd $(SOURCE_DIRECTORY) && dpkg-parsechangelog | grep ^Version:))
 UPSTREAM_DFSG_VERSION = $(firstword $(subst -, ,$(DEB_VERSION)))
 
 %:
@@ -11,6 +12,7 @@
 override_dh_auto_build:
 	dh_auto_build
 	cd pydocs; sh ./generate_docs
+	sed -i 's|$(SOURCE_DIRECTORY)/src|/usr/lib/python2.7/dist-packages|g' pydocs/*.html
 
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 override_dh_auto_test:




More information about the Python-modules-commits mailing list