2022-01-14 17:50:39 +00:00
|
|
|
# Add an ELF note with information about the package the code was compiled for.
|
|
|
|
# See https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects
|
|
|
|
# for details.
|
|
|
|
%_package_note_file %{_builddir}/.package_note-%{name}-%{version}-%{release}.%{_arch}.ld
|
|
|
|
|
2022-01-21 14:52:38 +00:00
|
|
|
%_package_note_flags %{?_package_note_file:%{?name:%["%_target_cpu" == "noarch"?"":"-Wl,-dT,%{_package_note_file}"]}}
|
2022-01-14 17:50:39 +00:00
|
|
|
|
2022-01-21 14:52:38 +00:00
|
|
|
%_generate_package_note_file %{?_package_note_file:%{?name:%["%_target_cpu" == "noarch"?"":"if [ -f %{_rpmconfigdir}/generate-rpm-note.sh ]; then %{_rpmconfigdir}/generate-rpm-note.sh ${RPM_PACKAGE_NAME:?} ${RPM_PACKAGE_VERSION:?}-${RPM_PACKAGE_RELEASE:?} ${RPM_ARCH:?} >%{_package_note_file}; fi"]}}
|