From f74e4b7f75181c18f56fac263b889583d9c15b63d7b920e2fdc76c1238969d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 18 Jan 2019 10:01:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=59 --- python-pyparsing.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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}