File cacti-plugin-webseer.spec of Package cacti-plugin-webseer
#
# spec file for package cacti-plugin-webseer
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define realname webseer
Name: cacti-plugin-webseer
Version: 3.2+git52.g9fffa88
Release: 0
Summary: Cacti Web Services Monitoring Plugin
License: GPL-2.0-only
Group: Development/Tools/Other
URL: https://github.com/Cacti/plugin_webseer
Source0: %{realname}-v%{version}.zip
Requires: cacti
Requires: cacti-plugin-maint
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%define realname webseer
%define prefix /srv/www/cacti
Obsoletes: cacti-PA-webseer
Provides: cacti-PA-webseer
%description
This plugin allows you to add Web Site service monitoring to Cacti.
You simply add service checks, the desired service check URL, and the expected
response from it's interface, as well as any escallation required if a service
check fails.
%prep
%setup -q -n %{realname}
find . -type f -name "*.orig" -exec rm {} \;
%build
%install
mkdir -p %{buildroot}%{prefix}/plugins/%{realname}
cp -r * %{buildroot}%{prefix}/plugins/%{realname}/.
mkdir -p %{buildroot}%{_docdir}/cacti/plugins/%{realname}
mv %{buildroot}%{prefix}/plugins/%{realname}/LICENSE %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
mv %{buildroot}%{prefix}/plugins/%{realname}/README.md %{buildroot}%{_docdir}/cacti/plugins/%{realname}/.
%files
%defattr(-,root,root)
%{prefix}/
%dir %{_docdir}/cacti
%dir %{_docdir}/cacti/plugins
%{_docdir}/cacti/plugins/%{realname}/
%if 0%{?suse_version} >= 1210
%dir /srv/www/
%dir %{prefix}
%endif
%changelog