File icingaweb2-module-trapdirector.spec of Package icingaweb2-module-trapdirector
#
# 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 http://bugs.opensuse.org/
#
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: icingaweb2-module-trapdirector
Version: 1.0.6
Release: 0
Summary: PNP module for Icinga Web 2
License: GPL-2.0+
Group: System/Monitoring
Url: https://www.icinga.org
Source0: https://github.com/patrickpr/trapdirector/archive/%{version}.tar.gz
BuildArch: noarch
Requires: icingaweb2
%define basedir %{_datadir}/icingaweb2
%description
Icingaweb2 module for receiving and handling SNMP traps
%prep
%setup -q -n trapdirector-%{version}
%build
%install
mkdir -p %{buildroot}%{basedir}/modules/trapdirector
mkdir -p %{buildroot}%{basedir}/modules/trapdirector/{application,library,mibs,public}
cp -prv application bin library mibs public %{buildroot}%{basedir}/modules/trapdirector
cp -pv *.md *.php *.info %{buildroot}%{basedir}/modules/trapdirector
%files
%defattr(-,root,root)
%doc README.md SQL doc selinux
%license LICENSE.txt
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/trapdirector
%{basedir}/modules/trapdirector/*
%changelog