diff --git a/python-colorama.spec b/python-colorama.spec index bb1c6a5..cf66a21 100644 --- a/python-colorama.spec +++ b/python-colorama.spec @@ -1,16 +1,25 @@ %global pypi_name colorama -%if 0%{?fedora} > 29 || 0%{?rhel} > 7 +%if 0%{?rhel} +%if 0%{?rhel}> 7 %bcond_with python2 %bcond_without python3 %else %bcond_without python2 %bcond_with python3 %endif +%else +%if 0%{?fedora} > 29 +%bcond_without python3 +%else +%bcond_without python2 +%bcond_without python3 +%endif +%endif Name: python-%{pypi_name} Version: 0.4.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Cross-platform colored terminal text License: BSD @@ -110,6 +119,9 @@ rm -rf *.egg-info %endif %changelog +* Tue Oct 30 2018 Matthias Runge - 0.4.0-3 +- fix python2 and python3 package for all releases + * Fri Oct 19 2018 Javier Peña - 0.4.0-2 - Fix python2 package for non-Fedora