diff --git a/python-hypothesis.changes b/python-hypothesis.changes index b2ba14c..e9f4633 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 17 15:46:40 UTC 2018 - tchvatal@suse.com + +- Condition py2 only dependencies so we do not pull them on py3 + only scenario + ------------------------------------------------------------------- Sat Jan 6 17:11:29 UTC 2018 - arun@gmx.de diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 87624e8..a43222e 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -22,6 +22,7 @@ %else %define oldpython python %endif +%bcond_without python2 Name: python-hypothesis Version: 3.44.9 Release: 0 @@ -43,8 +44,6 @@ BuildRequires: %{python_module pytest >= 2.8.0} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-enum34 -BuildRequires: python-ipaddress BuildRequires: python-rpm-macros Requires: python-attrs Requires: python-coverage @@ -55,6 +54,10 @@ Recommends: python-pandas Recommends: python-pytest >= 2.8.0 Recommends: python-pytz BuildArch: noarch +%if %{with python2} +BuildRequires: python-enum34 +BuildRequires: python-ipaddress +%endif %ifpython2 Requires: %{oldpython}-enum34 %endif