summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdeutils/tdeutils.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/main/tdeutils/tdeutils.spec')
-rw-r--r--redhat/main/tdeutils/tdeutils.spec14
1 files changed, 12 insertions, 2 deletions
diff --git a/redhat/main/tdeutils/tdeutils.spec b/redhat/main/tdeutils/tdeutils.spec
index 693adb10d..6f3662c21 100644
--- a/redhat/main/tdeutils/tdeutils.spec
+++ b/redhat/main/tdeutils/tdeutils.spec
@@ -81,9 +81,19 @@ BuildRequires: fdupes
BuildRequires: gettext
BuildRequires: net-snmp-devel
-BuildRequires: python-devel
BuildRequires: gmp-devel
+# 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
+BuildRequires: %{python}
+BuildRequires: %{python}-devel
+
# SUSE desktop files utility
%if 0%{?suse_version}
BuildRequires: update-desktop-files
@@ -135,7 +145,7 @@ BuildRequires: pcre-devel
BuildRequires: libacl-devel
# XSCREENSAVER support
-%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} >= 5 || 0%{?suse_version}
+%if 0%{?fedora} >= 15 || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?rhel} == 5 || 0%{?rhel} == 6 || 0%{?rhel} == 7 || 0%{?suse_version}
%define with_xscreensaver 1
%if 0%{?fedora} || 0%{?rhel} >= 5 || 0%{?suse_version}
BuildRequires: libXScrnSaver-devel