Update package ironic-python-agent of version 5.0.4
This commit is contained in:
parent
810bb1ad16
commit
884639bfc7
BIN
ironic-python-agent-5.0.4.tar.gz
Normal file
BIN
ironic-python-agent-5.0.4.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,174 +1,137 @@
|
|||||||
%{?!_licensedir:%global license %%doc}
|
%global _empty_manifest_terminate_build 0
|
||||||
%{!?upstream_version: %global upstream_version %{version}}
|
|
||||||
|
|
||||||
%global with_doc 1
|
|
||||||
%global sname ironic-python-agent
|
|
||||||
|
|
||||||
Name: openstack-ironic-python-agent
|
Name: openstack-ironic-python-agent
|
||||||
Summary: A python agent for provisioning and deprovisioning bare metal servers
|
Version: 5.0.4
|
||||||
Version: 7.0.1
|
Release: 1
|
||||||
Release: 2
|
Summary: Ironic Python Agent Ramdisk
|
||||||
License: ASL 2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/openstack/ironic-python-agent
|
URL: https://docs.openstack.org/ironic-python-agent/
|
||||||
|
Source0: https://files.pythonhosted.org/packages/db/a5/82dc9fd11cd69727ed79898222bc279b51d92c1e07a68d9042e6c63dde10/ironic-python-agent-5.0.4.tar.gz
|
||||||
Source0: https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_version}.tar.gz
|
|
||||||
Source1: openstack-ironic-python-agent.service
|
|
||||||
Source2: ironic-python-agent-dist.conf
|
|
||||||
# Required for tarball sources verification
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%description
|
||||||
|
Ironic Python Agent Team and repository tags An agent for controlling and
|
||||||
|
deploying Ironic controlled baremetal nodes.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 allows for greater control
|
||||||
|
and flexibility of the entire deployment process.
|
||||||
|
|
||||||
# Required for tarball sources verification
|
%package -n python3-ironic-python-agent
|
||||||
|
Summary: Ironic Python Agent Ramdisk
|
||||||
|
Provides: python-ironic-python-agent
|
||||||
|
# Base build requires
|
||||||
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-pbr
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-pip
|
||||||
BuildRequires: systemd
|
BuildRequires: python3-wheel
|
||||||
# These packages are required for running unit tests
|
# General requires
|
||||||
BuildRequires: python3-cryptography
|
BuildRequires: python3-pint
|
||||||
|
BuildRequires: python3-wsme
|
||||||
BuildRequires: python3-eventlet
|
BuildRequires: python3-eventlet
|
||||||
BuildRequires: python3-ironic-lib
|
BuildRequires: python3-ironic-lib
|
||||||
BuildRequires: python3-iso8601
|
BuildRequires: python3-iso8601
|
||||||
BuildRequires: python3-mock
|
BuildRequires: python3-netaddr
|
||||||
BuildRequires: python3-oslo-config
|
BuildRequires: python3-netifaces
|
||||||
BuildRequires: python3-oslo-concurrency
|
BuildRequires: python3-oslo-concurrency
|
||||||
|
BuildRequires: python3-oslo-config
|
||||||
BuildRequires: python3-oslo-log
|
BuildRequires: python3-oslo-log
|
||||||
BuildRequires: python3-oslo-serialization
|
BuildRequires: python3-oslo-serialization
|
||||||
BuildRequires: python3-oslo-service
|
BuildRequires: python3-oslo-service
|
||||||
BuildRequires: python3-oslo-utils
|
BuildRequires: python3-oslo-utils
|
||||||
BuildRequires: python3-oslotest
|
|
||||||
BuildRequires: python3-pecan
|
BuildRequires: python3-pecan
|
||||||
BuildRequires: python3-psutil
|
BuildRequires: python3-psutil
|
||||||
BuildRequires: python3-requests
|
|
||||||
BuildRequires: python3-stevedore
|
|
||||||
BuildRequires: python3-werkzeug
|
|
||||||
BuildRequires: openstack-macros
|
|
||||||
BuildRequires: python3-stestr
|
|
||||||
BuildRequires: python3-netifaces
|
|
||||||
BuildRequires: python3-pint
|
|
||||||
BuildRequires: python3-pyudev
|
BuildRequires: python3-pyudev
|
||||||
BuildRequires: python3-rtslib
|
BuildRequires: python3-requests
|
||||||
BuildRequires: python3-tenacity
|
BuildRequires: python3-rtslib-fb
|
||||||
|
BuildRequires: python3-six
|
||||||
Requires: python3-ironic-python-agent = %{version}-%{release}
|
BuildRequires: python3-stevedore
|
||||||
%{?systemd_requires}
|
# General requires
|
||||||
|
Requires: python3-pint
|
||||||
%description
|
Requires: python3-wsme
|
||||||
An agent for controlling and deploying Ironic controlled bare metal nodes.
|
Requires: python3-eventlet
|
||||||
|
Requires: python3-ironic-lib
|
||||||
The ironic-python-agent works with the agent driver in Ironic to provision the
|
Requires: python3-iso8601
|
||||||
node. Starting with ironic-python-agent running on a ramdisk on the
|
Requires: python3-netaddr
|
||||||
unprovisioned node, Ironic makes API calls to ironic-python-agent to provision
|
Requires: python3-netifaces
|
||||||
the machine. This allows for greater control and flexibility of the entire
|
Requires: python3-oslo-concurrency
|
||||||
deployment process.
|
|
||||||
|
|
||||||
The ironic-python-agent may also be used with the original Ironic pxe drivers
|
|
||||||
as of the Kilo OpenStack release.
|
|
||||||
|
|
||||||
%package -n python3-ironic-python-agent
|
|
||||||
Summary: Python library for the ironic python agent.
|
|
||||||
%{?python_provide:%python_provide python3-ironic-python-agent}
|
|
||||||
|
|
||||||
Requires: python3-cryptography >= 2.3
|
|
||||||
Requires: python3-eventlet >= 0.18.2
|
|
||||||
Requires: python3-ironic-lib >= 4.5.0
|
|
||||||
Requires: python3-netifaces >= 0.10.4
|
|
||||||
Requires: python3-oslo-concurrency >= 3.26.0
|
|
||||||
Requires: python3-oslo-config
|
Requires: python3-oslo-config
|
||||||
Requires: python3-oslo-log >= 3.36.0
|
Requires: python3-oslo-log
|
||||||
Requires: python3-oslo-serialization >= 2.18.0
|
Requires: python3-oslo-serialization
|
||||||
Requires: python3-oslo-service >= 1.24.0
|
Requires: python3-oslo-service
|
||||||
Requires: python3-oslo-utils >= 3.33.0
|
Requires: python3-oslo-utils
|
||||||
Requires: python3-pbr >= 2.0.0
|
Requires: python3-pbr
|
||||||
Requires: python3-pint >= 0.5
|
Requires: python3-pecan
|
||||||
Requires: python3-psutil >= 3.2.2
|
Requires: python3-psutil
|
||||||
Requires: python3-pyudev >= 0.18
|
Requires: python3-pyudev
|
||||||
Requires: python3-requests >= 2.14.2
|
Requires: python3-requests
|
||||||
Requires: python3-rtslib >= 2.1.65
|
Requires: python3-rtslib-fb
|
||||||
Requires: python3-stevedore >= 1.20.0
|
Requires: python3-six
|
||||||
Requires: python3-systemd
|
Requires: python3-stevedore
|
||||||
Requires: python3-werkzeug >= 1.0.1
|
|
||||||
Requires: python3-tenacity >= 6.2.0
|
|
||||||
|
|
||||||
Requires: network-scripts
|
|
||||||
|
|
||||||
%description -n python3-ironic-python-agent
|
%description -n python3-ironic-python-agent
|
||||||
Python library for ironic python agent.
|
Ironic Python Agent Team and repository tags An agent for controlling and
|
||||||
|
deploying Ironic controlled baremetal nodes.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 allows for greater control
|
||||||
|
and flexibility of the entire deployment process.
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%package help
|
||||||
%package -n python-ironic-python-agent-doc
|
Summary: Ironic Python Agent Ramdisk
|
||||||
Summary: Documentation for ironic python agent.
|
Provides: python3-ironic-python-agent-doc
|
||||||
BuildRequires: python3-sphinx
|
%description help
|
||||||
BuildRequires: python3-sphinxcontrib-apidoc
|
Ironic Python Agent Team and repository tags An agent for controlling and
|
||||||
BuildRequires: python3-sphinxcontrib-httpdomain
|
deploying Ironic controlled baremetal nodes.The ironic-python-agent works with
|
||||||
BuildRequires: python3-sphinxcontrib-pecanwsme
|
the agent driver in Ironic to provision the node. Starting with ironic-python-
|
||||||
BuildRequires: python3-openstackdocstheme
|
agent running on a ramdisk on the unprovisioned node, Ironic makes API calls to
|
||||||
|
ironic-python-agent to provision the machine. This allows for greater control
|
||||||
%description -n python-ironic-python-agent-doc
|
and flexibility of the entire deployment process.
|
||||||
Documentation for ironic python agent.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -v -p1 -n ironic-python-agent-%{upstream_version}
|
%autosetup -n ironic-python-agent-%{version}
|
||||||
|
|
||||||
# Remove the requirements file so that pbr hooks don't add it
|
|
||||||
# to distutils requires_dist config
|
|
||||||
%py_req_cleanup
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{py3_build}
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{py3_install}
|
%py3_install
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
export PBR_VERSION=%{version}
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
export PYTHONPATH=.
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
sphinx-build -b html -d doc/build/doctrees doc/source doc/build/html
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||||
# Remove build docs leftovers
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
pushd %{buildroot}
|
||||||
%endif
|
if [ -d usr/lib ]; then
|
||||||
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/lib64 ]; then
|
||||||
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/bin ]; then
|
||||||
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
if [ -d usr/sbin ]; then
|
||||||
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||||
|
fi
|
||||||
|
touch doclist.lst
|
||||||
|
if [ -d usr/share/man ]; then
|
||||||
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
mv %{buildroot}/filelist.lst .
|
||||||
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
# install systemd scripts
|
|
||||||
mkdir -p %{buildroot}%{_unitdir}
|
|
||||||
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|
||||||
|
|
||||||
# Install distribution config
|
%files -n python3-ironic-python-agent -f filelist.lst
|
||||||
install -p -D -m 640 %{SOURCE2} %{buildroot}/%{_sysconfdir}/ironic-python-agent/ironic-python-agent-dist.conf
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
%check
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
export PYTHON=%{__python3}
|
|
||||||
stestr --test-path ironic_python_agent/tests/unit run
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc README.rst
|
|
||||||
%license LICENSE
|
|
||||||
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/ironic-python-agent
|
|
||||||
%{_bindir}/ironic-python-agent
|
|
||||||
%{_bindir}/ironic-collect-introspection-data
|
|
||||||
%{_unitdir}/openstack-ironic-python-agent.service
|
|
||||||
|
|
||||||
%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 -n python-ironic-python-agent-doc
|
|
||||||
%doc doc/build/html
|
|
||||||
%license LICENSE
|
|
||||||
%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
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 08 2021 OpenStack_SIG <openstack@openeuler.org> - 5.0.4-1
|
||||||
|
- Downgrade package python3-ironic-python-agent to version 5.0.4
|
||||||
|
|
||||||
* Tue Aug 24 2021 huangtianhua <huangtianhua@huawei.com> 7.0.1-2
|
* Tue Aug 24 2021 huangtianhua <huangtianhua@huawei.com> 7.0.1-2
|
||||||
- Fix oslo-config requires
|
- Fix oslo-config requires
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user