From: František Dvořák Date: Wed, 26 Aug 2015 14:06:04 +0000 (+0200) Subject: Initial import. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8052f3116c65593513ed363aa31943925758493c;p=packaging-deb-pOCCI.git Initial import. --- 8052f3116c65593513ed363aa31943925758493c diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1968a62 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,4 @@ +python-pocci (0.0.1-0~20150826gitd61185f) stable; urgency=low + * Initial package + + -- FrantiÅ¡ek Dvořák Wed, 26 Aug 2015 13:00:24 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..351a98d --- /dev/null +++ b/debian/control @@ -0,0 +1,41 @@ +Source: python-pocci +Priority: extra +Maintainer: CESNET +Uploaders: FrantiÅ¡ek Dvořák +Build-Depends: debhelper (>= 9~), dh-python, python-all (>= 2.7), python-setuptools, python3-all, python3-setuptools, python-docutils, python-sphinx (>= 1.0.7+dfsg-1~), python-pycurl, python3-pycurl +Standards-Version: 3.9.6 +Section: python +Homepage: https://github.com/CESNET/pOCCI +X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.2 + +Package: python-pocci +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Suggests: python-pocci-doc +Description: OCCI compliance testing (Python 2) + This package contains OCCI compliance testing framework in Python 2. + . + OCCI Compliance tests are described in ts_103142v010101p.pdf at + http://www.etsi.org/deliver/etsi_ts/103100_103199/103142/01.01.01_60/. + +Package: python3-pocci +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Suggests: python-pocci-doc +Description: OCCI compliance testing (Python 3) + This package contains OCCI compliance testing framework in Python 3. + . + OCCI Compliance tests are described in ts_103142v010101p.pdf at + http://www.etsi.org/deliver/etsi_ts/103100_103199/103142/01.01.01_60/. + +Package: python-pocci-doc +Architecture: all +Section: doc +Depends: ${sphinxdoc:Depends}, ${misc:Depends}, libjs-jquery, libjs-underscore +Description: OCCI compliance testing (common documentation) + This package contains OCCI compliance testing framework user and API + documentation. + . + OCCI Compliance tests are described in ts_103142v010101p.pdf at + http://www.etsi.org/deliver/etsi_ts/103100_103199/103142/01.01.01_60/. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b734648 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pOCCI +Upstream-Contact: CESNET +Source: https://github.com/CESNET/pOCCI + +Files: * +Copyright: 2015 CESNET +License: 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/pOCCI-3.1 b/debian/pOCCI-3.1 new file mode 100644 index 0000000..4f2aa2b --- /dev/null +++ b/debian/pOCCI-3.1 @@ -0,0 +1 @@ +.so man1/pOCCI.1 diff --git a/debian/patches/2to3.patch b/debian/patches/2to3.patch new file mode 100644 index 0000000..92565c1 --- /dev/null +++ b/debian/patches/2to3.patch @@ -0,0 +1,16 @@ +Enable Python 2 to Pyhton 3 conversion. + +It is not enabled in upstream as there are problems in setuptools with +launching tests. + +Index: packaging-deb-pOCCI/setup.py +=================================================================== +--- packaging-deb-pOCCI.orig/setup.py ++++ packaging-deb-pOCCI/setup.py +@@ -68,4 +68,6 @@ setup( + }, + + test_suite='tests', ++ ++ use_2to3=True, + ) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..09e6fe0 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +un-numpy.patch +2to3.patch diff --git a/debian/patches/un-numpy.patch b/debian/patches/un-numpy.patch new file mode 100644 index 0000000..afb466d --- /dev/null +++ b/debian/patches/un-numpy.patch @@ -0,0 +1,14 @@ +Numpydoc is not used in upstream. + +Index: packaging-deb-pOCCI/doc/conf.py +=================================================================== +--- packaging-deb-pOCCI.orig/doc/conf.py ++++ packaging-deb-pOCCI/doc/conf.py +@@ -19,7 +19,6 @@ extensions = [ + 'sphinx.ext.autodoc', + 'sphinx.ext.doctest', + 'sphinx.ext.viewcode', +- 'numpydoc', + ] + + # To suppress autodoc errors. diff --git a/debian/python-pocci-doc.doc-base b/debian/python-pocci-doc.doc-base new file mode 100644 index 0000000..3ba4315 --- /dev/null +++ b/debian/python-pocci-doc.doc-base @@ -0,0 +1,8 @@ +Document: python-occi-doc +Title: OCCI compliance framework tests documentation +Abstract: OCCI compliance framework tests documentation contains simple usage and internal API documentation. +Section: Network/Communication + +Format: html +Files: /usr/share/doc/python-pocci-doc/html/* +Index: /usr/share/doc/python-pocci-doc/html/index.html diff --git a/debian/python-pocci-doc.install b/debian/python-pocci-doc.install new file mode 100644 index 0000000..a496373 --- /dev/null +++ b/debian/python-pocci-doc.install @@ -0,0 +1 @@ +build/html usr/share/doc/python-pocci-doc diff --git a/debian/python-pocci.install b/debian/python-pocci.install new file mode 100644 index 0000000..17f4892 --- /dev/null +++ b/debian/python-pocci.install @@ -0,0 +1 @@ +pOCCI/pOCCI.cfg usr/share/doc/python-pocci diff --git a/debian/python-pocci.manpages b/debian/python-pocci.manpages new file mode 100644 index 0000000..0bc19c0 --- /dev/null +++ b/debian/python-pocci.manpages @@ -0,0 +1 @@ +pOCCI/pOCCI.1 diff --git a/debian/python3-pocci.install b/debian/python3-pocci.install new file mode 100644 index 0000000..7b30578 --- /dev/null +++ b/debian/python3-pocci.install @@ -0,0 +1 @@ +pOCCI/pOCCI.cfg usr/share/doc/python3-pocci diff --git a/debian/python3-pocci.manpages b/debian/python3-pocci.manpages new file mode 100644 index 0000000..ab977f8 --- /dev/null +++ b/debian/python3-pocci.manpages @@ -0,0 +1 @@ +debian/pOCCI-3.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..812bcdc --- /dev/null +++ b/debian/rules @@ -0,0 +1,40 @@ +#! /usr/bin/make -f + +#export DH_VERBOSE = 1 +export PYBUILD_NAME = pocci +export PYBUILD_DISABLE=test/python3 + +%: + dh $@ --with python2,python3 --buildsystem=pybuild + +override_dh_auto_build: + dh_auto_build + PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/ build/html + # unbundle available javascript libraries + rm -f build/html/_static/jquery.js + rm -f build/html/_static/underscore.js + ln -s /usr/share/javascript/jquery/jquery.js build/html/_static/ + ln -s /usr/share/javascript/underscore/underscore.js build/html/_static/ + +override_dh_auto_install: + dh_auto_install + # binaries for both Python 2 and Python 3 + mv debian/python3-pocci/usr/bin/pOCCI debian/python3-pocci/usr/bin/pOCCI-3 + # config file not needed + rm -rf debian/python-pocci/etc + rm -rf debian/python3-pocci/etc + # remove files already moved + rm -f debian/python-pocci/usr/lib/python*/dist-packages/pOCCI/pOCCI.1 + rm -f debian/python-pocci/usr/lib/python*/dist-packages/pOCCI/pOCCI.cfg + +override_dh_auto_test: + dh_auto_test + # troubles with setup tools and 2to3, + # convert and run tests for Python 3 manually + rm -rf build/lib/tests/ + mkdir -p build/lib/ + cp -a tests/ build/lib/tests + 2to3 -w -n build/lib/tests/*.py + chmod +x build/lib/tests/test_*.py + (export PYTHONPATH=build/lib:$$PYTHONPATH;\ + for t in build/lib/tests/test_*.py; do $${t}; done) 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/watch b/debian/watch new file mode 100644 index 0000000..d0f2539 --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +version=3 + +#opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/pOCCI-$1\.tar\.gz/ \ +# https://github.com/CESNET/pOCCI/tags .*/v?(\d\S*)\.tar\.gz + +https://github.com/CESNET/pOCCI/archive/d61185f1ed58d8bfb8606be256936483d110b78a/pOCCI-d61185f1ed58d8bfb8606be256936483d110b78a.tar.gz