2013-10-16 09:09:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pysaml2
|
|
|
|
#
|
2018-10-09 15:55:30 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-10-16 09:09:56 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-10 06:09:04 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-06-12 08:48:53 +00:00
|
|
|
#
|
|
|
|
|
2013-10-16 09:09:56 +00:00
|
|
|
|
2017-06-30 11:03:36 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%global modname pysaml2
|
2018-12-07 11:16:24 +00:00
|
|
|
Name: python-pysaml2
|
|
|
|
Version: 4.6.5
|
2013-10-16 09:09:56 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python implementation of SAML Version 2 to be used in a WSGI environment
|
2015-06-12 08:48:53 +00:00
|
|
|
License: Apache-2.0
|
2013-10-16 09:09:56 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-07 11:16:24 +00:00
|
|
|
URL: https://github.com/IdentityPython/pysaml2
|
|
|
|
Source: https://github.com/IdentityPython/pysaml2/archive/v%{version}.tar.gz
|
2017-06-30 11:03:36 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-06-12 08:48:53 +00:00
|
|
|
Requires: python-Paste
|
2018-12-07 11:16:24 +00:00
|
|
|
Requires: python-cryptography >= 1.4
|
2017-12-02 22:15:35 +00:00
|
|
|
Requires: python-defusedxml
|
2016-11-22 15:18:34 +00:00
|
|
|
Requires: python-future
|
2015-10-14 06:22:07 +00:00
|
|
|
Requires: python-pyOpenSSL
|
2016-02-26 15:12:05 +00:00
|
|
|
Requires: python-python-dateutil
|
2015-09-02 11:58:03 +00:00
|
|
|
Requires: python-pytz
|
|
|
|
Requires: python-repoze.who
|
2013-10-16 09:09:56 +00:00
|
|
|
Requires: python-requests >= 1.0.0
|
2016-11-22 15:18:34 +00:00
|
|
|
Requires: python-six
|
2013-10-16 09:09:56 +00:00
|
|
|
Requires: python-zope.interface
|
|
|
|
BuildArch: noarch
|
2018-12-07 11:16:24 +00:00
|
|
|
BuildRequires: %{python_module Paste}
|
|
|
|
BuildRequires: %{python_module cryptography >= 1.4}
|
|
|
|
BuildRequires: %{python_module defusedxml}
|
|
|
|
BuildRequires: %{python_module future}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pyOpenSSL}
|
|
|
|
BuildRequires: %{python_module pymongo}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module python-dateutil}
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module repoze.who}
|
|
|
|
BuildRequires: %{python_module requests >= 1.0.0}
|
|
|
|
BuildRequires: %{python_module responses}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: %{python_module zope.interface}
|
|
|
|
# This is needed as xmlsec itself does not pull any backend by default
|
|
|
|
# Will be fixed in future xmlsec releases
|
|
|
|
BuildRequires: libxmlsec1-openssl1
|
|
|
|
BuildRequires: python2-gdbm
|
|
|
|
BuildRequires: python3-dbm
|
|
|
|
BuildRequires: xmlsec1
|
2017-06-30 11:03:36 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2013-10-16 09:09:56 +00:00
|
|
|
%description
|
2016-11-18 10:32:48 +00:00
|
|
|
PySAML2 is a pure python implementation of SAML2.
|
|
|
|
It contains all necessary pieces for building a
|
|
|
|
SAML2 service provider or an identity provider.
|
2013-10-16 09:09:56 +00:00
|
|
|
|
|
|
|
%prep
|
2017-06-30 11:03:36 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
# delete shebang of files not in executable path
|
|
|
|
find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//'
|
2018-12-07 11:16:24 +00:00
|
|
|
# remove tests that poll internet
|
|
|
|
rm -f tests/test_30_mdstore*.py
|
2013-10-16 09:09:56 +00:00
|
|
|
|
|
|
|
%build
|
2017-06-30 11:03:36 +00:00
|
|
|
%python_build
|
2013-10-16 09:09:56 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-30 11:03:36 +00:00
|
|
|
%python_install
|
2018-12-07 11:16:24 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2013-10-16 09:09:56 +00:00
|
|
|
|
|
|
|
%check
|
2018-12-07 11:16:24 +00:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
2013-10-16 09:09:56 +00:00
|
|
|
|
2017-06-30 11:03:36 +00:00
|
|
|
%files %{python_files}
|
2018-12-07 11:16:24 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst CHANGELOG.md
|
2017-06-30 11:03:36 +00:00
|
|
|
%python3_only %{_bindir}/make_metadata.py
|
|
|
|
%python3_only %{_bindir}/parse_xsd2.py
|
|
|
|
%python3_only %{_bindir}/mdexport.py
|
|
|
|
%python3_only %{_bindir}/merge_metadata.py
|
|
|
|
%{python_sitelib}/*
|
2013-10-16 09:09:56 +00:00
|
|
|
|
|
|
|
%changelog
|