14
0
Files
python-pysaml2/python-pysaml2.spec

113 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pysaml2
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global modname pysaml2
%global skip_python2 1
Name: python-pysaml2
- update to 6.3.1: - Fix extraction of RegistrationInfo when no information is available - Fix http_info struct to include status-code - Allow to specify policy configurations based on the registration authority. - Add new configuration option `logout_responses_signed` to sign logout responses. - When available and appropriate return the ResponseLocation along with the Location attribute. - Always use base64.encodebytes; base64.encodestring has been dropped. - Examples: fix IdP example that was outputing debug statements on stdout that became part of its metadata. - CI/CD: Use Ubuntu bionic as the host to run the CI/CD process. - CI/CD: Pre-releases are now available on [test.pypi.org][pypi.test.pysaml2]. Each commit/merge on the master branch autotically creates a new pre-release. To install a prelease, run: - Fix the generated xsd:ID format for EncryptedData and EncryptedKey elements - Set the default value for the NameFormat attribute to unspecified when parsing - Support arbitrary entity attributes - Replace all asserts with proper checks - Allow request signing in artifact2message - Support logging configuration through the python logger - Fix wrong identifiers for ecdsa algos - Fix automatic inversion of attribute map files - Factor out common codepaths in attribute_converter - Remove uneeded exception logging - Docs: Update configuration options documentation - Examples: Support both str and bytes in SAML requests on the example idp - Examples: Update to key generation to 2048 bits OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysaml2?expand=0&rev=46
2020-12-20 10:05:52 +00:00
Version: 6.3.1
Release: 0
Summary: Python implementation of SAML Version 2 to be used in a WSGI environment
License: Apache-2.0
URL: https://github.com/IdentityPython/pysaml2
Source: https://github.com/IdentityPython/pysaml2/archive/v%{version}.tar.gz
BuildRequires: %{python_module Paste}
BuildRequires: %{python_module cryptography >= 1.4}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module defusedxml}
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 setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module zope.interface}
BuildRequires: fdupes
# This is needed as xmlsec itself does not pull any backend by default
# Will be fixed in future xmlsec releases
BuildRequires: libxmlsec1-openssl1
BuildRequires: python-rpm-macros
BuildRequires: xmlsec1
Requires: python-Paste
Requires: python-cryptography >= 1.4
Requires: python-defusedxml
Requires: python-pyOpenSSL
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-repoze.who
Requires: python-requests >= 1.0.0
Requires: python-six
Requires: python-zope.interface
Requires(post): update-alternatives
Requires(postun): update-alternatives
# We need to have arch build to make ifarch condition below working
# BuildArch: noarch
%python_subpackages
%description
PySAML2 is a pure python implementation of SAML2.
It contains all necessary pieces for building a
SAML2 service provider or an identity provider.
%prep
%setup -q -n %{modname}-%{version}
# delete shebang of files not in executable path
find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//'
# remove tests that poll internet
rm -f tests/test_30_mdstore*.py
%build
%python_build
%install
%python_install
for exec in make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py ; do
%python_clone -a %{buildroot}%{_bindir}/$exec
done
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Excluded tests for i586 gh#IdentityPython/pysaml2#682
%ifarch %{ix86}
%pytest -k "not (test_assertion_consumer_service or test_swamid_sp or test_swamid_idp or test_other_response or test_mta or test_unknown_subject)" tests
%else
%pytest tests
%endif
%post
%python_install_alternative make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py
%postun
%python_uninstall_alternative make_metadata.py parse_xsd2.py mdexport.py merge_metadata.py
%files %{python_files}
%license LICENSE
%doc README.rst CHANGELOG.md
%python3_alternative %{_bindir}/make_metadata.py
%python3_alternative %{_bindir}/parse_xsd2.py
%python3_alternative %{_bindir}/mdexport.py
%python3_alternative %{_bindir}/merge_metadata.py
%{python_sitelib}/*
%changelog