[Python-apps-commits] r12019 - in packages/pelican/trunk/debian (5 files)
vcheng at users.alioth.debian.org
vcheng at users.alioth.debian.org
Wed Jun 17 06:05:49 UTC 2015
Date: Wednesday, June 17, 2015 @ 06:05:48
Author: vcheng
Revision: 12019
add pelican-doc package
Added:
packages/pelican/trunk/debian/pelican-doc.doc-base
packages/pelican/trunk/debian/pelican-doc.docs
Modified:
packages/pelican/trunk/debian/changelog
packages/pelican/trunk/debian/control
packages/pelican/trunk/debian/rules
Modified: packages/pelican/trunk/debian/changelog
===================================================================
--- packages/pelican/trunk/debian/changelog 2015-06-17 05:42:49 UTC (rev 12018)
+++ packages/pelican/trunk/debian/changelog 2015-06-17 06:05:48 UTC (rev 12019)
@@ -1,6 +1,9 @@
pelican (3.6.0-2) UNRELEASED; urgency=medium
* Rename binary package from python-pelican -> pelican.
+ * Build documentation and install into new pelican-doc package. Thanks to
+ Federico Ceratto for the patch! (Closes: #754071)
+ - Add build-depends on python-sphinx, dh-python.
-- Vincent Cheng <vcheng at debian.org> Tue, 16 Jun 2015 22:27:08 -0700
Modified: packages/pelican/trunk/debian/control
===================================================================
--- packages/pelican/trunk/debian/control 2015-06-17 05:42:49 UTC (rev 12018)
+++ packages/pelican/trunk/debian/control 2015-06-17 06:05:48 UTC (rev 12019)
@@ -5,8 +5,10 @@
Uploaders: OndÅej Surý <ondrej at debian.org>, Vincent Cheng <vcheng at debian.org>
Build-Depends:
debhelper (>= 7.4.3),
+ dh-python,
python-all (>= 2.6.6-3),
- python-setuptools (>= 0.6b3)
+ python-setuptools (>= 0.6b3),
+ python-sphinx
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
Homepage: http://getpelican.com/
@@ -36,6 +38,25 @@
(re)generate the weblog and it is easy to interface with DVCSes and web
hooks.
+Package: pelican-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends},
+ ${python:Depends},
+ ${sphinxdoc:Depends}
+Suggests:
+ pelican
+Description: blog aware, static website generator (documentation)
+ Pelican is a static site generator, written in Python. It allows you
+ to write your weblog entries directly with your editor of choice in
+ reStructuredText or Markdown, and generates completely static output
+ that is easy to host anywhere. Pelican includes a simple CLI tool to
+ (re)generate the weblog and it is easy to interface with DVCSes and web
+ hooks.
+ .
+ This package provides documentation for Pelican.
+
Package: python-pelican
Architecture: all
Section: oldlibs
Added: packages/pelican/trunk/debian/pelican-doc.doc-base
===================================================================
--- packages/pelican/trunk/debian/pelican-doc.doc-base (rev 0)
+++ packages/pelican/trunk/debian/pelican-doc.doc-base 2015-06-17 06:05:48 UTC (rev 12019)
@@ -0,0 +1,9 @@
+Document: pelican
+Title: Pelican Static Site Generator
+Author: Justin Mayer, Alexis Métaireau and others
+Abstract: Pelican is a static site generator written in Python
+Section: Web Development
+
+Format: HTML
+Index: /usr/share/doc/pelican-doc/html/index.html
+Files: /usr/share/doc/pelican-doc/html
Added: packages/pelican/trunk/debian/pelican-doc.docs
===================================================================
--- packages/pelican/trunk/debian/pelican-doc.docs (rev 0)
+++ packages/pelican/trunk/debian/pelican-doc.docs 2015-06-17 06:05:48 UTC (rev 12019)
@@ -0,0 +1 @@
+build/html
Modified: packages/pelican/trunk/debian/rules
===================================================================
--- packages/pelican/trunk/debian/rules 2015-06-17 05:42:49 UTC (rev 12018)
+++ packages/pelican/trunk/debian/rules 2015-06-17 06:05:48 UTC (rev 12019)
@@ -1,12 +1,27 @@
#!/usr/bin/make -f
%:
- dh $@ --with python2 --buildsystem=python_distutils
+ dh $@ --with python2,sphinxdoc --buildsystem=pybuild
override_dh_clean:
dh_clean
- rm -f pelican.egg-info/SOURCES.txt pelican.egg-info/requires.txt
+ rm -rf pelican.egg-info build/html
+override_dh_auto_build:
+ dh_auto_build
+ PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -E -bhtml docs build/html
+ rm -rf build/html/.doctrees
+
+override_dh_sphinxdoc:
+ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
+ dh_sphinxdoc -ppython-pelican-doc
+endif
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ dh_auto_test
+endif
+
override_dh_installchangelogs:
dh_installchangelogs docs/changelog.rst
More information about the Python-apps-commits
mailing list