Fix py2/3 builds on different releases
This commit is contained in:
parent
9575159115
commit
8145d95492
@ -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 <mrunge@redhat.com> - 0.4.0-3
|
||||
- fix python2 and python3 package for all releases
|
||||
|
||||
* Fri Oct 19 2018 Javier Peña <jpena@redhat.com> - 0.4.0-2
|
||||
- Fix python2 package for non-Fedora
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user