Add starlingx dashboard package

Add the centos package details for the starlingx_dashboard.

starlingx_dashboard/enabled/__init__.py is already provided by the
openstack-dashboard package, so that file will be removed from this
package.

Story: 2002891
Task: 24821
Change-Id: I7b890a2adb24627dfba4e73ab968ef1b3f2ac576
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
This commit is contained in:
David Sullivan 2018-09-03 14:04:15 -04:00
parent 825178fb53
commit 8b0101c5ed
5 changed files with 52 additions and 0 deletions

1
centos_pkg_dirs Normal file
View File

@ -0,0 +1 @@
starlingx-dashboard

View File

@ -0,0 +1,2 @@
SRC_DIR="starlingx-dashboard"
TIS_PATCH_VER=1

View File

@ -0,0 +1,48 @@
##
Summary: stx horizon plugins
Name: starlingx-dashboard
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-setuptools
BuildRequires: python-pbr
Requires: openstack-dashboard
BuildArch: noarch
%description
starlingx specific horizon plugins
%define py_pkg_name starlingx_dashboard
%define enabled_dir %{_datadir}/openstack-dashboard/openstack_dashboard/enabled/
%define debug_package %{nil}
%prep
%setup
%build
export PBR_VERSION=%{version}
%py2_build
%install
export PBR_VERSION=%{version}
%py2_install
install -d -m 755 %{buildroot}%{enabled_dir}
install -p -D -m 755 %{py_pkg_name}/enabled/* %{buildroot}%{enabled_dir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%{python2_sitelib}/%{py_pkg_name}
%{python2_sitelib}/%{py_pkg_name}-%{version}*.egg-info
%{enabled_dir}

View File

@ -0,0 +1 @@
recursive-include starlingx_dashboard *.js *.html *.keep