spec: add rhel8 support

This commit is contained in:
Rene Trippen 2022-06-24 17:20:25 +02:00
parent 1441dc9e03
commit e95f4fc1e0

View File

@ -1,6 +1,6 @@
Name: monitoring-check-systemd-service Name: monitoring-check-systemd-service
Version: %{version} Version: %{version}
Release: %{release} Release: %{release}%{?dist}
Epoch: 1 Epoch: 1
Summary: Nagios/Icinga check for systemd services Summary: Nagios/Icinga check for systemd services
AutoReqProv: no AutoReqProv: no
@ -8,9 +8,16 @@ BuildArch: noarch
Source0: https://github.com/joernott/monitoring-check-systemd-service/archive/v%{version}.tar.gz#/monitoring-check-systemd-service-%{version}.tar.gz Source0: https://github.com/joernott/monitoring-check-systemd-service/archive/v%{version}.tar.gz#/monitoring-check-systemd-service-%{version}.tar.gz
License: BSD License: BSD
URL: https://github.com/joernott/monitoring-check-systemd-service URL: https://github.com/joernott/monitoring-check-systemd-service
%if 0%{?rhel} == 8
Requires: python36
Requires: python3-gobject
Requires: python3-nagiosplugin
%else
Requires: rh-python36 Requires: rh-python36
Requires: python36-gobject Requires: python36-gobject
Requires: python3-nagiosplugin Requires: python3-nagiosplugin
%endif
%description %description
This script is intended for icinga/nagios/icinga2 to check the state of a This script is intended for icinga/nagios/icinga2 to check the state of a