Generate latest-annobin.tar.xz at %prep

Generate a source tarball for annobin during the prep phase, after all
the patches have been applied.  Use this new tarball when installing the
annobin source code for the GCC plugin.

On distros without downstream patches, this change should not produce
any changes.

Resolves: RHEL-82899
This commit is contained in:
Tulio Magno Quites Machado Filho 2025-03-10 15:22:05 -03:00
parent a4af30580c
commit 708bb57eab

View File

@ -2,7 +2,7 @@
Name: annobin
Summary: Annotate and examine compiled binary files
Version: 12.92
Release: 1%{?dist}
Release: 2%{?dist}
License: GPL-3.0-or-later AND LGPL-2.0-or-later AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (LGPL-2.0-or-later WITH GCC-exception-2.0) AND GFDL-1.3-or-later
# Maintainer: nickc@redhat.com
# Web Page: https://sourceware.org/annobin/
@ -206,6 +206,10 @@ touch configure */configure Makefile.in */Makefile.in
# Similarly we do not want to rebuild the documentation.
touch doc/annobin.info
# Generate a source tarball for installation later with all the patches
# applied. This must be the last step in the prep section.
tar -C ../ -cJf ../latest-annobin.tar.xz %{name}-%{version}
#---------------------------------------------------------------------------------
%build
@ -313,7 +317,7 @@ cat `gcc --print-file-name=rpmver` > %{buildroot}/%{ANNOBIN_GCC_PLUGIN_DIR}/%{av
# Also install a copy of the sources into the build tree.
mkdir -p %{buildroot}%{annobin_source_dir}
cp %{_sourcedir}/%{annobin_sources} %{buildroot}%{annobin_source_dir}/latest-annobin.tar.xz
cp ../latest-annobin.tar.xz %{buildroot}%{annobin_source_dir}/latest-annobin.tar.xz
%endif
rm -f %{buildroot}%{_infodir}/dir
@ -370,6 +374,9 @@ exit $res
#---------------------------------------------------------------------------------
%changelog
* Mon Mar 10 2025 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 12.92-2
- Generate latest-annobin.tar.xz at prep phase (RHEL-82899)
* Fri Feb 14 2025 Nick Clifton <nickc@redhat.com> - 12.92-1
- Annocheck: Do not rely upon libelf's ability to detect links to separate debuginfo files. (RHEL-79264)