From 55dc47038cbd2806f0553471469044fcc15b5ccf Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Wed, 6 Apr 2022 19:21:11 +0200 Subject: [PATCH] Fix installation issue on RHEL8 for cmonitor-tools RPM --- tools/spec/tools.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/spec/tools.spec b/tools/spec/tools.spec index f41b820a..7d09cb79 100644 --- a/tools/spec/tools.spec +++ b/tools/spec/tools.spec @@ -14,8 +14,14 @@ Source0: cmonitor-tools-__RPM_VERSION__.tar.gz # IMPORTANT: python3-devel provide macros like %{python3_sitelib} BuildRequires: gcc-c++, make, python3-devel -# cmonitor_filter uses dateutil library to parse dates: +# cmonitor_filter uses dateutil library to parse dates.. of course to make our life easier the same python library +# RPM has different names on different distro versions... +%if 0%{?rhel} == 7 Requires: python-dateutil +%endif +%if 0%{?rhel} >= 8 +Requires: python3-dateutil +%endif # Disable automatic debug package creation: it fails within Fedora 28, 29 and 30 for the lack # of debug info files apparently: