Name: nagios-plugins-infra Version: 1.6.2 BuildArch: noarch %define prog_dir /usr/lib64/nagios/plugins/infra Release: 1%{?dist} Summary: INFRA nagios plugins License: do not use Source0: nagios-plugins-infra-%{version}.tar.gz Requires: python3-nagiosplugin %description Infra nagios modules %prep %setup -q -n "infra" %build %install rm -rf $RPM_BUILD_ROOT install -d ${RPM_BUILD_ROOT}/%{prog_dir} install check_hostname ${RPM_BUILD_ROOT}/%{prog_dir}/check_hostname install check_systemd.py ${RPM_BUILD_ROOT}/%{prog_dir}/check_systemd.py install check_logger ${RPM_BUILD_ROOT}/%{prog_dir}/check_logger install check_elasticsearch ${RPM_BUILD_ROOT}/%{prog_dir}/check_elasticsearch install check_redis.pl ${RPM_BUILD_ROOT}/%{prog_dir}/check_redis.pl install check_garbage ${RPM_BUILD_ROOT}/%{prog_dir}/check_garbage install check_sms3status.pl ${RPM_BUILD_ROOT}/%{prog_dir}/check_sms3status.pl %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{prog_dir}/check_hostname %{prog_dir}/check_systemd.py %{prog_dir}/check_logger %{prog_dir}/check_elasticsearch %{prog_dir}/check_redis.pl %{prog_dir}/check_garbage %{prog_dir}/check_sms3status.pl %changelog