Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:suse-cloud-ci:rpm-packaging-sles15-Victoria-95fd292b9f866ae630dd1b838a53c69c9dd3055b
openstack-monasca-log-api
openstack-monasca-log-api.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-monasca-log-api.spec of Package openstack-monasca-log-api
# # spec file for package openstack-monasca-log-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/ # Name: openstack-monasca-log-api Version: 2.11.0~dev17 Release: 0 Summary: OpenStack Monasca Log Api plugin License: Apache-2.0 Group: Development/Languages/Python URL: https://wiki.openstack.org/wiki/Monasca Source0: monasca-log-api-master.tar.gz Source1: %{name}-wsgi.conf BuildRequires: fdupes BuildRequires: openstack-macros BuildRequires: python3-falcon BuildRequires: python3-fixtures BuildRequires: python3-keystonemiddleware BuildRequires: python3-mock BuildRequires: python3-monasca-common BuildRequires: python3-monasca-statsd BuildRequires: python3-oslo.config BuildRequires: python3-oslo.context BuildRequires: python3-oslo.log BuildRequires: python3-oslo.middleware BuildRequires: python3-oslo.serialization BuildRequires: python3-oslo.utils BuildRequires: python3-oslotest BuildRequires: python3-pbr BuildRequires: python3-simplejson BuildRequires: python3-stestr Requires: python3-monasca-log-api = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: apache2-mod_wsgi-python3 Requires: apache2-mod_wsgi-python3 %else BuildRequires: python3-mod_wsgi Requires: python3-mod_wsgi %endif %description monasca-log-api is a RESTful API server receiving logs from the deployed log agents. %package -n python3-monasca-log-api Summary: OpenStack Monasca Log Api plugin Group: Development/Languages/Python Requires: python3-eventlet Requires: python3-falcon Requires: python3-keystonemiddleware Requires: python3-monasca-common Requires: python3-monasca-statsd Requires: python3-oslo.config Requires: python3-oslo.context Requires: python3-oslo.log Requires: python3-oslo.middleware Requires: python3-oslo.serialization Requires: python3-oslo.utils Requires: python3-pbr BuildArch: noarch %description -n python3-monasca-log-api monasca-log-api is a RESTful API server receiving logs from the deployed log agents. %prep %autosetup -p1 -n monasca-log-api-2.11.0.dev17 %py_req_cleanup %build %py3_build oslo-config-generator \ --config-file config-generator/monasca-log-api.conf \ --output-file etc/monasca/log-api.conf %install %py3_install ## directories install -d -m 755 %{buildroot}%{_sysconfdir}/monasca install -d -m 750 %{buildroot}%{_var}/log/monasca install -d -m 755 %{buildroot}%{_var}/lib/monasca-log-api install -d -m 755 %{buildroot}%{apache_site_dir} ## configuration directory find %{buildroot}%{_prefix}%{_sysconfdir}/ -type f -name 'log-api-*' -print0 | xargs -0 mv -t %{buildroot}%{_sysconfdir}/monasca/ rm -rf %{buildroot}%{_prefix}%{_sysconfdir}/monasca # configuration bits # NOTEtrebskit) file names are hardcoded in monasca-log-api # should be refactored when Bug#1670277 is resolved install -D -m 640 etc/monasca/log-api.conf %{buildroot}%{_sysconfdir}/monasca/log-api.conf install -D -m 640 etc/monasca/log-api-paste.ini %{buildroot}%{_sysconfdir}/monasca/log-api-paste.ini install -D -m 640 etc/monasca/log-api-logging.conf %{buildroot}%{_sysconfdir}/monasca/log-api-logging.conf ## install apache configuration install -p -D -m 640 %{SOURCE1} %{buildroot}%{apache_site_dir}/monasca-log-api.conf.sample sed -e " s|__APACHE_NAME__|%{apache_name}|g; " -i %{buildroot}%{apache_site_dir}/monasca-log-api.conf.sample # there is extra directory /etc/monasca/monasca created, get rid of it rm -rf %{_sysconfdir}/monasca/monasca || true %fdupes %{buildroot}%{python3_sitelib} %check find . -type f -name *.pyc -delete OS_TEST_PATH=./monasca_log_api/tests PYTHONPATH=. python3 -m stestr.cli run %pre %openstack_pre_user_group_create monasca-log-api monasca %postun if [ $1 -eq 0 ] ; then getent passwd monasca-log-api > /dev/null if [ "$?" == "0" ] ; then userdel monasca-log-api fi fi %files %doc README.rst ChangeLog %{_bindir}/monasca-log-api %{_bindir}/monasca-log-api-wsgi %dir %attr(-, root, monasca) %{_sysconfdir}/monasca %dir %attr(0750, root, monasca) %{_var}/log/monasca %dir %attr(0750, monasca-log-api, monasca) %{_var}/lib/monasca-log-api %config(noreplace) %attr(0640, root, monasca) %{_sysconfdir}/monasca/log-api.conf %config(noreplace) %attr(0640, root, monasca) %{_sysconfdir}/monasca/log-api-logging.conf %config(noreplace) %attr(0640, root, monasca) %{_sysconfdir}/monasca/log-api-paste.ini %config(noreplace) %attr(0640, root, monasca) %{apache_site_dir}/monasca-log-api.conf.sample %files -n python3-monasca-log-api %license LICENSE %{python3_sitelib}/monasca_log_api %{python3_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