From 12dcc700a83c4c76187e9bbcd046a032a202872e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 2 Mar 2021 19:50:55 +0100 Subject: RPM: add support for Mageia 8 --- redhat/main/tdeaddons/tdeaddons.spec | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'redhat/main/tdeaddons') diff --git a/redhat/main/tdeaddons/tdeaddons.spec b/redhat/main/tdeaddons/tdeaddons.spec index e72a720b8..86758cc50 100644 --- a/redhat/main/tdeaddons/tdeaddons.spec +++ b/redhat/main/tdeaddons/tdeaddons.spec @@ -137,11 +137,10 @@ BuildRequires: db4-devel #BuildRequires: xmms-devel #%endif -# PYTHON support -%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30 -%define python python3 -%else -%define python python +# PYTHON2 support +%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30 || 0%{?mgaversion} >= 8 +%global python %python2 +%global __python %__python2 %endif Requires: trinity-atlantikdesigner = %{version}-%{release} @@ -666,7 +665,7 @@ of user interfaces, playlists and visualisation plugins. %prep %setup -q -n %{name}-%{version}%{?preversion:~%{preversion}} -%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8 +%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8 || 0%{?mgaversion} >= 8 # Fix shebangs sed -i "knewsticker-scripts/sportscores.py" \ "konq-plugins/imagerotation/orient.py" \ -- cgit v1.2.1