From eebbb7c049dbf3e3b01e0c6c63080e8994bd2d66 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 May 2018 12:13:50 -0400 Subject: [PATCH] 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. --- libabigail.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libabigail.spec b/libabigail.spec index a12c5ba..3eb3803 100644 --- a/libabigail.spec +++ b/libabigail.spec @@ -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