Hello community, here is the log from the commit of package python-pysaml2 for openSUSE:Factory checked in at 2020-05-06 11:04:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pysaml2 (Old) and /work/SRC/openSUSE:Factory/.python-pysaml2.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pysaml2" Wed May 6 11:04:02 2020 rev:15 rq:800514 version:5.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pysaml2/python-pysaml2.changes 2020-03-16 10:19:20.651611819 +0100 +++ /work/SRC/openSUSE:Factory/.python-pysaml2.new.2738/python-pysaml2.changes 2020-05-06 11:04:07.391244127 +0200 @@ -1,0 +2,6 @@ +Tue May 5 12:50:42 UTC 2020 - Matej Cepl <[email protected]> + +- Don't use %python3_only command, but properly use alternatives. +- Skip failing tests on i586 (gh#IdentityPython/pysaml2#682) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pysaml2.spec ++++++ --- /var/tmp/diff_new_pack.L7zqCc/_old 2020-05-06 11:04:08.535246582 +0200 +++ /var/tmp/diff_new_pack.L7zqCc/_new 2020-05-06 11:04:08.535246582 +0200 @@ -58,7 +58,10 @@ Requires: python-requests >= 1.0.0 Requires: python-six Requires: python-zope.interface -BuildArch: noarch +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 @@ -78,18 +81,32 @@ %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_only %{_bindir}/make_metadata.py -%python3_only %{_bindir}/parse_xsd2.py -%python3_only %{_bindir}/mdexport.py -%python3_only %{_bindir}/merge_metadata.py +%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
