!1 Add spec and source for networking-baremetal

From: @huangtianhua
Reviewed-by: @joec88
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2021-03-15 11:05:31 +08:00 committed by Gitee
commit dd8ea55504
3 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1,16 @@
[Unit]
Description=OpenStack Ironic Neutron Agent
After=syslog.target network.target
[Service]
Type=simple
User=neutron
PermissionsStartOnly=true
TimeoutStartSec=0
Restart=on-failure
ExecStart=/usr/bin/ironic-neutron-agent --config-dir /etc/neutron --config-file /etc/neutron/plugins/ml2/ironic_neutron_agent.ini --log-file /var/log/neutron/ironic-neutron-agent.log
PrivateTmp=true
KillMode=process
[Install]
WantedBy=multi-user.target

Binary file not shown.

View File

@ -0,0 +1,110 @@
%global _empty_manifest_terminate_build 0
Name: python-networking-baremetal
Version: 3.0.0
Release: 1
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/2f/77/0d03ca4ffcb70deeabb21b04257bb83596826f04f061eb8c5543127c32f1/networking-baremetal-3.0.0.tar.gz
Source1: ironic-neutron-agent.service
BuildArch: noarch
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-utils
Requires: python3-oslo-messaging
Requires: python3-oslo-service
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
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
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%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
* Wed Mar 10 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated