diff --git a/python-arrow.spec b/python-arrow.spec index 19cb982..eec3bc5 100644 --- a/python-arrow.spec +++ b/python-arrow.spec @@ -32,12 +32,10 @@ Summary: Better dates and times for Python License: Apache-2.0 URL: https://github.com/crsmithdev/arrow Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz -BuildRequires: %{python_module base} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{without test} BuildRequires: %{python_module setuptools} -%else +%if %{with test} BuildRequires: %{python_module arrow == %{version}} BuildRequires: %{python_module chai} BuildRequires: %{python_module dateparser} @@ -72,9 +70,7 @@ Arrow is heavily inspired by moment.js and requests. rm -rf arrow.egg-info %build -%if %{without test} %python_build -%endif %install %if %{without test}