File icingaweb2-module-nagvis.spec of Package icingaweb2-module-nagvis
#
# spec file for package icingaweb2-module-nagvis
#
# Copyright (c) 2017 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/
#
%define basedir %{_datadir}/icingaweb2
Name: icingaweb2-module-nagvis
Version: 1.2.1
Release: 0
Summary: This module glues NagVis and Icinga Web 2 together
License: GPL-2.0
Group: System/Monitoring
Url: https://www.icinga.org
Source0: https://github.com/Icinga/icingaweb2-module-nagvis/archive/v%{version}.tar.gz
Source1: README.SUSE
Requires: icinga-php-library >= 0.14.2
Requires: icingaweb2 >= 2.0.0
Requires: icingadb >= 1.0.0
Requires: nagvis >= 1.8.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This module provides everything for a complete Icinga Web 2 NagVis integration, including authentication and authorisation.
%prep
%setup -q
%build
# no need for build
%install
mkdir -p %{buildroot}%{basedir}/modules/nagvis
mkdir -p %{buildroot}%{basedir}/modules/nagvis/{application,doc,library,public}
cp -prv application doc library public %{buildroot}%{basedir}/modules/nagvis
mkdir -p %{buildroot}%{_sysconfdir}/nagvis/userfiles/styles
ln -sf %{basedir}/modules/nagvis/public/css/icingaweb-nagvis-integration.css %{buildroot}%{_sysconfdir}/nagvis/userfiles/styles/icingaweb-nagvis-integration.css
install -m 644 %SOURCE1 README.SUSE
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README.md README.SUSE doc
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/nagvis
%{basedir}/modules/nagvis/*
%dir %{_sysconfdir}/nagvis
%dir %{_sysconfdir}/nagvis/userfiles
%dir %{_sysconfdir}/nagvis/userfiles/styles
%{_sysconfdir}/nagvis/userfiles/styles/icingaweb-nagvis-integration.css
%changelog