diff --git a/python-mrcz.changes b/python-mrcz.changes index 3751392..cc99819 100644 --- a/python-mrcz.changes +++ b/python-mrcz.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 12 08:26:00 UTC 2020 - Tomáš Chvátal + +- Fix python2 conditions to pull deps correctly + ------------------------------------------------------------------- Mon May 11 16:19:40 UTC 2020 - andy great diff --git a/python-mrcz.spec b/python-mrcz.spec index bcc7a6b..4ff9e21 100644 --- a/python-mrcz.spec +++ b/python-mrcz.spec @@ -17,31 +17,31 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-mrcz Version: 0.5.6 Release: 0 Summary: MRCZ meta-compressed image file-format library License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/em-MRCZ/python-mrcz Source: https://github.com/em-MRCZ/python-mrcz/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: %{python_module blosc} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -%if 0%{?suse_version} <= 1510 +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python3-blosc +Requires: python3-numpy +BuildArch: noarch +%if %{with python2} BuildRequires: python-enum34 BuildRequires: python-futures %endif -BuildRequires: fdupes -BuildRequires: python-rpm-macros -Requires: python3-numpy -Requires: python3-blosc -%if 0%{?suse_version} <= 1510 +%ifpython2 Requires: python-enum34 Requires: python-futures %endif -BuildArch: noarch %python_subpackages %description