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

# spec file for package icingaweb2-module-pnp
# 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

# See also

Name:           icingaweb2-module-pnp
Version:        1.1.0
Release:        0
Summary:        PNP module for Icinga Web 2
License:        GPL-2.0+
Group:          System/Monitoring
Source100:      README.SUSE
Patch0:         %{name}-version.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot}
BuildArch:	noarch
BuildRequires:  pnp4nagios-icinga
Requires:       pnp4nagios-icinga
Requires:       icingaweb2

%define basedir	%{_datadir}/icingaweb2

PNP is an addon to Icinga which analyzes performance data provided by plugins
and stores them automatically into an RRD databases.

%setup -q
%patch0 -p1
cp %{SOURCE100} .


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

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