-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpython3-ansible-remote-checks.spec
50 lines (38 loc) · 1.14 KB
/
python3-ansible-remote-checks.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%global modname ansible-remote-checks
%if %{?rhel} == 8
%define python_version python3
%endif
%if %{?rhel} == 9
%define python_version python3.11
%endif
Name: %{python_version}-%{modname}
Version: 0.1.9
Release: 0%{?dist}
Summary: Nagios checks for linux hosts executed agentless via ansible
License: MIT
Source0: %{modname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{python_version}-devel
BuildRequires: %{python_version}-rpm-macros
BuildRequires: python3-setuptools
Requires: ansible-core
%?python_disable_dependency_generator
%description
Nagios checks for linux hosts executed agentless via ansible
%package -n nagios-plugins-ansible-remote
Summary: Nagios checks ansible
Requires: nagios-common
Requires: %{name} = %{version}-%{release}
%description -n nagios-plugins-ansible-remote
Nagios checks ansible
%prep
%autosetup -n %{modname}-%{version}
%build
%py3_build
%install
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT --install-scripts %{_libdir}/nagios/plugins
%files
%{python3_sitelib}/*
%files -n nagios-plugins-ansible-remote
%{_libdir}/nagios/plugins/*
%changelog