From 749d97b70021ba7151fb62a6a2446b9df577fb5c172c7d1ce6ab0e50d3d5b585 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 16 Oct 2013 09:09:56 +0000 Subject: [PATCH] - Initial version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + pysaml2-1.0.3.tar.gz | 3 ++ python-pysaml2.changes | 5 +++ python-pysaml2.spec | 89 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pysaml2-1.0.3.tar.gz create mode 100644 python-pysaml2.changes create mode 100644 python-pysaml2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pysaml2-1.0.3.tar.gz b/pysaml2-1.0.3.tar.gz new file mode 100644 index 0000000..84d1788 --- /dev/null +++ b/pysaml2-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d4f79640500d067ccb5e77b340828b6dc9fe71db8b5cecfd06ca5783c653d9e +size 3914055 diff --git a/python-pysaml2.changes b/python-pysaml2.changes new file mode 100644 index 0000000..4f58622 --- /dev/null +++ b/python-pysaml2.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Oct 15 07:41:04 UTC 2013 - speilicke@suse.com + +- Initial version + diff --git a/python-pysaml2.spec b/python-pysaml2.spec new file mode 100644 index 0000000..480dd54 --- /dev/null +++ b/python-pysaml2.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-pysaml2 +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + +# Test reqs are heavy, thus only have it on demand: +%bcond_with tests + +Name: python-pysaml2 +Version: 1.0.3 +Release: 0 +License: Apache-2.0 +Summary: Python implementation of SAML Version 2 to be used in a WSGI environment +Url: https://github.com/rohe/pysaml2 +Group: Development/Languages/Python +Source: https://pypi.python.org/packages/source/p/pysaml2/pysaml2-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-setuptools +# Test requirements: +%if %{with tests} +BuildRequires: python-pytest +BuildRequires: python-decorator +BuildRequires: python-mako +BuildRequires: python-pymongo +BuildRequires: python-pyasn1 +BuildRequires: python-mongodict +BuildRequires: python-python-memcached +BuildRequires: python-M2Crypto +BuildRequires: python-repoze.who +BuildRequires: python-requests >= 1.0.0 +%endif +Recommends: python-repoze.who +# NOTE(saschpe): xmlsec has a lot of deps and some issues, thus not require it: +Recommends: python-xmlsec +Requires: python-decorator +Requires: python-requests >= 1.0.0 +Requires: python-Paste +Requires: python-zope.interface +Requires: python-M2Crypto +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +PySAML2 should be compatible with any python >= 2.6 not 3.X yet. +To be able to sign/verify, encrypt/decrypt you need xmlsec1. +The repoze stuff works best together with repoze.who . + +%prep +%setup -q -n pysaml2-%{version} +sed -i "s/python-memcached == 1.51/python-memcached/" setup.py + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%if %{with tests} +%check +python setup.py test +%endif + +%files +%defattr(-,root,root,-) +%doc README +%{_bindir}/make_metadata.py +%{_bindir}/parse_xsd2.py +%{python_sitelib}/pysaml2-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/s2repoze +%{python_sitelib}/saml2 +%{python_sitelib}/xmldsig +%{python_sitelib}/xmlenc + +%changelog