From fbbbe99f63e95e1ddf1fc56c268eff2c1a0769a3 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Sun, 1 Feb 2015 14:08:52 +0200 Subject: [PATCH] Add debian packaging Debian and Ubuntu 12.04 LTS don't have this package yet and repa fails to install. So, adding .deb packaging to solve this. Change-Id: Ibd38a453df670fa6dc90aecc38a4fc28dbbd05ef Signed-off-by: Ed Bartosh --- debian/changelog | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ debian/compat | 1 + debian/control | 27 ++++++++++++++++++++++++ debian/copyright | 52 +++++++++++++++++++++++++++++++++++++++++++++ debian/docs | 1 + debian/rules | 13 ++++++++++++ debian/watch | 4 ++++ 7 files changed, 153 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..eddb199 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,55 @@ +python-jenkinsapi (0.2.26-1) unstable; urgency=low + + * Upgraded to 0.2.26 + + -- Ed Bartosh Sun, 01 Feb 2015 12:40:25 +0200 + +python-jenkinsapi (0.2.16-2) unstable; urgency=medium + + * Closes: #734433 -- "Python-Versions" not "Python-Verions". + + -- Al Stone Tue, 07 Jan 2014 10:54:52 -0700 + +python-jenkinsapi (0.2.16-1) unstable; urgency=medium + + * Update to latest upstream. + * Closes: #725589 -- FTBS due to unexpected upstream changes + + -- Al Stone Mon, 06 Jan 2014 18:12:26 -0700 + +python-jenkinsapi (0.1.11-5) unstable; urgency=low + + * Correct Build-Depends for dh addon. + * Correct Depends for pkg_resources module. + + -- Al Stone Sun, 26 Aug 2012 18:13:53 -0600 + +python-jenkinsapi (0.1.11-4) unstable; urgency=low + + * Closes: #684304 -- managed to depend on python 2.6 and 2.7 at + the same time with overzealous use of ${python:Versions} in the + control file. + + -- Al Stone Wed, 08 Aug 2012 10:40:55 -0600 + +python-jenkinsapi (0.1.11-3) unstable; urgency=low + + * Closes: #684145 -- dumb mistake, forgot a build-dep + * Change package to 'all', not 'any' architecture. + + -- Al Stone Tue, 07 Aug 2012 11:52:19 -0600 + +python-jenkinsapi (0.1.11-2) unstable; urgency=low + + * Replace usage of python-support with dh_python2 + * Closes: #683458 -- now that dh_python2 is being used, package is + being built correctly and is no longer empty on rebuild + * Closes: #683460 -- corrected package dependencies + + -- Al Stone Mon, 06 Aug 2012 20:30:56 -0600 + +python-jenkinsapi (0.1.11-1) unstable; urgency=low + + * Initial release (Closes: #682114) + + -- Al Stone Tue, 24 Jul 2012 16:40:44 -0600 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..29e7825 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: python-jenkinsapi +Section: python +Priority: optional +Maintainer: Al Stone +Build-Depends: debhelper (>= 8.0.0), python-all-dev, python-lxml, python-setuptools +XS-Python-Version: current +Standards-Version: 3.9.5 +Homepage: http://pypi.python.org/pypi/jenkinsapi + +Package: python-jenkinsapi +Architecture: all +Depends: python-lxml, python-bs4, python-pkg-resources, python-requests, + ${python:Depends}, ${misc:Depends} +Provides: ${python:Provides} +XB-Python-Versions: ${python:Versions} +Description: bindings for Python usage of the Jenkins remote API + Jenkins is the market leading continuous integration system, originally + created by Kohsuke Kawaguchi. This API makes Jenkins even easier to use + by providing an easy to use conventional Python interface. + . + Jenkins (and its predecessor Hudson) are useful projects for automating + common development tasks (e.g., unit-testing, production batches) - but + they are somewhat Java-centric. Thankfully the designers have provided + an excellent and complete REST interface. This library wraps up that + interface as more conventional Python objects in order to make most + Jenkins-oriented tasks simpler. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a87ad0d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,52 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-jenkinsapi +Source: https://github.com/salimfadhley/jenkinsapi + +Files: * +Copyright: 2011 Salim Fadhley + 2011 Ramon van Alteren + 2011 Ruslan Lutsenko + 2011 Cleber J Santos + 2011 William Zhang +License: MIT + The MIT License (MIT): 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. + +Files: debian/* +Copyright: 2012 Al Stone +License: MIT + The MIT License (MIT): 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. + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..a1320b1 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.rst diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2ebce13 --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with python2 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..4a21be0 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +# Compulsory line, this is a version 3 file +version=3 +http://pypi.python.org/pypi/jenkinsapi \ +(?:|.*/)(?:python-jenkinsapi|jenkinsapi)[_\-]v?(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) -- 2.34.1