Added initial debian folder.

This commit is contained in:
Thomas Goirand
2014-09-08 16:26:58 +08:00
parent 30b613ebb2
commit 5d93ac6814
10 changed files with 210 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@@ -0,0 +1,5 @@
python-pysaml2 (2.0.0-1) unstable; urgency=medium
* Initial release. (Closes: #760824)
-- Thomas Goirand <zigo@debian.org> Mon, 08 Sep 2014 16:11:53 +0800

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
9

69
debian/control vendored Normal file
View File

@@ -0,0 +1,69 @@
Source: python-pysaml2
Section: python
Priority: optional
Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Thomas Goirand <zigo@debian.org>
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.

58
debian/copyright vendored Normal file
View File

@@ -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 <zigo@debian.org>
License: Apache-2.0 and BSD-2-clause
Files: *
Copyright: (c) 2009-2011, Umea University
(c) 2013, Roland Hedberg <roland.hedberg@adm.umu.se>
(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'.

9
debian/gbp.conf vendored Normal file
View File

@@ -0,0 +1,9 @@
[DEFAULT]
upstream-branch = master
debian-branch = debian/unstable
upstream-tag = %(version)s
compression = xz
[git-buildpackage]
export-dir = ../build-area/

9
debian/python-pysaml2-doc.doc-base vendored Normal file
View File

@@ -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/*

54
debian/rules vendored Executable file
View File

@@ -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:

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (quilt)

1
debian/source/options vendored Normal file
View File

@@ -0,0 +1 @@
extend-diff-ignore = "^[^/]*[.]egg-info/"

3
debian/watch vendored Normal file
View File

@@ -0,0 +1,3 @@
version=3
http://pypi.python.org/packages/source/p/pysaml2 pysaml2-(.*).tar.gz