From e0d9656b6324e5fec827e1d0e61e05859ebbf781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Tue, 29 Jan 2019 11:20:37 +0100 Subject: [PATCH] Fix build of srpm. --- annobin.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/annobin.spec b/annobin.spec index 1ab4a42..31d34c9 100644 --- a/annobin.spec +++ b/annobin.spec @@ -80,6 +80,11 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz %global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".") %global gcc_next %(v="%{gcc_major}"; echo $((++v))) +# Needed when building the srpm. +%if 0%{?gcc_major} == 0 +%global gcc_major 0 +%endif + # This is a gcc plugin, hence gcc is required. %if %{with_hard_gcc_version_requirement} # BZ 1607430 - There is an exact requirement on the major version of gcc.