diff --git a/python-pyparsing.spec b/python-pyparsing.spec index ad69ff8..46ce3e5 100644 --- a/python-pyparsing.spec +++ b/python-pyparsing.spec @@ -21,10 +21,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" +%define psuffix -test %bcond_without test %else +%define psuffix %{nil} %bcond_with test %endif +Name: python-pyparsing%{psuffix} Version: 2.3.0+git.1546912853.bf348d6 Release: 0 Summary: Grammar Parser Library for Python @@ -49,11 +52,6 @@ BuildRequires: python-rpm-macros # this is now a dependency of setuptools Requires: python-base BuildArch: noarch -%if %{with test} -Name: python-pyparsing-%{flavor} -%else -Name: python-pyparsing -%endif %ifpython2 Provides: %{oldpython}-parsing = %{version} Obsoletes: %{oldpython}-parsing < %{version}