[Python-modules-commits] r18204 - in packages/python-simpy/trunk/debian (6 files)
dandrimont-guest at users.alioth.debian.org
dandrimont-guest at users.alioth.debian.org
Thu Aug 18 21:43:43 UTC 2011
Date: Thursday, August 18, 2011 @ 21:43:42
Author: dandrimont-guest
Revision: 18204
Build the docs from source
- Switch to the 3.0 (quilt) source format
- Fetch the documentation sources from svn, put them in an orig-docs tarball
- Use dh_sphinxdoc
Added:
packages/python-simpy/trunk/debian/README.source
packages/python-simpy/trunk/debian/source/
packages/python-simpy/trunk/debian/source/format
Modified:
packages/python-simpy/trunk/debian/changelog
packages/python-simpy/trunk/debian/control
packages/python-simpy/trunk/debian/rules
Added: packages/python-simpy/trunk/debian/README.source
===================================================================
--- packages/python-simpy/trunk/debian/README.source (rev 0)
+++ packages/python-simpy/trunk/debian/README.source 2011-08-18 21:43:42 UTC (rev 18204)
@@ -0,0 +1,11 @@
+SimPy for Debian
+----------------
+
+The Sphinx input files for the documentation are checked out from svn,
+as seen in the 'get-orig-docs-tarball' target in debian/rules.
+
+The resulting file, python-simpy_<version>.orig_docs.tar.gz, should be
+put alongside python-simpy_<version>.orig.tar.gz for it to be
+recognized by dpkg-source.
+
+ -- Nicolas Dandrimont <nicolas.dandrimont at crans.org>, Thu, 18 Aug 2011 23:35:33 +0200
Modified: packages/python-simpy/trunk/debian/changelog
===================================================================
--- packages/python-simpy/trunk/debian/changelog 2011-08-18 20:20:32 UTC (rev 18203)
+++ packages/python-simpy/trunk/debian/changelog 2011-08-18 21:43:42 UTC (rev 18204)
@@ -7,8 +7,10 @@
* Update Standards-Version to 3.9.2 (no changes)
* Bump dehelper compat level to 8
* Switch to dh_python2
+ * Switch to the 3.0 (quilt) source format
+ * Build the documentation from source
- -- Nicolas Dandrimont <nicolas.dandrimont at crans.org> Thu, 18 Aug 2011 22:14:31 +0200
+ -- Nicolas Dandrimont <nicolas.dandrimont at crans.org> Thu, 18 Aug 2011 22:27:14 +0200
python-simpy (1.8-1) unstable; urgency=low
Modified: packages/python-simpy/trunk/debian/control
===================================================================
--- packages/python-simpy/trunk/debian/control 2011-08-18 20:20:32 UTC (rev 18203)
+++ packages/python-simpy/trunk/debian/control 2011-08-18 21:43:42 UTC (rev 18204)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Nicolas Dandrimont <nicolas.dandrimont at crans.org>
-Build-Depends: debhelper (>= 8.0.0~), python-all (>= 2.6.6-3~)
+Build-Depends: debhelper (>= 8.0.0~), python-all (>= 2.6.6-3~), python-sphinx (>= 1.0.7+dfsg-1~)
Standards-Version: 3.9.2
Homepage: http://simpy.sourceforge.net/
@@ -29,7 +29,7 @@
Package: python-simpy-doc
Architecture: all
Section: doc
-Depends: ${misc:Depends}
+Depends: ${sphinxdoc:Depends}, ${misc:Depends}
Description: python-based simulation package, Documentation and examples
SimPy is a process-based discrete-event simulation language based on
standard Python.
Modified: packages/python-simpy/trunk/debian/rules
===================================================================
--- packages/python-simpy/trunk/debian/rules 2011-08-18 20:20:32 UTC (rev 18203)
+++ packages/python-simpy/trunk/debian/rules 2011-08-18 21:43:42 UTC (rev 18204)
@@ -3,12 +3,23 @@
#export DH_VERBOSE=1
+VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p')
+
%:
- dh $@ --with python2
+ dh $@ --with python2,sphinxdoc
+override_dh_auto_build:
+ dh_auto_build
+
+ mv SimPyDocs SimPyDocs.orig
+ sphinx-build docs SimPyDocs
+
override_dh_install:
dh_install --fail-missing
+override_dh_compress:
+ dh_compress -X.py -X.txt
+
override_dh_auto_install:
for i in `find build/ -name '*\.py'`; do \
head -1 $$i | grep -q '^#!.*python'; \
@@ -19,3 +30,12 @@
done
dh_auto_install
+
+override_dh_auto_clean:
+ dh_auto_clean
+ if [ -d SimPyDocs.orig ]; then rm -r SimPyDocs; mv SimPyDocs.orig SimPyDocs; fi
+
+get-orig-docs-tarball:
+ mkdir -p get-orig-docs-tarball
+ svn export https://simpy.svn.sourceforge.net/svnroot/simpy/SimPy/SphinxStuff/tags/$(VERSION)release/ get-orig-docs-tarball/SphinxStuff
+ cd get-orig-docs-tarball/SphinxStuff; tar czvf ../python-simpy_$(VERSION).orig-docs.tar.gz .
Added: packages/python-simpy/trunk/debian/source/format
===================================================================
--- packages/python-simpy/trunk/debian/source/format (rev 0)
+++ packages/python-simpy/trunk/debian/source/format 2011-08-18 21:43:42 UTC (rev 18204)
@@ -0,0 +1 @@
+3.0 (quilt)
More information about the Python-modules-commits
mailing list