summaryrefslogtreecommitdiffstats
path: root/redhat/applications/koffice/koffice.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/koffice/koffice.spec')
-rw-r--r--redhat/applications/koffice/koffice.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/redhat/applications/koffice/koffice.spec b/redhat/applications/koffice/koffice.spec
index a27bbc6f0..43b5365eb 100644
--- a/redhat/applications/koffice/koffice.spec
+++ b/redhat/applications/koffice/koffice.spec
@@ -113,7 +113,11 @@ BuildRequires: libexif-devel
BuildRequires: readline-devel
# PYTHON support
-%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8
+%if 0%{?sle_version} >= 150400
+%define with_python 0
+%else
+%define with_python 1
+%if 0%{?rhel} >= 8 || 0%{?fedora} >= 31 || 0%{?suse_version} >= 1500 || 0%{?mgaversion} >= 8
%global python python2
%global __python %__python2
%global python_sitearch %{python2_sitearch}
@@ -123,6 +127,7 @@ BuildRequires: readline-devel
%{!?python_sitearch:%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
BuildRequires: %{python}
BuildRequires: %{python}-devel
+%endif
# LCMS support
%if 0%{?suse_version} || 0%{?rhel} >= 7
@@ -381,8 +386,10 @@ Requires: perl
%{tde_tdeappdir}/*koshell.desktop
%{tde_datadir}/apps/kofficewidgets/
%if 0%{?with_kross}
+%if 0%{?with_python}
%{tde_datadir}/apps/kross/
%{tde_tdelibdir}/krosspython.*
+%endif
%if 0%{?with_ruby}
%{tde_tdelibdir}/krossruby.*
%endif