[Python-modules-commits] [pygtail] 04/04: Initial package

Christopher Baines cbaines-guest at moszumanska.debian.org
Tue May 10 07:41:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

cbaines-guest pushed a commit to branch master
in repository pygtail.

commit b1278b79093756c7ecd5ef1c4402afc2c85a99bf
Author: Christopher Baines <mail at cbaines.net>
Date:   Tue May 10 08:26:34 2016 +0100

    Initial package
---
 debian/changelog        |  5 +++++
 debian/compat           |  1 +
 debian/control          | 57 +++++++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright        | 16 ++++++++++++++
 debian/pygtail.manpages |  1 +
 debian/rules            | 22 +++++++++++++++++++
 debian/watch            |  3 +++
 7 files changed, 105 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6abfd4a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pygtail (0.6.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #823844)
+
+ -- Christopher Baines <mail at cbaines.net>  Mon, 09 May 2016 13:04:52 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..01779c8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,57 @@
+Source: pygtail
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Christopher Baines <mail at cbaines.net>
+Section: python
+Priority: optional
+Build-Depends: dh-python,
+               python-setuptools,
+               python3-setuptools,
+               python-all,
+               python3-all,
+               debhelper (>= 9),
+               help2man,
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pygtail.git
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pygtail.git
+Homepage: https://github.com/bgreenlee/pygtail
+
+Package: python-pygtail
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends}
+Description: read log file lines that have not been read (Python 2)
+ Pygtail reads log file lines that have not been read. It will even handle log
+ files that have been rotated.
+ .
+ This has similar functionality to the logtail2 tool (which can be found in the
+ logtail package).
+ .
+ This package contains the Python 2 library.
+
+Package: python3-pygtail
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends}
+Description: read log file lines that have not been read (Python 3)
+ Pygtail reads log file lines that have not been read. It will even handle log
+ files that have been rotated.
+ .
+ This has similar functionality to the logtail2 tool (which can be found in the
+ logtail package).
+ .
+ This package contains the Python 3 library.
+
+Package: pygtail
+Architecture: all
+Depends: ${misc:Depends},
+         python3,
+         python3-pygtail,
+Description: read log file lines that have not been read
+ pygtail is a tool for reading log files, and is capable of handling log files
+ which are rotated.
+ .
+ This has similar functionality to the logtail2 tool (which can be found in the
+ logtail package).
+ .
+ This package contains the command line tool, pygtail. See the python3-pygtail
+ package for the library that this tool uses.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..451ea1f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pygtail
+Source: https://github.com/bgreenlee/pygtail
+
+Files: *
+Copyright: 2011-2015 Brad Greenlee <brad at footle.org>
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2016 Christopher Baines <mail at cbaines.net>
+License: GPL-2+
+
+License: GPL-2+
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/pygtail.manpages b/debian/pygtail.manpages
new file mode 100644
index 0000000..9884a48
--- /dev/null
+++ b/debian/pygtail.manpages
@@ -0,0 +1 @@
+debian/pygtail.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e6ebc48
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+VERSION = $(shell dpkg-parsechangelog --show-field Version | cut -f1 -d-)
+
+export PYBUILD_NAME=pygtail
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_install:
+	dh_auto_install
+	# Remove the script from the python 2 package
+	rm debian/python-pygtail/usr/bin/pygtail
+	# Move the python 3 script to the pygtail package
+	mkdir -p debian/pygtail/usr/bin
+	mv debian/python3-pygtail/usr/bin/pygtail debian/pygtail/usr/bin/
+
+override_dh_installman:
+	PYTHONPATH="." help2man --no-info --version-string="${VERSION}" \
+		--name="read log file lines that have not been read" \
+		--output=debian/pygtail.1 \
+		./debian/pygtail/usr/bin/pygtail
+	dh_installman
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e409a78
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/pygtail-$1\.tar\.gz/ \
+  https://github.com/bgreenlee/pygtail/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pygtail.git



More information about the Python-modules-commits mailing list