--- /dev/null
+python-pocci (0.0.1-0~20150826gitd61185f) stable; urgency=low
+ * Initial package
+
+ -- František Dvořák <valtri@civ.zcu.cz> Wed, 26 Aug 2015 13:00:24 +0200
--- /dev/null
+Source: python-pocci
+Priority: extra
+Maintainer: CESNET <cloud@rt4.cesnet.cz>
+Uploaders: František Dvořák <valtri@civ.zcu.cz>
+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/.
--- /dev/null
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pOCCI
+Upstream-Contact: CESNET <cloud@rt4.cesnet.cz>
+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.
--- /dev/null
+.so man1/pOCCI.1
--- /dev/null
+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,
+ )
--- /dev/null
+un-numpy.patch
+2to3.patch
--- /dev/null
+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.
--- /dev/null
+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
--- /dev/null
+build/html usr/share/doc/python-pocci-doc
--- /dev/null
+pOCCI/pOCCI.cfg usr/share/doc/python-pocci
--- /dev/null
+pOCCI/pOCCI.1
--- /dev/null
+pOCCI/pOCCI.cfg usr/share/doc/python3-pocci
--- /dev/null
+debian/pOCCI-3.1
--- /dev/null
+#! /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)
--- /dev/null
+3.0 (quilt)
--- /dev/null
+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