From 532bc8676d3bfb7ed1b437e2f551a53f8c0017be1f781e2caddf0cbf4075533e Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 9 Apr 2019 07:35:33 +0000 Subject: [PATCH] - Fix Requires for older python3 versions OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=47 --- python-cmd2.changes | 5 +++++ python-cmd2.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-cmd2.changes b/python-cmd2.changes index d81f853..261ece6 100644 --- a/python-cmd2.changes +++ b/python-cmd2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 9 07:34:57 UTC 2019 - Thomas Bechtold + +- Fix Requires for older python3 versions + ------------------------------------------------------------------- Fri Mar 15 10:31:09 UTC 2019 - Tomáš Chvátal diff --git a/python-cmd2.spec b/python-cmd2.spec index d94aa8d..c5f7dbe 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -35,6 +35,10 @@ Requires: python-attrs Requires: python-colorama Requires: python-pyperclip >= 1.5.27 Requires: python-wcwidth +%if %python3_version_nodots < 35 +Requires: python-contextlib2 +Requires: python-typing +%endif BuildArch: noarch # SECTION Test requirements BuildRequires: %{python_module attrs}