summaryrefslogtreecommitdiffstats
path: root/redhat/libraries/pytdeextensions
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2019-11-03 11:03:22 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2019-11-03 11:16:56 +0100
commitcd8eb9fd74fafb2435bc1f878cbb2bc91f52d859 (patch)
tree51c7e8b06b5c920736585ff8dbead62834875859 /redhat/libraries/pytdeextensions
parent411aad4790a5b19fe3f927c4dffd18116fe4db16 (diff)
downloadtde-packaging-cd8eb9fd74fafb2435bc1f878cbb2bc91f52d859.tar.gz
tde-packaging-cd8eb9fd74fafb2435bc1f878cbb2bc91f52d859.zip
RPM: update spec files for TDE 14.0.7
Diffstat (limited to 'redhat/libraries/pytdeextensions')
-rw-r--r--redhat/libraries/pytdeextensions/pytdeextensions.spec (renamed from redhat/libraries/pytdeextensions/pytdeextensions-14.0.0.spec)18
1 files changed, 13 insertions, 5 deletions
diff --git a/redhat/libraries/pytdeextensions/pytdeextensions-14.0.0.spec b/redhat/libraries/pytdeextensions/pytdeextensions.spec
index b8835c6d2..7a1919d30 100644
--- a/redhat/libraries/pytdeextensions/pytdeextensions-14.0.0.spec
+++ b/redhat/libraries/pytdeextensions/pytdeextensions.spec
@@ -15,12 +15,11 @@
# Please submit bugfixes or comments via http://www.trinitydesktop.org/
#
-%{!?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 pytdeextensions
%define tde_prefix /opt/trinity
@@ -76,6 +75,15 @@ Requires: trinity-libpythonize0 = %{?epoch:%{epoch}:}%{version}-%{release}
BuildRequires: sip4-tqt-devel >= 4.10.5
Requires: sip4-tqt >= 4.10.5
+# PYTHON support
+%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
+
Obsoletes: trinity-pykdeextensions < %{?epoch:%{epoch}:}%{version}-%{release}
Provides: trinity-pykdeextensions = %{?epoch:%{epoch}:}%{version}-%{release}
@@ -185,7 +193,7 @@ fi
%__sed -i "src/pythonize."* -e "s|const char \*object|char \*object|g"
%endif
-%if 0%{?fedora} >= 30
+%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8
%__sed -i "app_templates/kcontrol_module/setup.py" \
"app_templates/kcontrol_module/src/kcontrol_module.py" \
"app_templates/kdeapp/setup.py" \
@@ -203,7 +211,7 @@ unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
%__mkdir_p build
-./setup.py build_libpythonize
+%__python ./setup.py build_libpythonize
%install
@@ -215,7 +223,7 @@ export PYTHONDONTWRITEBYTECODE=
%__rm -rf %{buildroot}
-./setup.py install \
+%__python ./setup.py install \
--root=%{buildroot} \
--prefix=%{tde_prefix} \
--install-clib=%{tde_libdir} \