networking-generic-switch/python-networking-generic-switch.spec

114 lines
3.6 KiB
RPMSpec
Raw Normal View History

2021-11-03 15:06:51 +08:00
%global _empty_manifest_terminate_build 0
Name: python-networking-generic-switch
Version: 2.1.0
2021-07-15 14:45:47 +08:00
Release: 1
2021-03-13 07:14:14 +00:00
Summary: Generic Switch ML2 Neutron Driver
2021-11-03 15:06:51 +08:00
License: Apache-2.0
URL: https://github.com/openstack/networking-generic-switch
Source0: https://files.pythonhosted.org/packages/b3/d0/a409be8d504610436d4cbef6bc9b631fe066d68eb1755ae4fe2a726c4ecc/networking-generic-switch-2.1.0.tar.gz
BuildArch: noarch
%description
The Modular Layer 2 (ml2) plugin driver, that allow to work with switches
from different vendors. It uses netmiko library that configures equipment
via SSH.
%package -n python3-networking-generic-switch
Summary: Generic Switch ML2 Neutron Driver
Provides: python-networking-generic-switch
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-stevedore
2021-03-13 07:14:14 +00:00
BuildRequires: python3-netmiko
BuildRequires: python3-neutron
BuildRequires: python3-neutron-lib
BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log
2021-11-03 15:06:51 +08:00
BuildRequires: python3-oslo-utils
2021-03-13 07:14:14 +00:00
BuildRequires: python3-six
BuildRequires: python3-tenacity
BuildRequires: python3-tooz
2021-11-03 15:06:51 +08:00
# General requires
Requires: python3-stevedore
Requires: python3-netmiko
Requires: python3-neutron
Requires: python3-neutron-lib
Requires: python3-oslo-config
Requires: python3-oslo-i18n
Requires: python3-oslo-log
Requires: python3-oslo-utils
Requires: python3-six
Requires: python3-tenacity
Requires: python3-tooz
%description -n python3-networking-generic-switch
The Modular Layer 2 (ml2) plugin driver, that allow to work with switches
from different vendors. It uses netmiko library that configures equipment
via SSH.
2021-03-13 07:14:14 +00:00
2021-11-03 15:06:51 +08:00
%package help
2021-07-15 14:45:47 +08:00
Summary: Generic Switch ML2 Neutron Driver
2021-11-03 15:06:51 +08:00
Provides: python3-networking-generic-switch-doc
%description help
The Modular Layer 2 (ml2) plugin driver, that allow to work with switches
from different vendors. It uses netmiko library that configures equipment
via SSH.
2021-03-13 07:14:14 +00:00
%prep
2021-11-03 15:06:51 +08:00
%autosetup -n networking-generic-switch-%{version}
2021-03-13 07:14:14 +00:00
%build
2021-11-03 15:06:51 +08:00
%py3_build
2021-03-13 07:14:14 +00:00
%install
2021-11-03 15:06:51 +08:00
%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 .
2021-03-13 07:14:14 +00:00
%check
%{__python3} -m stestr.cli run
2021-11-03 15:06:51 +08:00
%files -n python3-networking-generic-switch -f filelist.lst
%dir %{python3_sitelib}/*
2021-03-13 07:14:14 +00:00
2021-11-03 15:06:51 +08:00
%files help -f doclist.lst
%{_docdir}/*
2021-03-13 07:14:14 +00:00
%changelog
2021-11-03 15:06:51 +08:00
* Fri Oct 29 2021 OpenStack_SIG <openstack@openeuler.org> - 2.1.0-1
- downgrade to 2.1.0
2021-07-15 14:45:47 +08:00
* Thu Jul 15 2021 liksh <liks11@chinaunicom.cn> - 5.0.0-1
- update 4.0.1 to 5.0.0
2021-03-15 08:46:37 +00:00
* Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 4.0.1-2
- Add source0 url
2021-03-13 07:14:14 +00:00
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com>
- Initial package