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

# spec file for package icingaweb2-module-fileshipper
# 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-fileshipper
Version:        1.1.0
Release:        0
Summary:        Fileshipper module for Icinga Web 2
License:        GPL-2.0+
Group:          System/Monitoring
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot}
BuildArch:	noarch
Requires:       icingaweb2
Requires:       icingaweb2-module-director >= 1.1.0
#Requires:       php-xml
#Requires:       php-yaml
Requires:       php-zip

%define basedir	%{_datadir}/icingaweb2

Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director and 
optionally ship hand-crafted additional Icinga2 config files.

%setup -q
chmod -x library/Fileshipper/Xlsx/*.php
chmod -x contrib/git-hooks/post-merge


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

%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/fileshipper