diff --git a/python-textfsm.spec b/python-textfsm.spec index b75ae63..6ef46cb 100644 --- a/python-textfsm.spec +++ b/python-textfsm.spec @@ -16,6 +16,7 @@ # +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-textfsm Version: 0.4.1 @@ -32,9 +33,11 @@ BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six -Conflicts: python2-texttable -Conflicts: python3-texttable +Conflicts: python-texttable BuildArch: noarch +%ifpython2 +Conflicts: %{oldpython}-texttable +%endif %python_subpackages %description