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-devel
|
||||||
BuildRequires: python3-rpm
|
BuildRequires: python3-rpm
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-mock
|
||||||
%if 0%{fedora}
|
%if 0%{?fedora}
|
||||||
BuildRequires: python3-koji
|
BuildRequires: python3-koji
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python3-unittest2
|
BuildRequires: python3-unittest2
|
||||||
@ -34,7 +34,7 @@ BuildRequires: mailcap
|
|||||||
Requires: python3-pyxdg
|
Requires: python3-pyxdg
|
||||||
Requires: python3-rpm
|
Requires: python3-rpm
|
||||||
Requires: koji
|
Requires: koji
|
||||||
%if 0%{fedora}
|
%if 0%{?fedora}
|
||||||
Requires: python3-koji
|
Requires: python3-koji
|
||||||
%endif
|
%endif
|
||||||
Requires: python3 >= 3.6
|
Requires: python3 >= 3.6
|
||||||
|
Loading…
Reference in New Issue
Block a user