File icingaweb2-module-fileshipper.spec of Package icingaweb2-module-fileshipper
#
# spec file for package icingaweb2-module-fileshipper
#
# Copyright (c) 2021 SUSE LLC
#
# 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
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: icingaweb2-module-fileshipper
Version: 1.2.0
Release: 0
Summary: Fileshipper module for Icinga Web 2
License: GPL-2.0-or-later
Group: System/Monitoring
URL: https://www.icinga.org
Source0: https://github.com/Icinga/icingaweb2-module-fileshipper/archive/v%{version}/%{name}-%{version}.tar.gz
Requires: icingaweb2
Requires: icingaweb2-module-director >= 1.1.0
#Requires: php-xml
#Requires: php-yaml
Requires: php-zip
BuildArch: noarch
%description
Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director and
optionally ship hand-crafted additional Icinga2 config files.
%prep
%setup -q
#rpmlint
chmod -x library/Fileshipper/Xlsx/*.php
chmod -x contrib/git-hooks/post-merge
%build
%install
mkdir -p %{buildroot}%{basedir}/modules/fileshipper
mkdir -p %{buildroot}%{basedir}/modules/fileshipper/{contrib,doc,library}
cp -prv contrib doc library %{buildroot}%{basedir}/modules/fileshipper
cp -pv *.md *.php *.info *.xml %{buildroot}%{basedir}/modules/fileshipper
%files
%doc
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/fileshipper
%{basedir}/modules/fileshipper/*
%changelog