[Python-modules-commits] r25216 - in packages/fedmsg/trunk/debian (4 files)

laarmen-guest at users.alioth.debian.org laarmen-guest at users.alioth.debian.org
Wed Jul 17 09:45:09 UTC 2013


    Date: Wednesday, July 17, 2013 @ 09:45:07
  Author: laarmen-guest
Revision: 25216

Generate manpages for the scripts using help2man

Added:
  packages/fedmsg/trunk/debian/patches/no-tweet
Modified:
  packages/fedmsg/trunk/debian/control
  packages/fedmsg/trunk/debian/patches/series
  packages/fedmsg/trunk/debian/rules

Modified: packages/fedmsg/trunk/debian/control
===================================================================
--- packages/fedmsg/trunk/debian/control	2013-07-17 07:11:59 UTC (rev 25215)
+++ packages/fedmsg/trunk/debian/control	2013-07-17 09:45:07 UTC (rev 25216)
@@ -5,6 +5,7 @@
 Uploaders: Simon Chopin <chopin.simon at gmail.com>
 Build-Depends:
  debhelper (>= 9),
+ help2man,
  python-all (>= 2.6.6-3~),
  python-setuptools,
  python-zmq,

Added: packages/fedmsg/trunk/debian/patches/no-tweet
===================================================================
--- packages/fedmsg/trunk/debian/patches/no-tweet	                        (rev 0)
+++ packages/fedmsg/trunk/debian/patches/no-tweet	2013-07-17 09:45:07 UTC (rev 25216)
@@ -0,0 +1,16 @@
+Description: Disable the fedmsg-tweet script generation
+ Its dependencies are not in Debian.
+Author: Simon Chopin <chopin.simon at gmail.com>
+Forwarded: not-needed
+
+--- fedmsg-0.6.8+git20130623.1.28a3152.orig/setup.py
++++ fedmsg-0.6.8+git20130623.1.28a3152/setup.py
+@@ -123,7 +123,7 @@ setup(
+             #"fedmsg-config=fedmsg.commands.config:config",
+             "fedmsg-irc=fedmsg.commands.ircbot:ircbot",
+             "fedmsg-collectd=fedmsg.commands.collectd:collectd",
+-            "fedmsg-tweet=fedmsg.commands.tweet:tweet",
++            #"fedmsg-tweet=fedmsg.commands.tweet:tweet",
+             "fedmsg-announce=fedmsg.commands.announce:announce",
+         ],
+         'moksha.consumer': [

Modified: packages/fedmsg/trunk/debian/patches/series
===================================================================
--- packages/fedmsg/trunk/debian/patches/series	2013-07-17 07:11:59 UTC (rev 25215)
+++ packages/fedmsg/trunk/debian/patches/series	2013-07-17 09:45:07 UTC (rev 25216)
@@ -1,2 +1,3 @@
 strip_docs.diff
 default_prefix
+no-tweet

Modified: packages/fedmsg/trunk/debian/rules
===================================================================
--- packages/fedmsg/trunk/debian/rules	2013-07-17 07:11:59 UTC (rev 25215)
+++ packages/fedmsg/trunk/debian/rules	2013-07-17 09:45:07 UTC (rev 25216)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+UPSTREAM = $(shell dpkg-parsechangelog | egrep '^Version: ' | cut -d ' ' -f 2- | cut -d '-' -f 1)
+
 %:
 	dh $@ --with python2,sphinxdoc
 
@@ -16,6 +18,14 @@
 	chmod +x debian/tmp/usr/share/fedmsg/initsys/sysv/*
 	rm debian/tmp/usr/lib/python2*/dist-packages/fedmsg*.egg-info/SOURCES.txt
 
+override_dh_installman:
+	mkdir -p debian/tmp/manpages
+	set -e; \
+	for s in $(shell ls debian/tmp/usr/bin); do \
+		PYTHONPATH="$(shell pwd)" help2man -n "Manpages for the fedmsg suite" --version-string="$UPSTREAM" debian/tmp/usr/bin/$$s > debian/tmp/manpages/$$s.1; \
+	done
+	dh_installman -ppython-fedmsg debian/tmp/manpages/*
+
 # This is temporary until the git patch gets into the mainline.
 override_dh_install:
 	chmod -x debian/tmp/usr/lib/python2.7/dist-packages/fedmsg/tests/test_certs/*.cnf




More information about the Python-modules-commits mailing list