Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Zed
openstack-dashboard
openstack-dashboard.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-dashboard.spec of Package openstack-dashboard
# # spec file for package openstack-dashboard # # Copyright (c) 2023 SUSE LLC # # 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/ # %if 0%{?rhel} || 0%{?fedora} %global rdo 1 %global http_dashboard_dir %{_datarootdir}/openstack-dashboard %else %global http_dashboard_dir /srv/www/openstack-dashboard %endif Name: openstack-dashboard Version: 23.0.1~dev39 Release: 0 Epoch: 0 Summary: OpenStack Dashboard (Horizon) License: Apache-2.0 Group: Development/Languages/Python URL: https://docs.openstack.org/horizon Source0: horizon-stable-zed.tar.gz # https://review.openstack.org/#/c/635159/ Patch0: 0001-Do-not-set-COMPRESS_ENABLED-explicitly.patch BuildRequires: fdupes BuildRequires: gettext BuildRequires: openstack-macros BuildRequires: python3-cinderclient BuildRequires: python3-devel BuildRequires: python3-glanceclient BuildRequires: python3-heatclient BuildRequires: python3-keystoneclient BuildRequires: python3-neutronclient BuildRequires: python3-novaclient BuildRequires: python3-swiftclient BuildRequires: python39-Django BuildRequires: python39-Pint BuildRequires: python39-XStatic BuildRequires: python39-XStatic-Angular BuildRequires: python39-XStatic-Angular-Bootstrap BuildRequires: python39-XStatic-Angular-FileUpload BuildRequires: python39-XStatic-Angular-Gettext BuildRequires: python39-XStatic-Angular-Schema-Form BuildRequires: python39-XStatic-Angular-lrdragndrop BuildRequires: python39-XStatic-Bootstrap-Datepicker BuildRequires: python39-XStatic-Bootstrap-SCSS BuildRequires: python39-XStatic-D3 BuildRequires: python39-XStatic-Font-Awesome BuildRequires: python39-XStatic-Hogan BuildRequires: python39-XStatic-JQuery-Migrate BuildRequires: python39-XStatic-JQuery.TableSorter BuildRequires: python39-XStatic-JQuery.quicksearch BuildRequires: python39-XStatic-JSEncrypt BuildRequires: python39-XStatic-Jasmine BuildRequires: python39-XStatic-Rickshaw BuildRequires: python39-XStatic-Spin BuildRequires: python39-XStatic-bootswatch BuildRequires: python39-XStatic-jQuery BuildRequires: python39-XStatic-jquery-ui BuildRequires: python39-XStatic-mdi BuildRequires: python39-XStatic-objectpath BuildRequires: python39-XStatic-roboto-fontface BuildRequires: python39-XStatic-smart-table BuildRequires: python39-XStatic-term.js BuildRequires: python39-XStatic-tv4 BuildRequires: python39-django-compressor BuildRequires: python39-django-debreach BuildRequires: python39-django-pyscss BuildRequires: python39-netaddr BuildRequires: python39-oslo.concurrency BuildRequires: python39-oslo.policy BuildRequires: python39-osprofiler BuildRequires: python39-pbr BuildRequires: python39-pytest BuildRequires: python39-testtools Requires: python3-horizon = %{epoch}:%{version}-%{release} Requires: python3-openstack_auth = %{epoch}:%{version}-%{release} Provides: openstack-horizon = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: apache2 Requires: apache2 Requires: apache2-mod_wsgi-python3 %endif %if 0%{?rdo} Requires: httpd Requires: python3-mod_wsgi %endif # Apache2 example configuration: %if 0%{?rdo} Source2: openstack-dashboard.conf.sample.rdo %else Source2: openstack-dashboard.conf.sample.suse %endif # To generate a self-signed certificate to be used in demo setups: %if 0%{?suse_version} Requires(post): apache2-utils %endif %if 0%{?rdo} Requires(post): httpd-tools %endif %description The OpenStack dashboard provides administrators and users a graphical interface to access, provision and automate cloud-based resources. The extensible design makes it easy to plug in and expose third party products and services, such as billing, monitoring and additional management tools. The dashboard is just one way to interact with OpenStack resources. Developers can automate access or build tools to manage their resources using the native OpenStack API or the EC2 compatibility API. %package -n python3-horizon Summary: OpenStack Dashboard (Horizon) - Python Module Group: Development/Languages/Python Requires: python3-cinderclient Requires: python3-glanceclient Requires: python3-heatclient Requires: python3-keystoneclient Requires: python3-neutronclient Requires: python3-novaclient Requires: python3-swiftclient Requires: python39-Babel Requires: python39-Django Requires: python39-Pint Requires: python39-PyYAML Requires: python39-XStatic Requires: python39-XStatic-Angular Requires: python39-XStatic-Angular-Bootstrap Requires: python39-XStatic-Angular-FileUpload Requires: python39-XStatic-Angular-Gettext Requires: python39-XStatic-Angular-Schema-Form Requires: python39-XStatic-Angular-lrdragndrop Requires: python39-XStatic-Bootstrap-Datepicker Requires: python39-XStatic-Bootstrap-SCSS Requires: python39-XStatic-D3 Requires: python39-XStatic-Font-Awesome Requires: python39-XStatic-Hogan Requires: python39-XStatic-JQuery-Migrate Requires: python39-XStatic-JQuery.TableSorter Requires: python39-XStatic-JQuery.quicksearch Requires: python39-XStatic-JSEncrypt Requires: python39-XStatic-Jasmine Requires: python39-XStatic-Rickshaw Requires: python39-XStatic-Spin Requires: python39-XStatic-bootswatch Requires: python39-XStatic-jQuery Requires: python39-XStatic-jquery-ui Requires: python39-XStatic-mdi Requires: python39-XStatic-objectpath Requires: python39-XStatic-roboto-fontface Requires: python39-XStatic-smart-table Requires: python39-XStatic-term.js Requires: python39-XStatic-tv4 Requires: python39-django-babel Requires: python39-django-compressor Requires: python39-django-debreach Requires: python39-django-pyscss Requires: python39-futurist Requires: python39-httplib2 Requires: python39-iso8601 Requires: python39-netaddr Requires: python39-oslo.concurrency Requires: python39-oslo.config Requires: python39-oslo.i18n Requires: python39-oslo.policy Requires: python39-oslo.serialization Requires: python39-oslo.utils Requires: python39-osprofiler Requires: python39-pbr Requires: python39-pyScss Requires: python39-pytz Requires: python39-semantic_version Requires: python39-six %description -n python3-horizon The Python module horizon is the core component of the OpenStack dashboard. %package -n python3-openstack_auth Summary: OpenStack Auth (Horizon) - Python Module Group: Development/Languages/Python %description -n python3-openstack_auth The Python module OpenStack Auth provides Authentication mechanism for the OpenStack Dashboard (Horizon). %prep %autosetup -p1 -n horizon-23.0.1.dev39 %py_req_cleanup # Fix manage.py shebang sed -i 's#%{_bindir}/env python#%{_bindir}/python3#' manage.py %build # compile mo files before build pushd horizon python3 ../manage.py compilemessages popd pushd openstack_dashboard python3 ../manage.py compilemessages popd %{py3_build} %check rm horizon/test/unit/hacking/test_checks.py python3 manage.py test horizon --settings=horizon.test.settings # TODO # python3 manage.py test openstack_dashboard --settings=openstack_dashboard.test.settings --exclude-dir=openstack_dashboard/test/integration_tests %install %{py3_install} # Move openstack_dashboard files install -d -m 755 %{buildroot}%{http_dashboard_dir} mv %{buildroot}%{python3_sitelib}/openstack_dashboard/ %{buildroot}%{http_dashboard_dir} install -m 755 manage.py %{buildroot}%{http_dashboard_dir}/manage.py # Create a local_settings.py mv %{buildroot}%{http_dashboard_dir}/openstack_dashboard/local/local_settings.py{.example,} # create root and static files install -m 0755 -d %{buildroot}%{http_dashboard_dir}/static install -m 0755 -d %{buildroot}%{http_dashboard_dir}/media pushd %{buildroot}%{http_dashboard_dir} PYTHONPATH=%{buildroot}%{python3_sitelib} python3 manage.py collectstatic --noinput popd # cleanup after manage.py run rm -v %{buildroot}%{http_dashboard_dir}/openstack_dashboard/local/.secret_key_store rm -v %{buildroot}%{http_dashboard_dir}/openstack_dashboard/local/*secret_key_store* # Remove duplicate files %if 0%{?suse_version} %fdupes %{buildroot}%{python3_sitelib} %fdupes %{buildroot}%{http_dashboard_dir} %endif rm -f %{buildroot}%{http_dashboard_dir}/openstack_dashboard/.eslintrc install -D -m 644 %{SOURCE2} %{buildroot}%{apache_conf_dir}/openstack-dashboard.conf.sample %files %doc README.rst %{http_dashboard_dir} %attr(0750, %{apache_user}, %{apache_group}) %{http_dashboard_dir}/openstack_dashboard/local %attr(0640, %{apache_user}, %{apache_group}) %{http_dashboard_dir}/openstack_dashboard/local/__init__.py* %config(noreplace) %attr(0640, %{apache_user}, %{apache_group}) %{http_dashboard_dir}/openstack_dashboard/local/local_settings.py* %attr(0770, root, %{apache_group}) %{http_dashboard_dir}/static/ %attr(0770, root, %{apache_group}) %{http_dashboard_dir}/media/ %{apache_conf_dir}/openstack-dashboard.conf.sample %files -n python3-horizon %license LICENSE %{python3_sitelib}/horizon %{python3_sitelib}/horizon-*.egg-info %files -n python3-openstack_auth %license LICENSE %{python3_sitelib}/openstack_auth %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor