[Python-modules-commits] [python-aiosmtpd] 01/01: Minor tweaks to packaging, ready for upload.
Barry Warsaw
barry at moszumanska.debian.org
Thu Jul 6 22:45:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
barry pushed a commit to branch master
in repository python-aiosmtpd.
commit cc0aa41d9c0e2b1565fbeb35ed5c8753dc5b490d
Author: Barry Warsaw <barry at debian.org>
Date: Thu Jul 6 18:23:38 2017 -0400
Minor tweaks to packaging, ready for upload.
* Add python3-docutils as a B-D.
* Install aiosmtpd.1 from rst2man.
* Better rules organization.
---
debian/contrib/manpages/aiosmtpd.1 | 87 --------------------------------------
debian/control | 1 +
debian/python3-aiosmtpd.manpages | 2 +-
debian/rules | 10 ++++-
4 files changed, 10 insertions(+), 90 deletions(-)
diff --git a/debian/contrib/manpages/aiosmtpd.1 b/debian/contrib/manpages/aiosmtpd.1
deleted file mode 100644
index 12c68d9..0000000
--- a/debian/contrib/manpages/aiosmtpd.1
+++ /dev/null
@@ -1,87 +0,0 @@
-.\" Man page generated from reStructuredText.
-.
-.TH AIOSMTPD 1 "2017-07-01" "1.1" ""
-.SH NAME
-aiosmtpd \- Provide a Simple Mail Transfer Procotol (SMTP) server
-.
-.nr rst2man-indent-level 0
-.
-.de1 rstReportMargin
-\\$1 \\n[an-margin]
-level \\n[rst2man-indent-level]
-level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
--
-\\n[rst2man-indent0]
-\\n[rst2man-indent1]
-\\n[rst2man-indent2]
-..
-.de1 INDENT
-.\" .rstReportMargin pre:
-. RS \\$1
-. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
-. nr rst2man-indent-level +1
-.\" .rstReportMargin post:
-..
-.de UNINDENT
-. RE
-.\" indent \\n[an-margin]
-.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
-.nr rst2man-indent-level -1
-.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
-.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
-..
-.SH SYNOPSIS
-.sp
-aiosmtpd [options]
-.SH DESCRIPTION
-.sp
-This program provides an RFC 5321 compliant SMTP server that supports
-customizable extensions.
-.SH OPTIONS
-.INDENT 0.0
-.TP
-.B \-h\fP,\fB \-\-help
-Show this help message and exit
-.TP
-.B \-v\fP,\fB \-\-version
-Show program\(aqs version number and exit.
-.TP
-.B \-n\fP,\fB \-\-nosetuid
-This program generally tries to setuid \fBnobody\fP, unless this flag is
-set. The setuid call will fail if this program is not run as root (in
-which case, use this flag).
-.TP
-.BI \-c \ CLASSPATH\fP,\fB \ \-\-class \ CLASSPATH
-Use the given class (as a Python dotted import path) as the handler class
-for SMTP events. This class can process received messages and do other
-actions during the SMTP dialog. If not give, this uses a debugging
-handler by default.
-.sp
-When given all remaining positional arguments are passed as arguments to
-the class\(aqs \fB at classmethod from_cli()\fP method, which should do any
-appropriate type conversion, and then return an instance of the handler
-class.
-.TP
-.BI \-s \ SIZE\fP,\fB \ \-\-size \ SIZE
-Restrict the total size of the incoming message to SIZE number of bytes
-via the RFC 1870 SIZE extension. Defaults to 33554432 bytes.
-.TP
-.B \-u\fP,\fB \-\-smtputf8
-Enable the SMTPUTF8 extension and behave as an RFC 6531 SMTP proxy.
-.TP
-.B \-d\fP,\fB \-\-debug
-Increase debugging output.
-.UNINDENT
-.INDENT 0.0
-.TP
-.B \-l [HOST:PORT], \-\-listen [HOST:PORT]
-Optional host and port to listen on. If the PORT part is not given, then
-port 8025 is used. If only :PORT is given, then localhost is used for the
-hostname. If neither are given, localhost:8025 is used.
-.UNINDENT
-.SH AUTHOR
-The aiosmtpd developers
-.SH COPYRIGHT
-2015-2017 The aiosmtpd developrs
-.\" Generated by docutils manpage writer.
-.
diff --git a/debian/control b/debian/control
index 9fc9336..0f2e6c7 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.o
Build-Depends: debhelper (>= 9),
dh-python,
python3-all (>= 3.5),
+ python3-docutils,
python3-public,
python3-setuptools,
python3-sphinx
diff --git a/debian/python3-aiosmtpd.manpages b/debian/python3-aiosmtpd.manpages
index e95204f..3760f31 100644
--- a/debian/python3-aiosmtpd.manpages
+++ b/debian/python3-aiosmtpd.manpages
@@ -1 +1 @@
-debian/contrib/manpages/aiosmtpd.1
+debian/compiled_doc/manpage/aiosmtpd.man
diff --git a/debian/rules b/debian/rules
index 652f936..8bd318b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,14 @@ export PYBUILD_NAME=aiosmtpd
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
-override_dh_auto_install:
- dh_auto_install
+override_dh_installdocs:
PYTHONPATH=. sphinx-build -N -q -E -c ./ -b html . debian/compiled_doc/temp
mv debian/compiled_doc/temp/aiosmtpd/docs debian/compiled_doc/html
rm -rf debian/compiled_doc/temp
+ dh_installdocs
+
+override_dh_installman:
+ mkdir -p debian/compiled_doc/manpage
+ rst2man aiosmtpd/docs/manpage.rst > debian/compiled_doc/manpage/aiosmtpd.man
+ dh_installman
+ rm -rf debian/compiled_doc/manpage
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-aiosmtpd.git
More information about the Python-modules-commits
mailing list