Add package note generation to check preamble Fix: rhbz#2043977

Packages which do not have %%build section but do also
compile and link test programs in %%check would fail because
no package note would have been generated.
This commit is contained in:
Robert-André Mauchin 2022-01-23 02:58:24 +01:00
parent 3a30baf034
commit 31ad743a45
2 changed files with 8 additions and 2 deletions

4
macros
View File

@ -97,7 +97,9 @@
%{?_auto_set_build_flags:%{set_build_flags}} \ %{?_auto_set_build_flags:%{set_build_flags}} \
%{?_generate_package_note_file} %{?_generate_package_note_file}
%__spec_check_pre %{___build_pre} %{?_auto_set_build_flags:%{set_build_flags}} %__spec_check_pre %{___build_pre} \
%{?_auto_set_build_flags:%{set_build_flags}} \
%{?_generate_package_note_file}
# Internal-only. Do not use. Expand a variable and strip the flags # Internal-only. Do not use. Expand a variable and strip the flags
# not suitable to extension builders. # not suitable to extension builders.

View File

@ -6,7 +6,7 @@
Summary: Red Hat specific rpm configuration files Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config Name: redhat-rpm-config
Version: 211 Version: 212
Release: 1%{?dist} Release: 1%{?dist}
# No version specified. # No version specified.
License: GPL+ License: GPL+
@ -191,6 +191,10 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
%doc buildflags.md %doc buildflags.md
%changelog %changelog
* Sun Jan 23 2022 Robert-André Mauchin <zebob.m@gmail.com> - 212-1
- Add package note generation to %%check preamble
- Fix: rhbz#2043977
* Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 211-1 * Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 211-1
- Move package note generation to build preamble - Move package note generation to build preamble
- Do ELF package notes also on ELN - Do ELF package notes also on ELN