Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:suse-cloud-ci:rpm-packaging-sles15-Master-358a4d20d7d6bec29fb88f58e38d28fc3e7a9a47
openstack-monasca-agent
openstack-monasca-agent.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-monasca-agent.spec of Package openstack-monasca-agent
# # spec file for package openstack-monasca-agent # # Copyright (c) 2024 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 username monasca-agent %define groupname monasca %if 0%{?rhel} || 0%{?fedora} %global rdo 1 %endif Name: openstack-monasca-agent Version: 10.0.1~dev1 Release: 0 Summary: OpenStack Monasca metrics agent License: Apache-2.0 Group: Development/Languages/Python URL: https://wiki.openstack.org/wiki/Monasca Source0: monasca-agent-master.tar.gz Source1: %{name}.sudoers Source2: %{name}.target Source3: %{name}.tmpfiles Source4: %{name}.polkit Source5: %{name}-collector.service Source6: %{name}-forwarder.service Source7: %{name}-statsd.service BuildRequires: fdupes BuildRequires: openstack-macros BuildRequires: python3-PyYAML BuildRequires: python3-eventlet BuildRequires: python3-freezegun BuildRequires: python3-httplib2 BuildRequires: python3-keystoneclient BuildRequires: python3-monasca-common BuildRequires: python3-monascaclient BuildRequires: python3-netaddr BuildRequires: python3-ntplib BuildRequires: python3-oslo.concurrency BuildRequires: python3-oslo.config BuildRequires: python3-oslo.i18n BuildRequires: python3-oslo.middleware BuildRequires: python3-oslo.utils BuildRequires: python3-oslo.vmware BuildRequires: python3-oslotest BuildRequires: python3-psutil BuildRequires: python3-pymongo BuildRequires: python3-python-memcached BuildRequires: python3-redis BuildRequires: python3-requests BuildRequires: python3-stevedore BuildRequires: python3-testrepository BuildRequires: python3-tornado BuildRequires: sudo Requires: python3-monasca-agent = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: systemd-rpm-macros %{?systemd_requires} %else BuildRequires: systemd Requires(post): systemd Requires(postun): systemd Requires(preun): systemd %endif %description The Monasca Agent is a modern Python monitoring agent for gathering metrics and sending them to the Monasca API. %package -n python3-monasca-agent Summary: Python module for monasca-agent Group: Development/Languages/Python Requires: python3-PyYAML Requires: python3-eventlet Requires: python3-httplib2 Requires: python3-keystoneauth1 Requires: python3-keystoneclient Requires: python3-monasca-common Requires: python3-monascaclient Requires: python3-netaddr Requires: python3-neutronclient Requires: python3-novaclient Requires: python3-ntplib Requires: python3-oslo.concurrency Requires: python3-oslo.config Requires: python3-oslo.i18n Requires: python3-oslo.utils Requires: python3-oslo.vmware Requires: python3-psutil Requires: python3-pymongo Requires: python3-python-memcached Requires: python3-redis Requires: python3-requests Requires: python3-six Requires: python3-stevedore # FIXME(jpena): Remove this conditional once python-toml is available in RDO %if 0%{?rdo} Requires: python3-tornado %else Requires: python3-toml Requires: python3-tornado %endif %description -n python3-monasca-agent The Monasca Agent is a modern Python monitoring agent for gathering metrics and sending them to the Monasca API. This package contains monasca-agent Python module. %prep %autosetup -p1 -n monasca-agent-10.0.1.dev1 %py_req_cleanup # contains various binary files etc that we don't need rm -rf packaging/monasca-agent{,-deb} %build %{py3_build} %install %{py3_install} # /etc install -d -m 755 %{buildroot}%{_sysconfdir}/monasca install -d -m 750 %{buildroot}%{_sysconfdir}/monasca/agent/conf.d # /usr/lib install -d -m 755 %{buildroot}%{_prefix}/lib/monasca/agent/custom_checks.d install -d -m 755 %{buildroot}%{_prefix}/lib/monasca/agent/custom_detect.d # /var install -d -m 750 %{buildroot}%{_localstatedir}/log/monasca-agent # sudoers configuration install -D -m 440 %{SOURCE1} %{buildroot}%{_sysconfdir}/sudoers.d/%{name} # systemd unit file install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.target install -D -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}-collector.service install -D -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}-forwarder.service install -D -m 644 %{SOURCE7} %{buildroot}%{_unitdir}/%{name}-statsd.service %if 0%{?suse_version} mkdir -p %{buildroot}%{_sbindir} ln -sr %{buildroot}%{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %endif # systemd tmpfile install -D -m 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/openstack-monasca-agent.conf # polkit permissions install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/polkit-1/rules.d/49-monasca-agent.rules %fdupes %{buildroot}%{python3_sitelib} %pre # create user and groups %openstack_pre_user_group_create %{username} %{groupname} %post %tmpfiles_create %{_tmpfilesdir}/openstack-monasca-agent.conf %systemd_post %{name}.target %systemd_post %{name}-collector.service %systemd_post %{name}-forwarder.service %systemd_post %{name}-statsd.service %preun %systemd_preun %{name}.target %systemd_preun %{name}-collector.service %systemd_preun %{name}-forwarder.service %systemd_preun %{name}-statsd.service %postun %systemd_postun %{name}.target %systemd_postun %{name}-collector.service %systemd_postun %{name}-forwarder.service %systemd_postun %{name}-statsd.service %check find . -type f -name *.pyc -delete find . -type f -name '*test_service_plugin.py' -delete %{openstack_stestr_run} %files %dir %attr(-, root, monasca) %{_sysconfdir}/monasca %dir %attr(0750, %{username}, %{groupname}) %{_sysconfdir}/monasca/agent %dir %attr(0750, %{username}, %{groupname}) %{_sysconfdir}/monasca/agent/conf.d %dir %attr(0755, root, root) %{_prefix}/lib/monasca/agent/custom_checks.d %dir %attr(0755, root, root) %{_prefix}/lib/monasca/agent/custom_detect.d %_tmpfilesdir/openstack-monasca-agent.conf %config %{_sysconfdir}/monasca/agent %config %{_sysconfdir}/sudoers.d/%{name} %dir %{_prefix}/lib/monasca %{_prefix}/lib/monasca/agent %dir %attr(0750, %{username}, %{groupname}) %{_localstatedir}/log/monasca-agent %{_unitdir}/%{name}.target %{_unitdir}/%{name}-collector.service %{_unitdir}/%{name}-forwarder.service %{_unitdir}/%{name}-statsd.service %if 0%{?suse_version} %{_sbindir}/rc%{name} %endif %{_sysconfdir}/polkit-1/ %{_sysconfdir}/polkit-1/rules.d/ %{_sysconfdir}/polkit-1/rules.d/49-monasca-agent.rules %files -n python3-monasca-agent %doc README.rst %license LICENSE %{_bindir}/monasca-collector %{_bindir}/monasca-forwarder %{_bindir}/monasca-setup %{_bindir}/monasca-statsd %{python3_sitelib}/monasca_agent %{python3_sitelib}/monasca_agent-*.egg-info %{python3_sitelib}/monasca_setup %dir %{_datadir}/monasca %{_datadir}/monasca/agent %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