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: