File icingaweb2-module-graphite.spec of Package icingaweb2-module-graphite
#
# spec file for package icingaweb2-module-graphite
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: icingaweb2-module-graphite
Version: 1.1.0
Release: 0
Summary: Graphite module for Icinga Web 2
License: GPL-2.0+
Group: System/Monitoring
Url: https://www.icinga.org
Source0: https://github.com/Icinga/icingaweb2-module-graphite/archive/v%{version}.tar.gz
Source90: README.SUSE
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot}
BuildArch: noarch
BuildRequires: unzip
Requires: icinga2 >= 2.4.0
Requires: icingaweb2 >= 2.5.0
Requires: graphite-web
%define basedir %{_datadir}/icingaweb2
%description
Graphite is an addon to Icinga which analyzes performance data provided by plugins
and stores them automatically into RRD-databases.
%prep
%setup -q -n %{name}-%{version}
install -m644 %{SOURCE90} .
%build
%install
mkdir -p %{buildroot}%{basedir}/modules/graphite
mkdir -p %{buildroot}%{basedir}/modules/graphite/{application,doc,library,public,templates}
cp -prv application doc library public templates %{buildroot}%{basedir}/modules/graphite
cp -pv *.md *.php *.info %{buildroot}%{basedir}/modules/graphite
%files
%defattr(-,root,root)
%doc README.SUSE
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/graphite
%{basedir}/modules/graphite/*
%changelog