File icingaweb2-module-toplevelview.spec of Package icingaweb2-module-toplevelview

#
# spec file for package icingaweb2-module-toplevelview
#
# Copyright (c) 2020 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/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
%define basedir	%{_datadir}/icingaweb2
%define module_name toplevelview
Name:           icingaweb2-module-%{module_name}
Version:        0.3.1
Release:        0
Summary:        TopLevelView is a drill down view module for Icinga Web 2
License:        GPL-2.0-or-later
Group:          System/Monitoring
URL:            https://www.icinga.org
Source0:        https://github.com/Icinga/icingaweb2-module-%{module_name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  icingaweb2 >= 2.5.0
Requires:       icingaweb2 >= 2.5.0
Requires:       icingaweb2-module-director
Requires:       php-pecl-yaml
BuildArch:      noarch

%description
Top Level View is a hierarchy based status view for Icinga Web 2.
You can define a hierarchical structure containing hosts, services and hostgroups.
And the view presents you an overview of the overall status of the sub-hierarchies.
With a caching layer, this view can aggregate thousands of status objects and
make them easily available for overview and drill down.
This view extends the status logic and behavior of Icinga Web 2 a bit,
please see the documentation on details.

%prep
%setup -q
# don't want docker
rm -rfd test/docker

%build

%install
mkdir -p %{buildroot}%{basedir}/modules/%{module_name}
mkdir -p %{buildroot}%{basedir}/modules/%{module_name}/{application,doc,library,public,test}
cp -prv application doc library public test %{buildroot}%{basedir}/modules/%{module_name}
cp -pv *.md *.php *.info %{buildroot}%{basedir}/modules/%{module_name}

%files
%license COPYING
%doc
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/%{module_name}
%{basedir}/modules/%{module_name}/*

%changelog
openSUSE Build Service is sponsored by