diff --git a/pyhoca-gui.spec b/pyhoca-gui.spec index a87fdb6..13ed3e2 100644 --- a/pyhoca-gui.spec +++ b/pyhoca-gui.spec @@ -12,7 +12,7 @@ Patch0: pyhoca-gui-file.patch Patch1: pyhoca-gui-mro.patch BuildArch: noarch -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 8 BuildRequires: /usr/bin/2to3 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools @@ -25,7 +25,7 @@ BuildRequires: python2-distutils-extra BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: intltool -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 8 Requires: python%{python3_pkgversion}-cups Requires: python%{python3_pkgversion}-setproctitle Requires: python%{python3_pkgversion}-x2go >= 0.5.0.0 @@ -69,7 +69,7 @@ notification area and allows multiple X2Go session handling. %build -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 8 2to3 --write --nobackups . # Fix shebang of pyhoca-gui executable. pathfix.py -i %{__python3} -pn %{name} @@ -82,7 +82,7 @@ pathfix.py -i %{__python3} -pn %{name} %install -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 8 %py3_install %else %py2_install @@ -110,7 +110,7 @@ fi %license COPYING %doc README TODO %{_bindir}/%{name} -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 +%if 0%{?fedora} || 0%{?rhel} >= 8 %{python3_sitelib}/* %else %{python2_sitelib}/*