openstack-ironic-python-agent/openstack-ironic-python-agent.spec

144 lines
5.0 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: openstack-ironic-python-agent
Version: 5.0.4
Release: 1
Summary: Ironic Python Agent Ramdisk
License: Apache-2.0
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
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.
%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-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-pint
BuildRequires: python3-wsme
BuildRequires: python3-eventlet
BuildRequires: python3-ironic-lib
BuildRequires: python3-iso8601
BuildRequires: python3-netaddr
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-pecan
BuildRequires: python3-psutil
BuildRequires: python3-pyudev
BuildRequires: python3-requests
BuildRequires: python3-rtslib-fb
BuildRequires: python3-six
BuildRequires: python3-stevedore
# General requires
Requires: python3-pint
Requires: python3-wsme
Requires: python3-eventlet
Requires: python3-ironic-lib
Requires: python3-iso8601
Requires: python3-netaddr
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-pecan
Requires: python3-psutil
Requires: python3-pyudev
Requires: python3-requests
Requires: python3-rtslib-fb
Requires: python3-six
Requires: python3-stevedore
%description -n python3-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.
%package help
Summary: Ironic Python Agent Ramdisk
Provides: python3-ironic-python-agent-doc
%description help
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.
%prep
%autosetup -n ironic-python-agent-%{version}
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
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 .
%files -n python3-ironic-python-agent -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%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
- Fix oslo-config requires
* Mon Jul 26 2021 liksh <liks11@chinaunicom.cn> 7.0.1-1
- Update to 7.0.1
* Mon Feb 08 2021 zhaorenhai <zhaorenhai@hotmail.com>
- Package Spec generated from rpm-packaging