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 https://bugs.opensuse.org/
#
%define basedir %{_datadir}/icingaweb2
Name: icingaweb2-module-grafana
Version: 3.1.1
Release: 0
Summary: Grafana module for Icinga Web 2
License: GPL-2.0-only
Group: System/Monitoring
URL: https://github.com/Mikesch-mp/icingaweb2-module-grafana
#Source0: https://github.com/Mikesch-mp/icingaweb2-module-grafana/archive/v%%{version}/%%{name}-%%{version}.tar.gz
Source0: https://github.com/NETWAYS/icingaweb2-module-grafana/archive/v%{version}/%{name}-%{version}.tar.gz
Requires: grafana >= 7.0
Requires: icingaweb2 >= 2.11
Requires: icinga-php-library >= 0.10.1
Requires: icingadb >= 1.0.0
Requires: icingadb-web >= 1.0.2
Requires: php >= 8.1
Recommends: graphite-web
BuildArch: noarch
%description
Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
%prep
%setup -q
%build
%install
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
%files
%license LICENSE
%doc README.md
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/grafana
%{basedir}/modules/grafana/*
%changelog