From 4b92ed9ff7e630b465f615b4d545bc0d3c163641 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 14 Aug 2014 18:00:35 +0800 Subject: [PATCH] Added initial debian folder. --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 77 ++++++++++++++++++++++++++++++++++ debian/copyright | 20 +++++++++ debian/gbp.conf | 9 ++++ debian/patches/debianize.patch | 28 +++++++++++++ debian/patches/series | 1 + debian/rules | 35 ++++++++++++++++ debian/source/format | 1 + debian/source/options | 1 + 10 files changed, 178 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/gbp.conf create mode 100644 debian/patches/debianize.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..3214dd9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-xstatic-jquery.tablesorter (2.0.5b.1-1) unstable; urgency=medium + + * Initial release. (Closes: #758104) + + -- Thomas Goirand Thu, 14 Aug 2014 17:41:31 +0800 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..b1ba8fb --- /dev/null +++ b/debian/control @@ -0,0 +1,77 @@ +Source: python-xstatic-jquery.tablesorter +Section: python +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Thomas Goirand +Build-Depends: debhelper (>= 9), + python-all (>= 2.6.6-3~), + python-setuptools, + python3-all, + python3-setuptools +Build-Conflicts: python-xstatic, python3-xstatic +Standards-Version: 3.9.5 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-xstatic-jquery.tablesorter.git +Vcs-Git: git://anonscm.debian.org/openstack/python-xstatic-jquery.tablesorter.git +Homepage: https://github.com/stackforge/xstatic-jquery.tablesorter + +Package: python-xstatic-jquery.tablesorter +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: libjs-jquery-tablesorter, + python-xstatic, + ${misc:Depends}, + ${python:Depends} +Description: JQuery Tablesorter XStatic support - Python 2.x + XStatic is a packaging standard to package external (often 3rd party) static + files as a Python package, so they are easily usable on all operating systems, + with any package management system or even without one. + . + Many Python projects need to use some specific data files, like javascript, + css, java applets, images, etc. Sometimes these files belong to YOUR project + (then you may want to package them separately, but you could also just put + them into your main package). But in many other cases, those files are + maintained by someone else (like jQuery javascript library or even much bigger + js libraries or applications) and you definitely do not really want to merge + them into your project. So, you want to have static file packages, but you + don’t want to get lots of stuff you do not want. Thus, stuff required by + XStatic file packages (especially the main, toplevel XStatic package) tries to + obey to be a MINIMAL, no-fat thing. XStatic doesn't "sell" any web framework + or other stuff you don't want. Maybe there will be optional XStatic extensions + for all sorts of stuff, but they won't be required if you just want the files. + . + By having static files in packages, it is also easier to build virtual envs, + support linux/bsd/... distribution package maintainers and even windows + installs using the same mechanism. + . + This package provides JQuery Tablesorter support as a Python 2.x module. + +Package: python3-xstatic-jquery.tablesorter +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: libjs-jquery-tablesorter, + python3-xstatic, + ${misc:Depends}, + ${python3:Depends} +Description: JQuery Tablesorter XStatic support - Python 2.x + XStatic is a packaging standard to package external (often 3rd party) static + files as a Python package, so they are easily usable on all operating systems, + with any package management system or even without one. + . + Many Python projects need to use some specific data files, like javascript, + css, java applets, images, etc. Sometimes these files belong to YOUR project + (then you may want to package them separately, but you could also just put + them into your main package). But in many other cases, those files are + maintained by someone else (like jQuery javascript library or even much bigger + js libraries or applications) and you definitely do not really want to merge + them into your project. So, you want to have static file packages, but you + don’t want to get lots of stuff you do not want. Thus, stuff required by + XStatic file packages (especially the main, toplevel XStatic package) tries to + obey to be a MINIMAL, no-fat thing. XStatic doesn't "sell" any web framework + or other stuff you don't want. Maybe there will be optional XStatic extensions + for all sorts of stuff, but they won't be required if you just want the files. + . + By having static files in packages, it is also easier to build virtual envs, + support linux/bsd/... distribution package maintainers and even windows + installs using the same mechanism. + . + This package provides JQuery Tablesorter support as a Python 2.x module. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b88a9d1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,20 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: XStatic-JQuery.TableSorter +Source: git://github.com/stackforge/xstatic-jquery.tablesorter.git + +Files: debian/* +Copyright: (c) 2014, Thomas Goirand +License: Expat+GPL + +Files: * +Copyright: (c) 2013, Radomir Dopieralski + (c) 2007 Christian Bach +* http://www.opensource.org/licenses/mit-license.php +* http://www.gnu.org/licenses/gpl.html + +License: Expat+GPL + +License: Expat+GPL + Dual licensed under the Expat and GPL licenses. + . + Expat license: diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..fd8ec27 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,9 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = %(version)s +compression = xz + +[git-buildpackage] +export-dir = ../build-area/ + diff --git a/debian/patches/debianize.patch b/debian/patches/debianize.patch new file mode 100644 index 0000000..f503061 --- /dev/null +++ b/debian/patches/debianize.patch @@ -0,0 +1,28 @@ +Description: Debianize +Author: Thomas Goirand +Forwarded: not-needed +Last-Update: 2014-08-14 + +--- python-xstatic-jquery.tablesorter-2.0.5b.1.orig/xstatic/pkg/jquery_tablesorter/__init__.py ++++ python-xstatic-jquery.tablesorter-2.0.5b.1/xstatic/pkg/jquery_tablesorter/__init__.py +@@ -11,7 +11,7 @@ NAME = __name__.split('.')[-1] # package + # please use a all-lowercase valid python + # package name + +-VERSION = '2.14.5' # version of the packaged files, please use the upstream ++VERSION = '2.0.5b' # version of the packaged files, please use the upstream + # version number + BUILD = '1' # our package build number, so we can release new builds + # with fixes for xstatic stuff. +@@ -34,9 +34,9 @@ HOMEPAGE = 'https://github.com/Mottie/ta + LICENSE = '(same as %s)' % DISPLAY_NAME + + from os.path import join, dirname +-BASE_DIR = join(dirname(__file__), 'data') ++#BASE_DIR = join(dirname(__file__), 'data') + # linux package maintainers just can point to their file locations like this: +-#BASE_DIR = '/usr/share/javascript/jquery_tablesorter' ++BASE_DIR = '/usr/share/javascript/jquery-tablesorter' + + LOCATIONS = { + # CDN locations (if no public CDN exists, use an empty dict) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e90ef42 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debianize.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c27b346 --- /dev/null +++ b/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) +PYTHON3S:=$(shell py3versions -vr) + +UPSTREAM_GIT = git://github.com/stackforge/xstatic-jquery.tablesorter.git +-include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python2,python3 + +override_dh_install: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-xstatic-jquery.tablesorter; \ + done + set -e && for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-xstatic-jquery.tablesorter; \ + done + rm -rf $(CURDIR)/debian/python*-xstatic-jquery.tablesorter/usr/lib/python*/dist-packages/*.pth + +override_dh_clean: + dh_clean -O--buildsystem=python_distutils + rm -rf build + +# Commands not to run +override_dh_installcatalogs: +override_dh_installemacsen override_dh_installifupdown: +override_dh_installinfo override_dh_installmenu override_dh_installmime: +override_dh_installmodules override_dh_installlogcheck: +override_dh_installpam override_dh_installppp override_dh_installudev override_dh_installwm: +override_dh_installxfonts override_dh_gconf override_dh_icons override_dh_perl override_dh_usrlocal: +override_dh_installcron override_dh_installdebconf: +override_dh_installlogrotate override_dh_installgsettings: diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/options b/debian/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/debian/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" -- GitLab