Fix build of srpm.

This commit is contained in:
Björn Esser 2019-01-29 11:20:37 +01:00
parent 5524770463
commit e0d9656b63
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -80,6 +80,11 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
%global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".") %global gcc_major %(echo "%{gcc_vr}" | cut -f1 -d".")
%global gcc_next %(v="%{gcc_major}"; echo $((++v))) %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. # This is a gcc plugin, hence gcc is required.
%if %{with_hard_gcc_version_requirement} %if %{with_hard_gcc_version_requirement}
# BZ 1607430 - There is an exact requirement on the major version of gcc. # BZ 1607430 - There is an exact requirement on the major version of gcc.