From b005a4d36bca73c31fb61f4dfd89cfc7421c0d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 15 May 2022 09:14:59 +0200 Subject: RPM: add support for openSuse Leap 15.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/main/tdeaddons/tdeaddons.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'redhat/main/tdeaddons/tdeaddons.spec') 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}" -- cgit v1.2.1