From da72e625d55299a1743c09d0c43ba30e1d9c6de1 Mon Sep 17 00:00:00 2001 From: Prarit Bhargava Date: Wed, 20 Apr 2022 15:16:24 -0400 Subject: [PATCH] mcelog.spec: Update version to reflect rpm NVR Add a .os_build file to reflect the rpm NVR. Found during testing of bz2040073. Resolves: bz2040073 Reported-by: Jiri Dluhos Signed-off-by: Prarit Bhargava --- mcelog.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mcelog.spec b/mcelog.spec index fe76b34..76f9790 100644 --- a/mcelog.spec +++ b/mcelog.spec @@ -1,7 +1,7 @@ Summary: Tool to translate x86-64 CPU Machine Check Exception data Name: mcelog Version: 180 -Release: 0%{?dist} +Release: 1%{?dist} Epoch: 3 License: GPLv2 URL: https://github.com/andikleen/mcelog @@ -24,6 +24,9 @@ on x86-32 and x86-64 systems. %autosetup %build +# automatically populate the .os_version file so that "mcelog --version" +# returns a valid value instead of "unknown" +echo "%{version}-%{release}" > .os_version %make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %install @@ -60,6 +63,9 @@ install -p -m644 mcelog*.5 $RPM_BUILD_ROOT/%{_mandir}/man5/ %{_mandir}/*/* %changelog +* Wed Apr 20 2022 Prarit Bhargava - 3:180-1 +- update .os_version + * Wed Mar 09 2022 Prarit Bhargava - 3:180-0 - Update to v180 [2040073]