--- /dev/null
+python-suds has metadata 2.1 with Obsoletes tag
+--- distlib-0.3.0/distlib/metadata.py.orig 2020-03-26 06:51:23.830242814 +0100
++++ distlib-0.3.0/distlib/metadata.py 2020-03-26 20:58:27.061576412 +0100
+@@ -95,7 +95,7 @@
+ # the metadata. Include them in the tuple literal below to allow them
+ # (for now).
+ _566_FIELDS = _426_FIELDS + ('Description-Content-Type',
+- 'Requires', 'Provides')
++ 'Requires', 'Provides', 'Obsoletes')
+
+ _566_MARKERS = ('Description-Content-Type',)
+
+--- distlib-0.3.0/tests/test_metadata.py.orig 2019-04-09 08:00:50.000000000 +0200
++++ distlib-0.3.0/tests/test_metadata.py 2020-03-26 21:32:52.520386861 +0100
+@@ -281,8 +281,8 @@
+ metadata.set_metadata_version()
+ self.assertEqual(metadata['Metadata-Version'], '1.2')
+ metadata.set('Obsoletes', 'ok')
+- self.assertRaises(MetadataConflictError,
+- metadata.set_metadata_version)
++ #self.assertRaises(MetadataConflictError,
++ # metadata.set_metadata_version)
+
+ del metadata['Obsoletes']
+ del metadata['Obsoletes-Dist']
--- /dev/null
+Sequencer test is sensitive to dictionary ordering, only some python versions are covered in expected results
+--- distlib-0.3.0/tests/test_util.py.orig 2019-07-25 08:02:56.000000000 +0200
++++ distlib-0.3.0/tests/test_util.py 2020-03-28 18:59:49.550664006 +0100
+@@ -254,6 +254,7 @@
+ for actual, expected in zip(actuals, cases):
+ self.assertEqual(actual, expected)
+
++ @unittest.skipIf(sys.version_info >= (3, 8), 'Python 3.8+ ordering is not covered in test')
+ def test_sequencer_basic(self):
+ seq = Sequencer()
+
--- /dev/null
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Distribution utilities
+Summary(pl.UTF-8): Narzędzia do dystrybuowania
+Name: python-distlib
+Version: 0.3.0
+Release: 1
+License: PSF v2
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/distlib/
+Source0: https://files.pythonhosted.org/packages/source/d/distlib/distlib-%{version}.zip
+# Source0-md5: f92e0f3ac43397da86a82781117e8351
+Patch0: %{name}-obsoletes.patch
+Patch1: %{name}-sequencer.patch
+URL: https://pypi.org/project/distlib/
+%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: unzip
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Low-level components of distutils2/packaging, augmented with
+higher-level APIs for making packaging easier.
+
+%description -l pl.UTF-8
+Niskopoziomowe komponenty distutils2/packaging, rozszerzone o
+wysokopoziomowe API ułatwiające pakietowanie.
+
+%package -n python3-distlib
+Summary: Distribution utilities
+Summary(pl.UTF-8): Narzędzia do dystrybuowania
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+
+%description -n python3-distlib
+Low-level components of distutils2/packaging, augmented with
+higher-level APIs for making packaging easier.
+
+%description -n python3-distlib -l pl.UTF-8
+Niskopoziomowe komponenty distutils2/packaging, rozszerzone o
+wysokopoziomowe API ułatwiające pakietowanie.
+
+%prep
+%setup -q -n distlib-%{version}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+LC_ALL=C.UTF-8 \
+SKIP_ONLINE=1 \
+PYTHONPATH=$(pwd) \
+%{__python} tests/test_all.py
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+LC_ALL=C.UTF-8 \
+SKIP_ONLINE=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} tests/test_all.py
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst
+%{py_sitescriptdir}/distlib
+%{py_sitescriptdir}/distlib-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-distlib
+%defattr(644,root,root,755)
+%doc CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst
+%{py3_sitescriptdir}/distlib
+%{py3_sitescriptdir}/distlib-%{version}-py*.egg-info
+%endif