diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fbd7c0d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-xstatic-tv4 (1.2.7.0-1) unstable; urgency=medium + + * Initial release. (Closes: #837814) + + -- Ivan Udovichenko Thu, 15 Sep 2016 12:46:33 +0300 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..fad6ecc --- /dev/null +++ b/debian/control @@ -0,0 +1,56 @@ +Source: python-xstatic-tv4 +Section: python +Priority: optional +Maintainer: PKG OpenStack +Uploaders: Thomas Goirand +Build-Depends: debhelper (>= 9), + dh-python, + openstack-pkg-tools (>= 52~), + python-setuptools, + python-all, + python3-setuptools, + python3-all, + yui-compressor, +Build-Conflicts: python-xstatic, + python3-xstatic +Standards-Version: 3.9.8 +Vcs-Browser: https://anonscm.debian.org/cgit/openstack/python-xstatic-tv4.git/ +Vcs-Git: https://anonscm.debian.org/git/openstack/python-xstatic-tv4.git +Homepage: http://geraintluff.github.com/tv4/ + +Package: python-xstatic-tv4 +Architecture: all +Depends: libjs-jquery (>= 1.8.0), + libjs-tv4, + python-xstatic, + ${python:Depends}, + ${misc:Depends} +Description: tv4 1.2.7 (XStatic packaging standard) - Python 2.7 + XStatic is a Python web development tool for handling required static data + files from external projects, such as CSS, images, and JavaScript. It provides + a lightweight infrastructure to manage them via Python modules that your app + can depend on in a portable, virtualenv-friendly way instead of using embedded + copies. + . + For a description of tv4, see the libjs-tv4 package. + . + This package contains the Python 2.7 module. + +Package: python3-xstatic-tv4 +Architecture: all +Depends: libjs-jquery (>= 1.8.0), + libjs-tv4, + python3-xstatic, + ${python3:Depends}, + ${misc:Depends} +Description: tv4 (XStatic packaging standard) - Python 3.x + XStatic is a Python web development tool for handling required static data + files from external projects, such as CSS, images, and JavaScript. It provides + a lightweight infrastructure to manage them via Python modules that your app + can depend on in a portable, virtualenv-friendly way instead of using embedded + copies. + . + For a description of tv4, see the libjs-tv4 package. + . + This package contains the Python 3.x module. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d839baa --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: XStatic-tv4 +Source: http://geraintluff.github.com/tv4/ + +Files: debian/* +Copyright: (c) 2016, Thomas Goirand + (c) 2016, Ivan Udovichenko +License: public-domain + +Files: xstatic/pkg/tv4/data/* +Copyright: (c) 2013, Danial Farid +License: public-domain + +Files: * +Copyright: (c) 2013, Rob Cresswell +License: public-domain + +License: public-domain + This code is released into the "public domain" by its author(s). + Anybody may use, alter and distribute the code without restriction. + The author makes no guarantees, and takes no liability of any kind + for use of this code. + . + If you find a bug or make an improvement, it would be courteous to + let the author know, but it is not compulsory. + diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..10f9500 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,9 @@ +[DEFAULT] +upstream-branch = master +debian-branch = debian/unstable +upstream-tag = %(version)s +compression = xz + +[buildpackage] +export-dir = ../build-area/ + diff --git a/debian/patches/Debianize-the-package.patch b/debian/patches/Debianize-the-package.patch new file mode 100644 index 0000000..8415c62 --- /dev/null +++ b/debian/patches/Debianize-the-package.patch @@ -0,0 +1,28 @@ +Description: [PATCH] Debianize the package +Author: Ivan Udovichenko +Forwarded: not-needed +Last-Update: 2016-09-15 + +--- + xstatic/pkg/tv4/__init__.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/xstatic/pkg/tv4/__init__.py b/xstatic/pkg/tv4/__init__.py +index a0af492..eaf3992 100644 +--- a/xstatic/pkg/tv4/__init__.py ++++ b/xstatic/pkg/tv4/__init__.py +@@ -34,9 +34,9 @@ HOMEPAGE = 'http://geraintluff.github.com/tv4/' + LICENSE = 'https://github.com/geraintluff/tv4/blob/master/LICENSE.txt' + + 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/angular-schema-form' ++BASE_DIR = '/usr/share/javascript/angular-schema-form' + + LOCATIONS = { + # CDN locations (if no public CDN exists, use an empty dict) +-- +2.1.4 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..1c4e0ee --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +Debianize-the-package.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..925ed43 --- /dev/null +++ b/debian/rules @@ -0,0 +1,39 @@ +#!/usr/bin/make -f + +UPSTREAM_GIT := https://github.com/robcresswell/xstatic-tv4.git +-include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python2,python3 + +override_dh_auto_install: + pkgos-dh_auto_install + +override_dh_auto_build: + yui-compressor -o xstatic/pkg/tv4/data/tv4.min.js xstatic/pkg/tv4/data/tv4.js + dh_auto_build -O--buildsystem=python_distutils + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + set -e ; for pyvers in $(PYTHONS) $(PYTHON3S); do \ + python$$pyvers setup.py test ; \ + done +endif + + + +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/" diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..ddfd22d --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/XStatic-tv4/XStatic-tv4-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) +