summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdeaddons/tdeaddons.spec
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2022-05-15 09:14:59 +0200
committerFrançois Andriot <[email protected]>2022-05-15 09:23:34 +0200
commitb005a4d36bca73c31fb61f4dfd89cfc7421c0d59 (patch)
tree00f5293c8cfd8af166bc74684834ef65df119020 /redhat/main/tdeaddons/tdeaddons.spec
parente858b3aaf2f449a46c3cbaaa7423289bba9635e3 (diff)
downloadtde-packaging-b005a4d36bca73c31fb61f4dfd89cfc7421c0d59.tar.gz
tde-packaging-b005a4d36bca73c31fb61f4dfd89cfc7421c0d59.zip
RPM: add support for openSuse Leap 15.4
Signed-off-by: François Andriot <[email protected]>
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 f92afc1fb..a1c13b553 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
@@ -676,7 +685,6 @@ sed -i "knewsticker-scripts/sportscores.py" \
-e "s|env python|env %{python}|"
%endif
-
%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"