Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:suse-cloud-ci:rpm-packaging-sles15-Master-98c656e3c97694c9cfae0c9969bf66edbab60391
openstack-masakari
openstack-masakari.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-masakari.spec of Package openstack-masakari
# # spec file for package openstack-masakari # # 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/ # %global with_doc 1 Name: openstack-masakari Version: 18.1.0~dev4 Release: 0 Summary: Virtual Machine High Availability (VMHA) service for OpenStack License: Apache-2.0 Group: Development/Languages/Python URL: https://docs.openstack.org/masakari Source0: masakari-master.tar.gz Source1: openstack-masakari-api.service Source2: openstack-masakari-engine.service Source3: openstack-masakari.tmpfiles BuildRequires: openstack-macros BuildRequires: python3-SQLAlchemy-Utils BuildRequires: python3-ddt BuildRequires: python3-eventlet BuildRequires: python3-keystoneauth1 BuildRequires: python3-keystonemiddleware BuildRequires: python3-microversion_parse BuildRequires: python3-novaclient BuildRequires: python3-oslo.db BuildRequires: python3-oslo.messaging BuildRequires: python3-oslo.middleware BuildRequires: python3-oslo.policy BuildRequires: python3-oslo.service BuildRequires: python3-oslo.upgradecheck BuildRequires: python3-oslo.versionedobjects BuildRequires: python3-oslotest BuildRequires: python3-python-subunit BuildRequires: python3-requests-mock BuildRequires: python3-stestr BuildRequires: python3-taskflow Requires: python3-masakari = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: systemd-rpm-macros Requires(pre): pwdutils %else BuildRequires: systemd Requires(post): systemd Requires(postun): systemd Requires(pre): shadow-utils Requires(preun): systemd %endif %description Masakari is a service providing high availability for VMs in OpenStack. %if 0%{?with_doc} %package doc Summary: Documentation for OpenStack Masakari Service BuildRequires: python3-Sphinx BuildRequires: python3-openstackdocstheme %description doc Masakari is a service providing high availability for VMs in OpenStack. This package contains the documentation. %endif %package -n python3-masakari Summary: Masakari Python libraries Requires: python3-Babel Requires: python3-SQLAlchemy-Utils Requires: python3-iso8601 Requires: python3-jsonschema Requires: python3-keystoneauth1 Requires: python3-keystonemiddleware Requires: python3-microversion_parse Requires: python3-novaclient Requires: python3-oslo.config Requires: python3-oslo.db Requires: python3-oslo.i18n Requires: python3-oslo.log Requires: python3-oslo.messaging Requires: python3-oslo.middleware Requires: python3-oslo.policy Requires: python3-oslo.service Requires: python3-oslo.upgradecheck Requires: python3-oslo.utils Requires: python3-oslo.versionedobjects Requires: python3-pbr Requires: python3-six Requires: python3-stevedore Requires: python3-taskflow %description -n python3-masakari Masakari is a service providing high availability for VMs in OpenStack. This package contains the Python libraries. %package api Summary: OpenStack Masakari API service Requires: %{name} = %{version}-%{release} %description api Masakari is a service providing high availability for VMs in OpenStack. This package contains the REST API. %package engine Summary: OpenStack Masakari Engine service Requires: %{name} = %{version}-%{release} %description engine Masakari is a service providing high availability for VMs in OpenStack. This package contains the masakari engine, which is one of core services of masakari. %prep %autosetup -p1 -n masakari-18.1.0.dev4 %py_req_cleanup %build %{py3_build} export PYTHONPATH="." # from tox.ini's testenv:genconfig oslo-config-generator --config-file etc/masakari/masakari-config-generator.conf oslopolicy-sample-generator --config-file etc/masakari/masakari-policy-generator.conf %if 0%{?with_doc} PBR_VERSION=18.1.0.dev4 %sphinx_build -b html doc/source doc/build/html # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %{py3_install} mkdir -p %{buildroot}%{_sysconfdir}/masakari/ mkdir -p %{buildroot}%{_localstatedir}/log/masakari #systemd unitfiles install -p -D -m 644 %SOURCE1 %{buildroot}%{_unitdir}/openstack-masakari-api.service install -p -D -m 644 %SOURCE2 %{buildroot}%{_unitdir}/openstack-masakari-engine.service install -p -D -m 644 %SOURCE3 %{buildroot}/%{_tmpfilesdir}/%{name}.conf install -p -D -m 640 etc/masakari/masakari.conf.sample %{buildroot}%{_sysconfdir}/masakari/masakari.conf install -p -D -m 640 etc/masakari/api-paste.ini %{buildroot}%{_sysconfdir}/masakari/api-paste.ini install -p -D -m 640 etc/masakari/policy.yaml.sample %{buildroot}%{_sysconfdir}/masakari/policy.yaml chmod +x %{buildroot}%{_bindir}/masakari* # remove usr/etc rm -rf %{buildroot}%{_prefix}%{_sysconfdir}/ %pre %openstack_pre_user_group_create masakari masakari %post %tmpfiles_create %{_tmpfilesdir}/%{name}.conf %check # we don't want to check hacking rules rm masakari/tests/unit/test_hacking.py %{openstack_stestr_run} %post api %systemd_post openstack-masakari-api.service %preun api %systemd_preun openstack-masakari-api.service %postun api %systemd_postun_with_restart openstack-masakari-api.service %post engine %systemd_post openstack-masakari-engine.service %preun engine %systemd_preun openstack-masakari-engine.service %postun engine %systemd_postun_with_restart openstack-masakari-engine.service %files %license LICENSE %dir %{_sysconfdir}/masakari %config(noreplace) %attr(0640, root, masakari) %{_sysconfdir}/masakari/* %dir %attr(750, masakari, masakari) %{_localstatedir}/log/masakari %_tmpfilesdir/%{name}.conf %{_bindir}/masakari-manage %{_bindir}/masakari-status %files api %{_bindir}/masakari-api %{_bindir}/masakari-wsgi %{_unitdir}/openstack-masakari-api.service %files engine %{_bindir}/masakari-engine %{_unitdir}/openstack-masakari-engine.service %if 0%{?with_doc} %files doc %license LICENSE %doc doc/build/html %endif %files -n python3-masakari %{python3_sitelib}/masakari* %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