From 31ad743a45ee97ee9cc0c36398a8ac764e925a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= Date: Sun, 23 Jan 2022 02:58:24 +0100 Subject: [PATCH] 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. --- macros | 4 +++- redhat-rpm-config.spec | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/macros b/macros index e5cb494..a65697a 100644 --- a/macros +++ b/macros @@ -97,7 +97,9 @@ %{?_auto_set_build_flags:%{set_build_flags}} \ %{?_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 # not suitable to extension builders. diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index fa3a12b..5842683 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 211 +Version: 212 Release: 1%{?dist} # No version specified. License: GPL+ @@ -191,6 +191,10 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua %doc buildflags.md %changelog +* Sun Jan 23 2022 Robert-André Mauchin - 212-1 +- Add package note generation to %%check preamble +- Fix: rhbz#2043977 + * Fri Jan 21 2022 Zbigniew Jędrzejewski-Szmek - 211-1 - Move package note generation to build preamble - Do ELF package notes also on ELN