15
0
Files
python-nagiosplugin/python-nagiosplugin.spec
Dirk Mueller da704a5a72 Accepting request 1007038 from home:yarunachalam:branches:devel:languages:python
- 1.3.3 (2022-02-07)
  * new: adding support for newer python releases (3.8, 3.9, 3.10)
  * fix: various typos in docstrings (#39, )
  * fix: change use of deprecated upload-dir to upload_dir in setup.cfg (#34)
  * fix: Runtime class now sets None for stdout by default (#24)
  * fix: corrected argument order in several calls to super() (#18)
  * cleanup: many bits of code tidying to eliminate linter warnings

OBS-URL: https://build.opensuse.org/request/show/1007038
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nagiosplugin?expand=0&rev=8
2022-09-29 18:55:11 +00:00

75 lines
2.4 KiB
RPMSpec

#
# spec file for package python-nagiosplugin
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python36 1
Name: python-nagiosplugin
Version: 1.3.3
Release: 0
Summary: Class library for writing Nagios (Icinga) plugins
License: ZPL-2.1
URL: https://bitbucket.org/flyingcircus/nagiosplugin
Source: https://files.pythonhosted.org/packages/source/n/nagiosplugin/nagiosplugin-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
nagiosplugin is a Python class library which helps writing Nagios (or Icinga)
compatible plugins in Python. It cares for much of the boilerplate code
and default logic commonly found in Nagios checks, including:
- Nagios 3 Plugin API compliant parameters and output formatting
- Full Nagios range syntax support
- Automatic threshold checking
- Multiple independent measures
- Custom status line to communicate the main point quickly
- Long output and performance data
- Timeout handling
- Persistent "cookies" to retain state information between check runs
- Resumption of log file processing at the point where the last run left off
- No dependencies beyond the Python standard library
%prep
%setup -q -n nagiosplugin-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%doc README.txt
%{python_sitelib}/*
%changelog