From d6e58ff2382517b55bb86626869ff11ff5d2512f6000e91919c0354c921ae994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 29 Apr 2019 10:30:24 +0000 Subject: [PATCH] Accepting request 699386 from home:mnhauke:monitoring Initial package for python-nagiosplugin OBS-URL: https://build.opensuse.org/request/show/699386 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nagiosplugin?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + nagiosplugin-1.2.4.tar.gz | 3 ++ python-nagiosplugin.changes | 4 +++ python-nagiosplugin.spec | 71 +++++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 nagiosplugin-1.2.4.tar.gz create mode 100644 python-nagiosplugin.changes create mode 100644 python-nagiosplugin.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/nagiosplugin-1.2.4.tar.gz b/nagiosplugin-1.2.4.tar.gz new file mode 100644 index 0000000..1f6de17 --- /dev/null +++ b/nagiosplugin-1.2.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b020aca516f3643ad02378866d382f0296bf378fa3874d9b2e1d3cc6135f8bb +size 38290 diff --git a/python-nagiosplugin.changes b/python-nagiosplugin.changes new file mode 100644 index 0000000..4888c2f --- /dev/null +++ b/python-nagiosplugin.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Aug 25 13:27:10 UTC 2017 - mardnh@gmx.de + +- Initial package, version 1.2.4 diff --git a/python-nagiosplugin.spec b/python-nagiosplugin.spec new file mode 100644 index 0000000..5680196 --- /dev/null +++ b/python-nagiosplugin.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-nagiosplugin +# +# Copyright (c) 2017, Martin Hauke +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-nagiosplugin +Version: 1.2.4 +Release: 0 +Summary: Class library for writing Nagios (Icinga) plugins +License: ZPL-2.1 +Group: Development/Languages/Python +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 +%python_subpackages + +%description +**nagiosplugin** is a Python class library which helps writing Nagios (or Icinga) +compatible plugins easily 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 independend 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 +- Resume log file processing at the point where the last run left +- 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} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%license LICENSE.txt +%doc README.txt +%{python_sitelib}/* + +%changelog