From 939a225869e2aea3e7a043f0a57c652c2c4e9b47 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 8 Sep 2014 16:26:58 +0800 Subject: [PATCH 1/1] Added initial debian folder. Rewritten-From: 5d93ac6814ecc020ec9f7beee5d35d45b86a2549 --- debian/changelog | 5 +++ debian/compat | 1 + debian/control | 69 ++++++++++++++++++++++++++++++ debian/copyright | 58 +++++++++++++++++++++++++ debian/gbp.conf | 9 ++++ debian/python-pysaml2-doc.doc-base | 9 ++++ debian/rules | 54 +++++++++++++++++++++++ debian/source/format | 1 + debian/source/options | 1 + debian/watch | 3 ++ 10 files changed, 210 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/python-pysaml2-doc.doc-base create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/options create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..25b1649 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-pysaml2 (2.0.0-1) unstable; urgency=medium + + * Initial release. (Closes: #760824) + + -- Thomas Goirand Mon, 08 Sep 2014 16:11:53 +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..76e92f6 --- /dev/null +++ b/debian/control @@ -0,0 +1,69 @@ +Source: python-pysaml2 +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, + python-sphinx +Build-Depends-Indep: python-mako, + python-memcache, + python-pyasn1, + python-pytest, + python-repoze.who, + xmlsec1 +Standards-Version: 3.9.5 +X-Python-Version: >= 2.7 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-pysaml2.git +Vcs-Git: git://anonscm.debian.org/openstack/python-pysaml2.git +Homepage: https://github.com/rohe/pysaml2 + +Package: python-pysaml2 +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: python-mako, + python-memcache, + python-pyasn1, + python-repoze.who, + xmlsec1, + ${misc:Depends}, + ${python:Depends} +Description: SAML Version 2 to be used in a WSGI environment - Python 2.x + This package provides a Python implementation of SAML Version 2 to be used in + a WSGI environment. + . + From wikipedia: Security Assertion Markup Language 2.0 (SAML 2.0) is a version + of the SAML standard for exchanging authentication and authorization data + between security domains. SAML 2.0 is an XML-based protocol that uses security + tokens containing assertions to pass information about a principal (usually an + end user) between a SAML authority, that is, an identity provider, and a SAML + consumer, that is, a service provider. SAML 2.0 enables web-based + authentication and authorization scenarios including cross-domain single + sign-on (SSO), which helps reduce the administrative overhead of distributing + multiple authentication tokens to the user. + . + This package contains the Python 2.x module. + +Package: python-pysaml2-doc +Section: doc +Architecture: all +Pre-Depends: dpkg (>= 1.15.6~) +Depends: ${misc:Depends}, ${sphinxdoc:Depends} +Description: SAML Version 2 to be used in a WSGI environment - doc + This package provides a Python implementation of SAML Version 2 to be used in + a WSGI environment. + . + From wikipedia: Security Assertion Markup Language 2.0 (SAML 2.0) is a version + of the SAML standard for exchanging authentication and authorization data + between security domains. SAML 2.0 is an XML-based protocol that uses security + tokens containing assertions to pass information about a principal (usually an + end user) between a SAML authority, that is, an identity provider, and a SAML + consumer, that is, a service provider. SAML 2.0 enables web-based + authentication and authorization scenarios including cross-domain single + sign-on (SSO), which helps reduce the administrative overhead of distributing + multiple authentication tokens to the user. + . + This package contains the documentation. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..aa34914 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,58 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pysaml2 +Source: git://github.com/rohe/pysaml2.git + +Files: debian/* +Copyright: (c) 2014, Thomas Goirand +License: Apache-2.0 and BSD-2-clause + +Files: * +Copyright: (c) 2009-2011, Umea University + (c) 2013, Roland Hedberg + (c) 2007, SIOS Technology, Inc. +License: Apache-2.0 and BSD-2-clause + +License: Apache-2.0 and BSD-2-clause + Some parts of this Python module are licensed under the BSD-2-clause license, + and some others are using the Apache-2.0. See individual files for details. + Note that the Debian part is copyright under the BSD-2-clause. + . + BSD-2-clause: + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY ROLAND HEDBERG "AS IS" AND ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO + EVENT SHALL ROLAND HEDBERG OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + . + Apache-2.0 copyright notice: + . + Licensed under the Apache License, Version 2.0 (the "License"); you may not + use this file except in compliance with the License. You may obtain a copy of + the License at + . + http://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + License for the specific language governing permissions and limitations under + the License. + . + On Debian-based systems the full text of the Apache version 2.0 license can be + found in `/usr/share/common-licenses/Apache-2.0'. 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/python-pysaml2-doc.doc-base b/debian/python-pysaml2-doc.doc-base new file mode 100644 index 0000000..02a1c7b --- /dev/null +++ b/debian/python-pysaml2-doc.doc-base @@ -0,0 +1,9 @@ +Document: python-pysaml2-doc +Title: pysaml2 Documentation +Author: N/A +Abstract: Sphinx documentation for pysaml2 +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-pysaml2-doc/html/index.html +Files: /usr/share/doc/python-pysaml2-doc/html/* diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0f61cff --- /dev/null +++ b/debian/rules @@ -0,0 +1,54 @@ +#!/usr/bin/make -f + +PYTHONS:=$(shell pyversions -vr) +#PYTHON3S:=$(shell py3versions -vr) + +UPSTREAM_GIT = git://github.com/rohe/pysaml2.git +-include /usr/share/openstack-pkg-tools/pkgos.make + +%: + dh $@ --buildsystem=python_distutils --with python2,sphinxdoc + +override_dh_install: + set -e && for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-pysaml2; \ + done + mv $(CURDIR)/debian/python-pysaml2/usr/bin/make_metadata.py \ + $(CURDIR)/debian/python-pysaml2/usr/bin/pysaml2-make-metadata + mv $(CURDIR)/debian/python-pysaml2/usr/bin/mdexport.py \ + $(CURDIR)/debian/python-pysaml2/usr/bin/pysaml2-mdexport + mv $(CURDIR)/debian/python-pysaml2/usr/bin/parse_xsd2.py \ + $(CURDIR)/debian/python-pysaml2/usr/bin/pysaml2-parse-xsd2 +# Python3 is not yet supported upstream +# set -e && for pyvers in $(PYTHON3S); do \ +# python$$pyvers setup.py install --install-layout=deb \ +# --root $(CURDIR)/debian/python3-pysaml2; \ +# done + rm -rf $(CURDIR)/debian/python*-pysaml2/usr/lib/python*/dist-packages/*.pth + +override_dh_auto_test: +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + set -e && for pyvers in 2.7; do \ + PYTHONPATH=$(CURDIR)/src:. py.test-$$pyvers || true ; \ + done +endif + +override_dh_clean: + dh_clean -O--buildsystem=python_distutils + rm -rf build + +override_dh_sphinxdoc: + sphinx-build -b html doc debian/python-pysaml2-doc/usr/share/doc/python-pysaml2-doc/html + dh_sphinxdoc -O--buildsystem=python_distutils + +# 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..d619f5b --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://pypi.python.org/packages/source/p/pysaml2 pysaml2-(.*).tar.gz + -- 2.45.2