Compare commits
10 Commits
5e22787f02
...
5133cb561e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5133cb561e | ||
|
|
208381f831 | ||
|
|
0045e7ed20 | ||
|
|
5b187c8399 | ||
|
|
bbe36bac5f | ||
|
|
4421780bdb | ||
|
|
a9826b5dde | ||
|
|
9f84a16615 | ||
|
|
786bb39aa8 | ||
|
|
8e8ab030bd |
BIN
networking-generic-switch-2.1.0.tar.gz
Normal file
BIN
networking-generic-switch-2.1.0.tar.gz
Normal file
Binary file not shown.
117
python-networking-generic-switch.spec
Normal file
117
python-networking-generic-switch.spec
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
Name: python-networking-generic-switch
|
||||||
|
Version: 2.1.0
|
||||||
|
Release: 2
|
||||||
|
Summary: Generic Switch ML2 Neutron Driver
|
||||||
|
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
|
||||||
|
BuildRequires: python3-netmiko
|
||||||
|
BuildRequires: python3-neutron
|
||||||
|
BuildRequires: python3-neutron-lib
|
||||||
|
BuildRequires: python3-oslo-config
|
||||||
|
BuildRequires: python3-oslo-i18n
|
||||||
|
BuildRequires: python3-oslo-log
|
||||||
|
BuildRequires: python3-oslo-utils
|
||||||
|
BuildRequires: python3-six
|
||||||
|
BuildRequires: python3-tenacity
|
||||||
|
BuildRequires: python3-tooz
|
||||||
|
BuildRequires: python3-os-xenapi
|
||||||
|
# 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-os-xenapi
|
||||||
|
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.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Generic Switch ML2 Neutron Driver
|
||||||
|
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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n networking-generic-switch-%{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 .
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} -m stestr.cli run
|
||||||
|
|
||||||
|
%files -n python3-networking-generic-switch -f filelist.lst
|
||||||
|
%dir %{python3_sitelib}/*
|
||||||
|
|
||||||
|
%files help -f doclist.lst
|
||||||
|
%{_docdir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Nov 15 2021 wangxiyuan <wangxiyuan1007@gmail.com> - 2.1.0-2
|
||||||
|
- Fix build issue
|
||||||
|
* Fri Oct 29 2021 OpenStack_SIG <openstack@openeuler.org> - 2.1.0-1
|
||||||
|
- downgrade to 2.1.0
|
||||||
|
* Thu Jul 15 2021 liksh <liks11@chinaunicom.cn> - 5.0.0-1
|
||||||
|
- update 4.0.1 to 5.0.0
|
||||||
|
* Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 4.0.1-2
|
||||||
|
- Add source0 url
|
||||||
|
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com>
|
||||||
|
- Initial package
|
||||||
Loading…
x
Reference in New Issue
Block a user