summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/sip4-tqt
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/dependencies/sip4-tqt')
-rw-r--r--redhat/dependencies/sip4-tqt/sip4-tqt.spec (renamed from redhat/dependencies/sip4-tqt/sip4-tqt-14.0.0.spec)23
1 files changed, 13 insertions, 10 deletions
diff --git a/redhat/dependencies/sip4-tqt/sip4-tqt-14.0.0.spec b/redhat/dependencies/sip4-tqt/sip4-tqt.spec
index 6432e8099..601659a5e 100644
--- a/redhat/dependencies/sip4-tqt/sip4-tqt-14.0.0.spec
+++ b/redhat/dependencies/sip4-tqt/sip4-tqt.spec
@@ -28,7 +28,7 @@
# 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 sip4-tqt
%define tde_prefix /opt/trinity
@@ -71,8 +71,15 @@ BuildRequires: libtqt4-devel >= %{?epoch:%{epoch}:}4.2.0
BuildRequires: trinity-filesystem >= %{tde_version}
BuildRequires: gcc-c++
-BuildRequires: python
-BuildRequires: python-devel
+
+%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31
+%define python python2
+%define __python %__python2
+%else
+%define python python
+%endif
+BuildRequires: %{python}
+BuildRequires: %{python}-devel
%description
SIP is a tool for generating bindings for C++ classes with some ideas
@@ -85,7 +92,7 @@ specificity towards C++ and Python.
Summary: Python/C++ bindings generator (Runtime Library)
Group: Development/Tools/Building
Requires: trinity-filesystem >= %{tde_version}
-Requires: python
+Requires: %{python}
%description -n sip4-tqt
SIP is a tool for generating bindings for C++ classes with some ideas
@@ -94,11 +101,7 @@ specificity towards C++ and Python.
%files -n sip4-tqt
%defattr(-,root,root,-)
-%dir %{python_sitearch}/sip4_tqt
-%{python_sitearch}/sip4_tqt/sip.so
-%{python_sitearch}/sip4_tqt/sipconfig.py*
-%{python_sitearch}/sip4_tqt/sipdistutils.py*
-%{python_sitearch}/sip4_tqt/__init__.py*
+%{python_sitearch}/sip4_tqt/
##########
@@ -106,7 +109,7 @@ specificity towards C++ and Python.
Summary: Python/C++ bindings generator (Development Files)
Group: Development/Libraries/Python
Requires: sip4-tqt = %{?epoch:%{epoch}:}%{version}-%{release}
-Requires: python-devel
+Requires: %{python}-devel
%description -n sip4-tqt-devel
SIP is a tool for generating bindings for C++ classes with some ideas