networking-baremetal/python-networking-baremetal.spec
2021-08-19 12:52:46 +08:00

135 lines
4.3 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-networking-baremetal
Version: 4.0.0
Release: 2
Summary: Neutron plugin that provides deep Ironic/Neutron integration.
License: ASL 2.0
URL: https://docs.openstack.org/networking-baremetal/latest/
Source0: https://files.pythonhosted.org/packages/0d/af/94c8cadf4e26457f6e44fa025c151569d6cff5a2ab42b01927420d3beb78/networking-baremetal-4.0.0.tar.gz
Source1: ironic-neutron-agent.service
BuildArch: noarch
%description
This project's goal is to provide deep integration between the Networking
service and the Bare Metal service and advanced networking features like
notifications of port status changes and routed networks support in clouds
with Bare Metal service.
%package -n python3-networking-baremetal
Summary: Neutron plugin that provides deep Ironic/Neutron integration.
Provides: python-networking-baremetal
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-keystoneauth1
BuildRequires: python3-neutron-lib
BuildRequires: python3-neutron
BuildRequires: python3-openstacksdk
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log
BuildRequires: python3-oslo-messaging
BuildRequires: python3-oslo-service
BuildRequires: python3-oslo-utils
BuildRequires: python3-tenacity
BuildRequires: python3-tooz
BuildRequires: python3-pip
# General requires
Requires: python3-keystoneauth1
Requires: python3-neutron-lib
Requires: python3-neutron
Requires: python3-openstacksdk
Requires: python3-oslo-config
Requires: python3-oslo-i18n
Requires: python3-oslo-log
Requires: python3-oslo-messaging
Requires: python3-oslo-service
Requires: python3-oslo-utils
Requires: python3-pbr
Requires: python3-tenacity
Requires: python3-tooz
BuildRequires: systemd
Requires(post): systemd
Requires(postun): systemd
Requires(pre): shadow-utils
Requires(preun): systemd
%description -n python3-networking-baremetal
This project's goal is to provide deep integration between the Networking
service and the Bare Metal service and advanced networking features like
notifications of port status changes and routed networks support in clouds
with Bare Metal service.
%package help
Summary: Development documents and examples for networking-baremetal
Provides: python3-networking-baremetal-doc
%description help
This project's goal is to provide deep integration between the Networking
service and the Bare Metal service and advanced networking features like
notifications of port status changes and routed networks support in clouds
with Bare Metal service.
%prep
%autosetup -n networking-baremetal-%{version}
%build
%py3_build
%install
%py3_install
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/ironic-neutron-agent.service
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 .
%post
%systemd_post ironic-neutron-agent.service
%preun
%systemd_preun ironic-neutron-agent.service
%postun
%systemd_postun ironic-neutron-agent.service
%files -n python3-networking-baremetal -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Thu Aug 19 liksh <liks11@chinaunicom.cn> 4.0.0-1
- update from 3.0.0 to 4.0.0
* Sat Jul 31 2021 huangtianhua <huangtianhua@huawei.com>
- Fix requires position and add pbr buildrequires
* Wed Mar 10 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated