Use python36 for el7 (and python34 for el6)

This commit is contained in:
Stuart D. Gathman 2019-09-20 11:23:00 -04:00
parent 49f5b0d8f8
commit b07dfbe0aa
1 changed files with 13 additions and 3 deletions

View File

@ -73,7 +73,7 @@
# FIXME: python tools need to make cjdnsadmin a proper python package
%global with_python 1
%global __python %{__python2}
%global __python %{__python3}
%{!?__restorecon: %global __restorecon /sbin/restorecon}
@ -153,9 +153,19 @@ Patch20: cjdns.sysctl.patch
Patch21: cjdns.puts.patch
%if %{use_marked}
BuildRequires: nodejs, nodejs-marked, python3
BuildRequires: nodejs, nodejs-marked
%else
BuildRequires: nodejs, nodejs-ronn, python3
BuildRequires: nodejs, nodejs-ronn
%endif
%if 0%{?rhel} == 6
BuildRequires: python34
%else
%if 0%{?rhel} == 7
BuildRequires: python36
%else
BuildRequires: python3
%endif
%endif
# Automated package review hates explicit BR on make, but it *is* needed