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