diff options
Diffstat (limited to 'redhat/dependencies/python-tqt')
-rw-r--r-- | redhat/dependencies/python-tqt/python-tqt.spec (renamed from redhat/dependencies/python-tqt/python-tqt-14.0.0.spec) | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/redhat/dependencies/python-tqt/python-tqt-14.0.0.spec b/redhat/dependencies/python-tqt/python-tqt.spec index 3b8b54d68..0a3731cc1 100644 --- a/redhat/dependencies/python-tqt/python-tqt-14.0.0.spec +++ b/redhat/dependencies/python-tqt/python-tqt.spec @@ -19,12 +19,10 @@ # Remove qt-devel and qt3-devel and any kde*-devel on your system ! # Having KDE libraries may cause FTBFS here ! -%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - # TDE variables %define tde_epoch 2 %if "%{?tde_version}" == "" -%define tde_version 14.0.0 +%define tde_version 14.0.7 %endif %define tde_pkg python-tqt %define tde_prefix /opt/trinity @@ -71,8 +69,17 @@ BuildRequires: sip4-tqt-devel >= %{?epoch:%{epoch}:}4.10.5 BuildRequires: libtqscintilla-devel >= %{?epoch:%{epoch}:}1.7.1 BuildRequires: gcc-c++ -BuildRequires: python -BuildRequires: python-devel + +# PYTHON +%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 +%define python python2 +%define __python %__python2 +%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%else +%define python python +%endif +BuildRequires: %{python} +BuildRequires: %{python}-devel # MESA support %if 0%{?rhel} || 0%{?fedora} |