Hello community, here is the log from the commit of package python-mailman for openSUSE:Factory checked in at 2020-01-18 12:17:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mailman (Old) and /work/SRC/openSUSE:Factory/.python-mailman.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mailman" Sat Jan 18 12:17:59 2020 rev:2 rq:765303 version:3.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mailman/python-mailman.changes 2019-12-10 22:44:50.237755381 +0100 +++ /work/SRC/openSUSE:Factory/.python-mailman.new.26092/python-mailman.changes 2020-01-18 12:18:45.219158940 +0100 @@ -1,0 +2,5 @@ +Tue Jan 14 12:55:34 UTC 2020 - [email protected] + +- be able to run test on 15 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mailman.spec ++++++ --- /var/tmp/diff_new_pack.JYirkq/_old 2020-01-18 12:18:46.171159450 +0100 +++ /var/tmp/diff_new_pack.JYirkq/_new 2020-01-18 12:18:46.175159452 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mailman # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -60,6 +60,10 @@ Requires: python-zope.configuration Requires: python-zope.event Requires: python-zope.interface +%if 0%{?suse_version} <= 1500 +Requires: python-cffi +Requires: python-importlib_resources +%endif Provides: mailman = %{version} BuildArch: noarch %if %{with test} @@ -89,6 +93,10 @@ BuildRequires: %{python_module zope.configuration} BuildRequires: %{python_module zope.event} BuildRequires: %{python_module zope.interface} +%if 0%{?suse_version} <= 1500 +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module importlib_resources} +%endif %endif %python_subpackages @@ -101,6 +109,7 @@ %build sed -i 's:/sbin:%{_prefix}/bin:' src/mailman/config/mailman.cfg +%if 0%{?suse_version} > 1500 pushd src/mailman for i in $(grep -r '^from importlib_resources' | sed 's/\(.*\.py\):.*/\1/'); do line=$(grep '^from importlib_resources' $i) @@ -109,6 +118,7 @@ done popd sed '/importlib_resources/d' -i src/mailman.egg-info/requires.txt setup.py +%endif %python_build %install @@ -119,6 +129,13 @@ %check %if %{with test} +%if 0%{?suse_version} <= 1500 +export LC_ALL=C.UTF-8 +export LANG=C.UTF-8 +# mailman.rest.tests.test_wsgiapp.TestSupportedContentType +# AssertionError: 'application/json; charset=UTF-8' != 'application/json' +rm src/mailman/rest/tests/test_wsgiapp.py +%endif # doctest fails miserably find -name '*.rst' -exec rm {} \; # used to have ports 902{4,5}
