From 282f830b23e8d4b32c542800de005310b1d30c21 Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Tue, 22 Sep 2020 15:04:49 +0200 Subject: [PATCH] Fix build for ELN Signed-off-by: Jan Friesse --- spausedd.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/spausedd.spec b/spausedd.spec index ee5a29d..78e3edb 100644 --- a/spausedd.spec +++ b/spausedd.spec @@ -3,17 +3,23 @@ Name: spausedd Summary: Utility to detect and log scheduler pause Version: 20200323 -Release: 3%{?dist} +Release: 4%{?dist} License: ISC URL: https://github.com/jfriesse/spausedd Source0: https://github.com/jfriesse/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz -# VMGuestLib exists only for x86 architectures +# VMGuestLib exists only for x86 architectures (for Fedora) and x86_64 (for RHEL) %if %{with vmguestlib} +%if 0%{?rhel} >= 6 +%ifarch x86_64 +%global use_vmguestlib 1 +%endif +%else %ifarch %{ix86} x86_64 %global use_vmguestlib 1 %endif %endif +%endif BuildRequires: gcc %{?systemd_requires} @@ -63,6 +69,9 @@ install -m 644 -p init/%{name}.service %{buildroot}/%{_unitdir} %systemd_postun spausedd.service %changelog +* Tue Sep 22 2020 Jan Friesse - 20200323-4 +- Fix build for ELN + * Wed Jul 29 2020 Fedora Release Engineering - 20200323-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild