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

# spec file for package icingaweb2-module-grafana
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%define basedir %{_datadir}/icingaweb2
Name:           icingaweb2-module-grafana
Version:        1.3.6
Release:        0
Summary:        Grafana module for Icinga Web 2
License:        GPL-2.0-only
Group:          System/Monitoring
Requires:       grafana >= 4.1
Recommends:     graphite-web
Requires:       icingaweb2 >= 2.4.1
Requires:       php7
BuildArch:      noarch

Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)

%setup -q


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

%license LICENSE
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/grafana

openSUSE Build Service is sponsored by