summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdeaddons/tdeaddons.spec
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2022-05-15 09:14:59 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2022-05-15 09:27:38 +0200
commit11b59120b4b653f7915851ada6673e3d38b032f8 (patch)
tree4dd35cae65670867e7a810af4b7d5c40dfdcd123 /redhat/main/tdeaddons/tdeaddons.spec
parentc09543aa3d09abae6779b5e16ed5dc416d8e7c70 (diff)
downloadtde-packaging-11b59120b4b653f7915851ada6673e3d38b032f8.tar.gz
tde-packaging-11b59120b4b653f7915851ada6673e3d38b032f8.zip
RPM: add support for openSuse Leap 15.4
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/main/tdeaddons/tdeaddons.spec')
-rw-r--r--redhat/main/tdeaddons/tdeaddons.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/redhat/main/tdeaddons/tdeaddons.spec b/redhat/main/tdeaddons/tdeaddons.spec
index 858a17b8a..83fda2d77 100644
--- a/redhat/main/tdeaddons/tdeaddons.spec
+++ b/redhat/main/tdeaddons/tdeaddons.spec
@@ -138,12 +138,17 @@ BuildRequires: db4-devel
#%endif
# PYTHON2 support
+%if 0%{?sle_version} >= 150400
+%define with_python 0
+%else
+%define with_python 1
%if 0%{?rhel} >= 7 || 0%{?fedora} >= 30 || 0%{?suse_version} >= 1500 || 0%{?mgaversion} >= 7
%global python python2
%global __python %__python2
%else
%global python python
%endif
+%endif
Requires: trinity-atlantikdesigner = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: trinity-kaddressbook-plugins = %{?epoch:%{epoch}:}%{version}-%{release}
@@ -395,7 +400,9 @@ controls XMMS, install the xmms-kde-trinity package.
Summary: scripts for KNewsTicker, the Trinity news ticker
Group: Applications/Utilities
Requires: perl
+%if 0%{with_python}
Requires: %{python}
+%endif
#Requires: libfinance-quote-perl
#Requires: libmime-perl
#Requires: libnews-nntpclient-perl
@@ -436,7 +443,9 @@ Requires: %{_lib}jpeg62
%if 0%{?suse_version} == 1230
Requires: libjpeg8
%endif
+%if 0%{with_python}
Requires: %{python}
+%endif
Requires: rsync
#Requires: unison
Requires: trinity-konqueror
@@ -675,7 +684,6 @@ sed -i "knewsticker-scripts/sportscores.py" \
-e "s|env python|env %{python}|"
%endif
-
%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"