Add an exact requirement on the major version of gcc.

Resolves:  #1607430
This commit is contained in:
Nick Clifton 2019-01-28 16:47:39 +00:00
parent 443440ae4a
commit a8a0b58356

View File

@ -16,7 +16,7 @@
Name: annobin
Summary: Binary annotation plugin for GCC
Version: 8.69
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv3+
URL: https://fedoraproject.org/wiki/Toolchain/Watermark
@ -41,7 +41,11 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
#---------------------------------------------------------------------------------
# BZ 1607430 - There is an exact requirement on the major version of gcc.
%define gcc_runtime_req_version %(rpm -q --qf '%{version}' gcc)
BuildRequires: gcc gcc-plugin-devel gcc-c++
Requires: gcc = %{gcc_runtime_req_version}
%description
Provides a plugin for GCC that records extra information in the files
@ -200,6 +204,9 @@ make check
#---------------------------------------------------------------------------------
%changelog
* Mon Jan 28 2019 Nick Clifton <nickc@redhat.com> - 8.69-2
- Add an exact requirement on the major version of gcc.
* Thu Jan 24 2019 Nick Clifton <nickc@redhat.com> - 8.69-1
- Annobin: Add support for .text.startup and .text.exit sections generated by gcc 9.
- Annocheck: Add a note displaying tool.