From 8b0101c5ed2a5dc5f58d99f1dcde15c50bf2c199 Mon Sep 17 00:00:00 2001 From: David Sullivan Date: Mon, 3 Sep 2018 14:04:15 -0400 Subject: [PATCH] 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 --- centos_pkg_dirs | 1 + starlingx-dashboard/centos/build_srpm.data | 2 + .../centos/starlingx-dashboard.spec | 48 +++++++++++++++++++ .../starlingx-dashboard/MANIFEST.in | 1 + starlingx_dashboard/enabled/__init__.py | 0 5 files changed, 52 insertions(+) create mode 100644 centos_pkg_dirs create mode 100644 starlingx-dashboard/centos/build_srpm.data create mode 100644 starlingx-dashboard/centos/starlingx-dashboard.spec create mode 100644 starlingx-dashboard/starlingx-dashboard/MANIFEST.in delete mode 100644 starlingx_dashboard/enabled/__init__.py diff --git a/centos_pkg_dirs b/centos_pkg_dirs new file mode 100644 index 00000000..5c07dea3 --- /dev/null +++ b/centos_pkg_dirs @@ -0,0 +1 @@ +starlingx-dashboard diff --git a/starlingx-dashboard/centos/build_srpm.data b/starlingx-dashboard/centos/build_srpm.data new file mode 100644 index 00000000..ba8bf717 --- /dev/null +++ b/starlingx-dashboard/centos/build_srpm.data @@ -0,0 +1,2 @@ +SRC_DIR="starlingx-dashboard" +TIS_PATCH_VER=1 \ No newline at end of file diff --git a/starlingx-dashboard/centos/starlingx-dashboard.spec b/starlingx-dashboard/centos/starlingx-dashboard.spec new file mode 100644 index 00000000..5ccdc762 --- /dev/null +++ b/starlingx-dashboard/centos/starlingx-dashboard.spec @@ -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 +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} \ No newline at end of file diff --git a/starlingx-dashboard/starlingx-dashboard/MANIFEST.in b/starlingx-dashboard/starlingx-dashboard/MANIFEST.in new file mode 100644 index 00000000..fa3a790e --- /dev/null +++ b/starlingx-dashboard/starlingx-dashboard/MANIFEST.in @@ -0,0 +1 @@ +recursive-include starlingx_dashboard *.js *.html *.keep \ No newline at end of file diff --git a/starlingx_dashboard/enabled/__init__.py b/starlingx_dashboard/enabled/__init__.py deleted file mode 100644 index e69de29b..00000000