commit 65df9944c56949753096bd0f9ee411103ac44af2
Author: Richard Shaw <hobbes1069(a)gmail.com>
Date: Sun Jun 9 13:42:44 2019 -0500
Fix Python 3 conditionals.
mythtv.spec | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/mythtv.spec b/mythtv.spec
index 12bc65d..24ec5ec 100644
--- a/mythtv.spec
+++ b/mythtv.spec
@@ -679,7 +679,7 @@ Provides a PHP-based interface to interacting with MythTV.
%package -n %{py_prefix}-MythTV
Summary: Python2 bindings for MythTV
-%if 0%{?fedora} > 30
+%if 0%{?fedora} > 32
%{?python_provide:%python_provide python3-%{name}}
%else
%{?python_provide:%python_provide python2-%{name}}
@@ -946,7 +946,7 @@ pushd mythtv
--disable-vaapi \
%endif
--enable-bdjava \
-%if 0%{?fedora} > 30
+%if 0%{?fedora} > 32
--python=%{__python3} \
%else
--python=%{__python2} \
@@ -1058,7 +1058,7 @@ pushd mythplugins
--disable-mythnetvision \
%endif
--enable-opengl \
-%if 0%{?fedora} > 30
+%if 0%{?fedora} > 32
--python=%{__python3} \
%else
--python=%{__python2} \
@@ -1161,7 +1161,7 @@ popd
%endif
# Fixes ERROR: ambiguous python shebang in F30
-%if 0%{?fedora} > 30
+%if 0%{?fedora} > 32
find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/env python$:#!%{__python3}:' {} ';'
find %{buildroot}%{_datadir}/mythtv/ -type f -name "*.py" -exec sed -i
'1s:#!/usr/bin/python$:#!%{__python3}:' {} ';'
%else
@@ -1344,7 +1344,7 @@ exit 0
%if %{with python}
%files -n %{py_prefix}-MythTV
%{_bindir}/mythpython
-%if 0%{?fedora} > 30
+%if 0%{?fedora} > 32
%{python3_sitelib}/MythTV/
%{python3_sitelib}/MythTV-*.egg-info
%else