diff options
author | Ana Custura <ana@netstat.org.uk> | 2016-12-04 21:00:45 +0100 |
---|---|---|
committer | Ana Custura <ana@netstat.org.uk> | 2016-12-04 21:00:45 +0100 |
commit | af23415a8c85ae304da853690cf2b171735c8b02 (patch) | |
tree | 0c9fcad22801fccc15c07f8b5b12ba092e2144a8 |
Import python-cymruwhois_1.6-2.debian.tar.xz
[dgit import tarball python-cymruwhois 1.6-2 python-cymruwhois_1.6-2.debian.tar.xz]
-rw-r--r-- | changelog | 17 | ||||
-rw-r--r-- | compat | 1 | ||||
-rw-r--r-- | control | 56 | ||||
-rw-r--r-- | copyright | 48 | ||||
-rw-r--r-- | patches/manpage.diff | 14 | ||||
-rw-r--r-- | patches/series | 1 | ||||
-rw-r--r-- | python-cymruwhois-doc.doc-base | 9 | ||||
-rw-r--r-- | python-cymruwhois-doc.install | 1 | ||||
-rw-r--r-- | python-cymruwhois.manpages | 1 | ||||
-rw-r--r-- | python-cymruwhois.postinst | 11 | ||||
-rw-r--r-- | python-cymruwhois.prerm | 13 | ||||
-rw-r--r-- | python3-cymruwhois.manpages | 1 | ||||
-rw-r--r-- | python3-cymruwhois.postinst | 11 | ||||
-rw-r--r-- | python3-cymruwhois.prerm | 13 | ||||
-rwxr-xr-x | rules | 34 | ||||
-rw-r--r-- | source/format | 1 | ||||
-rw-r--r-- | watch | 4 |
17 files changed, 236 insertions, 0 deletions
diff --git a/changelog b/changelog new file mode 100644 index 0000000..f7164cc --- /dev/null +++ b/changelog @@ -0,0 +1,17 @@ +python-cymruwhois (1.6-2) unstable; urgency=medium + + * Patches manpage file + + -- Ana Custura <ana@netstat.org.uk> Sun, 04 Dec 2016 20:00:45 +0000 + +python-cymruwhois (1.6-1) unstable; urgency=medium + + * New Upstream release + + -- Ana Custura <ana@netstat.org.uk> Sat, 24 Sep 2016 23:39:02 +0100 + +python-cymruwhois (1.5-1) unstable; urgency=medium + + * Initial release (Closes: #826729) + + -- Ana Custura <ana@netstat.org.uk> Sat, 18 Jun 2016 12:19:09 +0100 @@ -0,0 +1 @@ +9 @@ -0,0 +1,56 @@ +Source: python-cymruwhois +Maintainer: Ana Custura <ana@netstat.org.uk> +Section: python +Priority: optional +Build-Depends: debhelper (>= 9), + dh-python, + python, + python-all, + python-setuptools, + python3-all, + python3-setuptools, + python-docutils, + python-sphinx, + python-nose, + python3-nose, + python3-docutils, + python3-sphinx +Standards-Version: 3.9.8 +Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/python-cymruwhois.git +Vcs-Git: https://anonscm.debian.org/git/collab-maint/python-cymruwhois.git +Homepage: https://pythonhosted.org/cymruwhois/ +X-Python-Version: >= 2.6 +X-Python3-Version: >= 3.2 + +Package: python-cymruwhois +Architecture: all +Depends: ${python:Depends}, + ${misc:Depends} +Suggests: python-cymruwhois-doc +Description: Python library for interfacing with the whois.cymru.com service (Python 2) + Perform lookups by ip address and return ASN, + Country Code, and Netblock Owner. + . + This package installs the library for Python 2. + +Package: python3-cymruwhois +Architecture: all +Depends: ${python3:Depends}, + ${misc:Depends} +Suggests: python-cymruwhois-doc +Description: Python library for interfacing with the whois.cymru.com service (Python 3) + Perform lookups by ip address and return ASN, + Country Code, and Netblock Owner. + . + This package installs the library for Python 3. + +Package: python-cymruwhois-doc +Architecture: all +Section: doc +Depends: ${sphinxdoc:Depends}, + ${misc:Depends} +Description: python-cymruwhois common documentation + This is the common documentation package for packages python-cymruwhois and + python3-cymruwhois. It explains the usage of the cymruwhois API as + well as the command-line interface of the utility program + cymruwhois. diff --git a/copyright b/copyright new file mode 100644 index 0000000..911c0fd --- /dev/null +++ b/copyright @@ -0,0 +1,48 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-cymruwhois +Source: https://github.com/JustinAzoff/python-cymruwhois + +Files: * +Copyright: 2009 Justin Azoff <JAzoff@uamail.albany.edu> +License: Expat + +Files: debian/* +Copyright: 2016 Ana Custura <ana@netstat.org.uk> +License: GPL-2+ + +License: Expat + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including without + limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom + the Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/> + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + diff --git a/patches/manpage.diff b/patches/manpage.diff new file mode 100644 index 0000000..55358f3 --- /dev/null +++ b/patches/manpage.diff @@ -0,0 +1,14 @@ +Description: Removes unwanted line from manpage +Author: Ana Custura <ana@netstat.org.uk> +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/docs/cymruwhois.1 ++++ b/docs/cymruwhois.1 +@@ -29,7 +29,6 @@ + .\" TeX users may be more comfortable with the \fB<whatever>\fP and + .\" \fI<whatever>\fP escape sequences to invode bold face and italics, + .\" respectively. +-\fBcymruwhois\fP is a program that... + .SH OPTIONS + This program follow the usual GNU command line syntax, with long + options starting with two dashes (`-'). diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..f3baf20 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +manpage.diff diff --git a/python-cymruwhois-doc.doc-base b/python-cymruwhois-doc.doc-base new file mode 100644 index 0000000..e302e6f --- /dev/null +++ b/python-cymruwhois-doc.doc-base @@ -0,0 +1,9 @@ +Document: python-cymruwhois +Title: Debian python-cymruwhois Manual +Author: Justin Azoff +Abstract: This manual describes how to use the python-cymruwhois library in order to interface with the whois.cymru.com service. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-cymruwhois/html/index.html +Files: /usr/share/doc/python-cymruwhois/html/*.html diff --git a/python-cymruwhois-doc.install b/python-cymruwhois-doc.install new file mode 100644 index 0000000..b4d1ff0 --- /dev/null +++ b/python-cymruwhois-doc.install @@ -0,0 +1 @@ +docs/_build/html/* /usr/share/doc/python-cymruwhois/html diff --git a/python-cymruwhois.manpages b/python-cymruwhois.manpages new file mode 100644 index 0000000..139bd84 --- /dev/null +++ b/python-cymruwhois.manpages @@ -0,0 +1 @@ +docs/python-cymruwhois.1 diff --git a/python-cymruwhois.postinst b/python-cymruwhois.postinst new file mode 100644 index 0000000..c025e6f --- /dev/null +++ b/python-cymruwhois.postinst @@ -0,0 +1,11 @@ +#!/bin/sh +# postinst script for python-cymruwhois + +set -e +if [ $1 = 'configure' ]; then + update-alternatives --install /usr/bin/cymruwhois cymruwhois /usr/bin/python-cymruwhois 300 --slave /usr/share/man/man1/cymruwhois.1.gz cymruwhois.1.gz /usr/share/man/man1/python-cymruwhois.1.gz +fi + +#DEBHELPER# + +exit 0 diff --git a/python-cymruwhois.prerm b/python-cymruwhois.prerm new file mode 100644 index 0000000..80577a8 --- /dev/null +++ b/python-cymruwhois.prerm @@ -0,0 +1,13 @@ +#!/bin/sh +# prerm script for python-cymruwhois + +set -e + +if [ $1 = 'remove' ]; then +update-alternatives --remove cymruwhois /usr/bin/python-cymruwhois +fi + +#DEBHELPER# + +exit 0 + diff --git a/python3-cymruwhois.manpages b/python3-cymruwhois.manpages new file mode 100644 index 0000000..8a1c246 --- /dev/null +++ b/python3-cymruwhois.manpages @@ -0,0 +1 @@ +docs/python3-cymruwhois.1 diff --git a/python3-cymruwhois.postinst b/python3-cymruwhois.postinst new file mode 100644 index 0000000..354177c --- /dev/null +++ b/python3-cymruwhois.postinst @@ -0,0 +1,11 @@ +#!/bin/sh +# postinst script for python3-cymruwhois + +set -e +if [ $1 = 'configure' ]; then + update-alternatives --install /usr/bin/cymruwhois cymruwhois /usr/bin/python3-cymruwhois 200 --slave /usr/share/man/man1/cymruwhois.1.gz cymruwhois.1.gz /usr/share/man/man1/python3-cymruwhois.1.gz +fi + +#DEBHELPER# + +exit 0 diff --git a/python3-cymruwhois.prerm b/python3-cymruwhois.prerm new file mode 100644 index 0000000..e26f3d8 --- /dev/null +++ b/python3-cymruwhois.prerm @@ -0,0 +1,13 @@ +#!/bin/sh +# prerm script for python3-cymruwhois + +set -e + +if [ $1 = 'remove' ]; then +update-alternatives --remove cymruwhois /usr/bin/python3-cymruwhois +fi + +#DEBHELPER# + +exit 0 + @@ -0,0 +1,34 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +export DH_VERBOSE = 1 +PYVERS=$(shell pyversions -sv) +PY3VERS=$(shell py3versions -sv) +export PYBUILD_NAME=cymruwhois + +%: + dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild + +override_dh_auto_build: + PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ docs/_build/html # HTML generator + sed "s/command\./command (Python 2)/" docs/cymruwhois.1>docs/python-cymruwhois.1 + sed "s/command\./command (Python 3)/" docs/cymruwhois.1>docs/python3-cymruwhois.1 + dh_auto_build + +override_dh_auto_install: + dh_auto_install + + set -e && for pyvers in $(PYVERS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-cymruwhois; \ + done + + set -e && for pyvers in $(PY3VERS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-cymruwhois; \ + done + + mv $(CURDIR)/debian/python-cymruwhois/usr/bin/cymruwhois $(CURDIR)/debian/python-cymruwhois/usr/bin/python-cymruwhois + mv $(CURDIR)/debian/python3-cymruwhois/usr/bin/cymruwhois $(CURDIR)/debian/python3-cymruwhois/usr/bin/python3-cymruwhois +override_dh_auto_test: + echo "Tests are disabled as they require network connectivity." diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) @@ -0,0 +1,4 @@ +version=4 + + https://github.com/JustinAzoff/python-cymruwhois/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate |