LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File openstack-horizon-plugin-sahara-ui.spec of Package openstack-horizon-plugin-sahara-ui (Project Cloud:OpenStack:Master)

# spec file for package openstack-horizon-plugin-sahara-ui
# Copyright (c) 2018 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 http://bugs.opensuse.org/

%define version_unconverted 8.0.1.dev14

Name:           openstack-horizon-plugin-sahara-ui
Version:        8.0.1~dev14
Release:        0
Summary:        Sahara UI Plugin for OpenStack Horizon
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            https://launchpad.net/sahara
Source:         http://tarballs.openstack.org/sahara-dashboard/sahara-dashboard-master.tar.gz
BuildRequires:  fdupes
BuildRequires:  openstack-dashboard
BuildRequires:  openstack-suse-macros
BuildRequires:  openstack-suse-sudo
BuildRequires:  python-base
BuildRequires:  python-pbr
BuildRequires:  python-saharaclient
Requires:       python-horizon-plugin-sahara-ui = %{version}
Requires(post): python-horizon-plugin-sahara-ui = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

OpenStack Sahara management plugin for Horizon.

%package -n python-horizon-plugin-sahara-ui
Summary:        Sahara Management Plugin for Horizon - Python module
Group:          Development/Languages/Python
Requires:       python >= 2.7
Requires:       python-Babel >= 2.3.4
Requires:       python-Django >= 1.8
Requires:       python-designateclient >= 2.7.0
Requires:       python-django_compressor >= 2.0
Requires:       python-django_openstack_auth >= 2.4.0
Requires:       python-iso8601 >= 0.1.11
Requires:       python-keystoneclient >= 3.8.0
Requires:       python-manilaclient >= 1.16.0
Requires:       python-neutronclient >= 6.7.0
Requires:       python-novaclient >= 9.1.0
Requires:       python-pbr >= 2.0.0
Requires:       python-pytz >= 2013.6
Requires:       python-saharaclient >= 1.4.0

%description -n python-horizon-plugin-sahara-ui
OpenStack Sahara management plugin for Horizon.

%package test
Summary:        Sahara Management Plugin for Horizon - Testsuite
Group:          Development/Languages/Python
Requires:       python-Sphinx >= 1.2.1
Requires:       python-ddt >= 1.0.1
Requires:       python-django-nose >= 1.4.4
Requires:       python-mock >= 2.0.0
Requires:       python-mox3 >= 0.20.0
Requires:       python-netifaces >= 0.10.4
Requires:       python-nose-exclude
Requires:       python-oslosphinx >= 4.7.0
Requires:       python-python-subunit >= 1.0.0
Requires:       python-reno >= 2.5.0
Requires:       python-testrepository >= 0.0.18
Requires:       python-testscenarios >= 0.4
Requires:       python-testtools >= 2.2.0

%description test
The Sahara project testsuite

%setup -q -n sahara-dashboard-%{version_unconverted}


python setup.py build

python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}

install -m 0755 -d %{buildroot}/srv/www/openstack-dashboard/openstack_dashboard/enabled/
cp -a sahara_dashboard/enabled/_1810_data_processing_panel_group.py %{buildroot}/srv/www/openstack-dashboard/openstack_dashboard/enabled/
cp -a sahara_dashboard/enabled/_1820_data_processing_clusters_panel.py %{buildroot}/srv/www/openstack-dashboard/openstack_dashboard/enabled/
cp -a sahara_dashboard/enabled/_1830_data_processing_plugins_panel.py %{buildroot}/srv/www/openstack-dashboard/openstack_dashboard/enabled/
cp -a sahara_dashboard/enabled/_1840_data_processing_jobs_panel.py %{buildroot}/srv/www/openstack-dashboard/openstack_dashboard/enabled/

### misc
%fdupes %{buildroot}%{python_sitelib}/sahara_dashboard

su wwwrun -s /bin/sh -c "python /srv/www/openstack-dashboard/manage.py collectstatic --noinput --clear > /dev/null"

su wwwrun -s /bin/sh -c "python /srv/www/openstack-dashboard/manage.py collectstatic --noinput --clear > /dev/null"

%doc ChangeLog README.rst LICENSE

%files -n python-horizon-plugin-sahara-ui
%exclude %{python_sitelib}/sahara_dashboard/test*

%files test