Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Ardana:8:CentOS
openstack-monasca-api
openstack-monasca-api.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-monasca-api.spec of Package openstack-monasca-api
# # spec file for package openstack-monasca-api # # 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/ # %define component monasca-api Name: openstack-monasca-api Version: 2.2.2~dev1 Release: 0 Summary: Monasca REST API License: Apache-2.0 Group: Development/Languages/Python URL: https://wiki.openstack.org/wiki/Monasca Source0: monasca-api-stable-pike.tar.gz Source1: api-config.conf Source2: api-logging.conf Source3: api-config.ini Source4: api-wsgi.conf Source5: api-wsgi.py Patch1: cassandra-527858.patch Patch2: cassandra-auth-533833.patch Patch3: cassandra-statistics-api-end-time-529788.patch BuildRequires: fdupes BuildRequires: openstack-macros BuildRequires: python-PasteDeploy >= 1.5.0 BuildRequires: python-SQLAlchemy >= 1.0.10 BuildRequires: python-cassandra-driver >= 2.1.4 BuildRequires: python-coverage >= 4.0 BuildRequires: python-eventlet >= 0.18.2 BuildRequires: python-falcon >= 1.0.0 BuildRequires: python-fixtures >= 3.0.0 BuildRequires: python-funcsigs >= 0.4 BuildRequires: python-httplib2 >= 0.7.5 BuildRequires: python-influxdb >= 2.9.2 BuildRequires: python-keystoneclient >= 3.8.0 BuildRequires: python-keystonemiddleware >= 4.12.0 BuildRequires: python-mock >= 2.0 BuildRequires: python-monasca-common >= 1.4.0 BuildRequires: python-mox >= 0.5.3 BuildRequires: python-nose BuildRequires: python-oslo.config >= 4.0.0 BuildRequires: python-oslo.context >= 2.14.0 BuildRequires: python-oslo.db >= 4.24.0 BuildRequires: python-oslo.log >= 3.22.0 BuildRequires: python-oslo.middleware >= 3.27.0 BuildRequires: python-oslo.serialization >= 1.10.0 BuildRequires: python-oslo.utils >= 3.20.0 BuildRequires: python-oslotest >= 1.10.0 BuildRequires: python-pbr >= 2.0.0 BuildRequires: python-pyparsing >= 2.1.0 BuildRequires: python-python-subunit >= 0.0.18 BuildRequires: python-simplejson >= 2.2.0 BuildRequires: python-six >= 1.9.0 BuildRequires: python-tempest-lib >= 0.14.0 BuildRequires: python-testrepository >= 0.0.18 BuildRequires: python-testscenarios >= 0.4 BuildRequires: python-testtools >= 1.4.0 BuildRequires: python-voluptuous >= 0.8.9 Requires: python-%{component} = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: apache2-mod_wsgi Requires: apache2-mod_wsgi %else BuildRequires: mod_wsgi Requires: mod_wsgi %endif %description The Monasca API provides a RESTful JSON interface for interacting with and managing monitoring related resources. %package -n python-%{component} Summary: Monasca REST API Group: Development/Languages/Python Requires: python-PasteDeploy >= 1.5.0 Requires: python-SQLAlchemy >= 1.0.10 Requires: python-eventlet >= 0.18.2 Requires: python-falcon >= 1.0.0 Requires: python-influxdb >= 2.9.2 Requires: python-keystoneclient >= 3.8.0 Requires: python-keystonemiddleware >= 4.12.0 Requires: python-monasca-common >= 1.4.0 Requires: python-oslo.config >= 4.0.0 Requires: python-oslo.context >= 2.14.0 Requires: python-oslo.db >= 4.24.0 Requires: python-oslo.log >= 3.22.0 Requires: python-oslo.middleware >= 3.27.0 Requires: python-oslo.serialization >= 1.10.0 Requires: python-oslo.utils >= 3.20.0 Requires: python-pbr >= 2.0.0 Requires: python-pyparsing >= 2.1.0 Requires: python-simplejson >= 2.2.0 Requires: python-six >= 1.9.0 Requires: python-voluptuous >= 0.8.9 BuildArch: noarch %description -n python-%{component} The Monasca API provides a RESTful JSON interface for interacting with and managing monitoring related resources. %prep %autosetup -p 1 -n %{component}-2.2.2.dev1 %py_req_cleanup %build %py2_build %install %py2_install # create all necessary directories install -d -m 755 %{buildroot}%{_usr}/share/%{component}/vertica install -d -m 755 %{buildroot}%{_usr}/share/%{component}/schema install -d -m 755 %{buildroot}%{_sysconfdir}/monasca install -d -m 755 %{buildroot}%{_var}/lib/%{component} install -d -m 755 %{buildroot}%{_var}/log/%{component} install -d -m 755 %{buildroot}%{apache_site_dir} # copy embedded configuration files ## copy configs install -D -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/monasca/api-config.conf install -D -m 640 %{SOURCE2} %{buildroot}%{_sysconfdir}/monasca/api-logging.conf install -D -m 640 %{SOURCE3} %{buildroot}%{_sysconfdir}/monasca/api-config.ini # some files from the devstack dir needed to do basic deployment install -D -m 640 devstack/files/schema/mon_postgresql.sql %{buildroot}%{_usr}/share/%{component}/schema/ install -D -m 640 devstack/files/schema/mon_mysql.sql %{buildroot}%{_usr}/share/%{component}/schema/ install -D -m 640 devstack/files/cassandra/monasca_schema.cql %{buildroot}%{_usr}/share/%{component}/schema/ install -D -m 640 devstack/files/vertica/mon_alarms.sql %{buildroot}%{_usr}/share/%{component}/vertica/ install -D -m 640 devstack/files/vertica/mon_metrics.sql %{buildroot}%{_usr}/share/%{component}/vertica/ install -D -m 640 devstack/files/vertica/users.sql %{buildroot}%{_usr}/share/%{component}/vertica/ install -D -m 640 devstack/files/vertica/roles.sql %{buildroot}%{_usr}/share/%{component}/vertica/ ## install apache configuration install -p -D -m 640 %{SOURCE4} %{buildroot}%{apache_site_dir}/%{component}.conf.sample ## install WSGIScriptAlias install -D -m 755 %{SOURCE5} %{buildroot}%{_bindir}/monasca-api-wsgi.py # remove duplicates %fdupes %{buildroot}%{python2_sitelib}/monasca_api %fdupes %{buildroot}%{python2_sitelib}/monasca_tempest_tests %check find . -type f -name *.pyc -delete OS_TEST_PATH=./monasca_api/tests PYTHONPATH=. ostestr %pre %openstack_pre_user_group_create monasca-api monasca /sbin/nologin %postun if [ $1 -eq 0 ] ; then getent passwd monasca-api > /dev/null if [ "$?" == "0" ] ; then userdel monasca-api fi fi %files %defattr(-, root, root) %{_bindir}/monasca-api %{_bindir}/monasca-api-wsgi.py %dir %attr(-, root, monasca) %{_sysconfdir}/monasca %dir %attr(0750, monasca-api, monasca) %{_var}/lib/%{component} %dir %attr(0750, monasca-api, monasca) %{_var}/log/%{component} %dir %attr(0755, monasca-api, monasca) %{_usr}/share/%{component} %dir %attr(0755, monasca-api, monasca) %{_usr}/share/%{component}/schema %dir %attr(0755, monasca-api, monasca) %{_usr}/share/%{component}/vertica %{_usr}/share/%{component}/schema/* %{_usr}/share/%{component}/vertica/* %config(noreplace) %attr(0640, root, monasca) %{_sysconfdir}/monasca/api-config.conf %config(noreplace) %attr(0640, root, monasca) %{_sysconfdir}/monasca/api-logging.conf %config(noreplace) %attr(0640, root, monasca) %{_sysconfdir}/monasca/api-config.ini %config(noreplace) %attr(0640, root, monasca) %{apache_site_dir}/%{component}.conf.sample %files -n python-%{component} %defattr(-, root, root,-) %license LICENSE %doc README.rst ChangeLog %{python2_sitelib}/monasca_api %{python2_sitelib}/monasca_tempest_tests %{python2_sitelib}/*.egg-info %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