summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/python-tqt
diff options
context:
space:
mode:
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)19
1 files changed, 14 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..9c6472049 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.1.0
%endif
%define tde_pkg python-tqt
%define tde_prefix /opt/trinity
@@ -71,8 +69,18 @@ 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 support
+%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550
+%global python python2
+%global __python %__python2
+%global python_sitearch %{python2_sitearch}
+%else
+%global python python
+%endif
+%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+BuildRequires: %{python}
+BuildRequires: %{python}-devel
# MESA support
%if 0%{?rhel} || 0%{?fedora}
@@ -237,6 +245,7 @@ cp -rf ../pyuic3 ../pylupdate3
echo yes | %__python ../configure.py \
-c -n %{_includedir}/tqscintilla \
+ -g %{_includedir}/tqt3 \
-q %{_datadir}/tqt3 \
-y tqt-mt \
-o %{_libdir} -u -j 10 \