File centreon-widget-grid-map.spec of Package centreon-widget-grid-map

#
# spec file for package centreon-widget-grid-map
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


%define inst_name grid-map
Name:           centreon-widget-grid-map
Version:        19.04.0
Release:        0
Summary:        Centreon Widget Grid Map
License:        GPL-2.0-only
Group:          Productivity/Networking/Web/Frontends
URL:            http://www.centreon.com
Source:         https://github.com/centreon/centreon-widget-grid-map/archive/%{version}.tar.gz
Source100:      %{name}-rpmlintrc
#BuildRequires:	centreon-web
Requires:       centreon-web >= 19.04.0
BuildArch:      noarch

%description
Display a grid Map.
%{name}-%{version}.tar.gz

%prep
%setup -q

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/centreon/www/widgets/%{inst_name}
cp -r ./%{inst_name}/* %{buildroot}%{_datadir}/centreon/www/widgets/%{inst_name}

%files
%defattr(0644,centreon,centreon,-)
%dir %{_datadir}/centreon
%dir %{_datadir}/centreon/www
%dir %{_datadir}/centreon/www/widgets
%dir %{_datadir}/centreon/www/widgets/%{inst_name}
%dir %{_datadir}/centreon/www/widgets/%{inst_name}/resources
%dir %{_datadir}/centreon/www/widgets/%{inst_name}/src
%{_datadir}/centreon/www/widgets/%{inst_name}/*

%changelog