File icingadb-web.spec of Package icingadb-web

#
# spec file for package icingadb-web
#
# Copyright (c) 2020 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/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
%define basedir	%{_datadir}/icingaweb2
%define module_name icingadb-web
#%%define rcversion 1.0.0-rc2
Name:           %{module_name}
Version:        1.1.3
Release:        0
Summary:        Icinga DB Web – UI for Icinga DB
License:        MIT
Group:          System/Monitoring
URL:            https://www.icinga.org
#Source0:        https://github.com/Icinga/%%{module_name}/archive/v%%{rcversion}/%%{name}-%%{rcversion}.tar.gz
Source0:        %{name}-%{version}.tar.gz
Requires:       icingadb >= 1.1.0
Requires:       icingaweb2 >= 2.9.0
Requires:       icingaweb2-module-director
Requires:       icinga-php-library >= 0.14.1
Requires:       icinga-php-thirdparty >= 0.12.0
Requires:       php >= 7.2
Requires:       php-redis >= 4.3
BuildArch:      noarch

%description
Icinga DB Web – UI for Icinga DB – Successor of the monitoring module.
Icinga DB Web pushes your monitoring stack to the next level.
Based on the lessons learnt with the base monitoring module, it offers a modern and streamlined design to provide a clear and concise overview of your monitoring environment.

%prep
#%%setup -q -n %%{name}-%%{rcversion}
%setup -q -n %{name}-%{version}

%build

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

%files
%license LICENSE
%doc doc
%dir %{basedir}
%dir %{basedir}/modules
%dir %{basedir}/modules/%{module_name}
%{basedir}/modules/%{module_name}/*

%changelog
openSUSE Build Service is sponsored by