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-ironic-python-agent
openstack-ironic-python-agent.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openstack-ironic-python-agent.spec of Package openstack-ironic-python-agent
# # spec file for package openstack-ironic-python-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/ # %global with_doc 1 Name: openstack-ironic-python-agent Version: 9.15.0~dev9 Release: 0 Summary: Ironic Python Agent Ramdisk License: Apache-2.0 URL: https://docs.openstack.org/ironic-python-agent Source0: ironic-python-agent-master.tar.gz Source1: openstack-ironic-python-agent.defaultconf Source20: openstack-ironic-python-agent.service BuildRequires: openstack-macros BuildRequires: python3-Pint BuildRequires: python3-Werkzeug BuildRequires: python3-cryptography BuildRequires: python3-eventlet BuildRequires: python3-ironic-lib BuildRequires: python3-netifaces BuildRequires: python3-oslo.concurrency BuildRequires: python3-oslo.config BuildRequires: python3-oslo.log BuildRequires: python3-oslo.serialization BuildRequires: python3-oslo.service BuildRequires: python3-oslo.utils BuildRequires: python3-oslotest BuildRequires: python3-pbr BuildRequires: python3-psutil BuildRequires: python3-pyudev BuildRequires: python3-requests BuildRequires: python3-rtslib-fb BuildRequires: python3-stestr BuildRequires: python3-stevedore BuildRequires: python3-tenacity BuildRequires: python3-tooz Requires: python3-ironic-python-agent = %{version}-%{release} BuildArch: noarch %if 0%{?suse_version} BuildRequires: systemd-rpm-macros %{?systemd_requires} %if 0%{?suse_version} > 1600 BuildRequires: qemu-img %else BuildRequires: qemu-tools %endif %else BuildRequires: systemd Requires(post): systemd Requires(postun): systemd Requires(preun): systemd %endif %description The ironic-python-agent works with the agent driver in Ironic to provision the node. Starting with ironic-python-agent running on a ramdisk on the unprovisioned node, Ironic makes API calls to ironic-python-agent to provision the machine. %package -n python3-ironic-python-agent Summary: Ironic Python Agent Ramdisk - Python module Group: Development/Languages/Python Requires: python3-Pint Requires: python3-Werkzeug Requires: python3-cryptography Requires: python3-eventlet Requires: python3-ironic-lib Requires: python3-netifaces Requires: python3-oslo.concurrency Requires: python3-oslo.config Requires: python3-oslo.log Requires: python3-oslo.serialization Requires: python3-oslo.service Requires: python3-oslo.utils Requires: python3-pbr Requires: python3-psutil Requires: python3-pyudev Requires: python3-requests Requires: python3-rtslib-fb Requires: python3-stevedore Requires: python3-tenacity Requires: python3-tooz %description -n python3-ironic-python-agent The ironic-python-agent works with the agent driver in Ironic to provision the node. Starting with ironic-python-agent running on a ramdisk on the unprovisioned node, Ironic makes API calls to ironic-python-agent to provision the machine. This package contains the Python module. %if 0%{?with_doc} %package doc Summary: Ironic Python Agent Ramdisk - Documentation Group: Documentation/HTML BuildRequires: python3-Sphinx BuildRequires: python3-openstackdocstheme BuildRequires: python3-sphinxcontrib-apidoc BuildRequires: python3-sphinxcontrib-httpdomain BuildRequires: python3-sphinxcontrib-pecanwsme %description doc The ironic-python-agent works with the agent driver in Ironic to provision the node. Starting with ironic-python-agent running on a ramdisk on the unprovisioned node, Ironic makes API calls to ironic-python-agent to provision the machine. This package contains the documentation. %endif %prep %autosetup -p1 -n ironic-python-agent-9.15.0.dev9 %py_req_cleanup %build %{py3_build} # config file generation mkdir -p etc/ironic_python_agent PYTHONPATH=. oslo-config-generator --config-file=tools/config/ipa-config-generator.conf # build documentation %if 0%{?with_doc} PBR_VERSION=9.15.0.dev9 %sphinx_build -b html doc/source doc/build/html rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %{py3_install} # Setup directories install -d -m 750 %{buildroot}%{_localstatedir}/{lib,log,cache}/ironic-python-agent install -d -m 755 %{buildroot}%{_sysconfdir}/ironic-python-agent install -d -m 755 %{buildroot}%{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d # install config files install -p -D -m 644 etc/ironic_python_agent/ironic_python_agent.conf.sample %{buildroot}%{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf install -p -D -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d/010-ironic-python-agent.conf # install systemd service files install -p -D -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/openstack-ironic-python-agent.service # install symlinks on SUSE %if 0%{?suse_version} mkdir -p %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %endif %post %systemd_post openstack-ironic-python-agent.service %preun %systemd_preun openstack-ironic-python-agent.service %postun %systemd_postun_with_restart openstack-ironic-python-agent.service %check stestr --test-path ironic_python_agent/tests/unit run %files %license LICENSE %dir %attr(0750, root, root) %{_sysconfdir}/ironic-python-agent %dir %attr(0750, root, root) %{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d %config(noreplace) %attr(0640, root, root) %{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf %config(noreplace) %attr(0640, root, root) %{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d/010-ironic-python-agent.conf %{_bindir}/ironic-python-agent %{_bindir}/ironic-collect-introspection-data %{_unitdir}/openstack-ironic-python-agent.service %if 0%{?suse_version} %{_sbindir}/rc%{name} %endif %files -n python3-ironic-python-agent %license LICENSE %{python3_sitelib}/ironic_python_agent %{python3_sitelib}/ironic_python_agent-*.egg-info %if 0%{?with_doc} %files doc %license LICENSE %doc doc/build/html %endif %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