Fix %if conditionals
On non-Fedora systems %{fedora} will not be defined; rpm treats undefined macros as literal text, and 0%{foo} isn't a boolean. The ? makes undefined macros expand as an empty string instead.
This commit is contained in:
parent
a3c6a0558e
commit
eebbb7c049
@ -22,7 +22,7 @@ BuildRequires: dpkg
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-rpm
|
||||
BuildRequires: python3-mock
|
||||
%if 0%{fedora}
|
||||
%if 0%{?fedora}
|
||||
BuildRequires: python3-koji
|
||||
%endif
|
||||
BuildRequires: python3-unittest2
|
||||
@ -34,7 +34,7 @@ BuildRequires: mailcap
|
||||
Requires: python3-pyxdg
|
||||
Requires: python3-rpm
|
||||
Requires: koji
|
||||
%if 0%{fedora}
|
||||
%if 0%{?fedora}
|
||||
Requires: python3-koji
|
||||
%endif
|
||||
Requires: python3 >= 3.6
|
||||
|
Loading…
Reference in New Issue
Block a user