Minor conditional tweak for ELN

Signed-off-by: Troy Dawson tdawson@redhat.com
This commit is contained in:
Troy Dawson 2020-07-07 15:58:09 +00:00
parent efbe7afa49
commit 9121f405a5

View File

@ -61,7 +61,7 @@ BuildRequires: bash-completion
# python-magic and python-enchant are actually optional dependencies, but # python-magic and python-enchant are actually optional dependencies, but
# they bring quite desirable features. # they bring quite desirable features.
%if %{with python3} %if %{with python3}
%if 0%{?fedora} >= 33 %if 0%{?fedora} >= 33 || 0%{?rhel} >= 9
Requires: python3-file-magic Requires: python3-file-magic
BuildRequires: python3-file-magic BuildRequires: python3-file-magic
%else %else
@ -102,7 +102,7 @@ and source packages as well as spec files can be checked.
%patch212 -p1 %patch212 -p1
%patch213 -p1 %patch213 -p1
%if 0%{?fedora} >= 31 %if 0%{?fedora} >= 31 || 0%{?rhel} >= 9
# TODO, take upstream (RPM 4.15 related) # TODO, take upstream (RPM 4.15 related)
sed -i "s/'wb'/'w'/" PostCheck.py sed -i "s/'wb'/'w'/" PostCheck.py
%endif %endif