summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdeutils
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2019-11-06 18:28:25 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2019-11-19 15:07:26 +0100
commit18cafac14a063cb54c8ed6afc64e87b929c957ee (patch)
tree06fc16c044727989b00efaf3b5403268c632006c /redhat/main/tdeutils
parent26d469b405d902b6ba50ae7bf45b940cc6c9d57e (diff)
downloadtde-packaging-18cafac14a063cb54c8ed6afc64e87b929c957ee.tar.gz
tde-packaging-18cafac14a063cb54c8ed6afc64e87b929c957ee.zip
RPM: various fixes to build on CentOS 8
Diffstat (limited to 'redhat/main/tdeutils')
-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