!16 downgrade to 2.1.0

From: @zhangy1317
Reviewed-by: @xiyuanwang
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2021-11-09 11:11:34 +00:00 committed by Gitee
commit 0045e7ed20
3 changed files with 81 additions and 63 deletions

Binary file not shown.

View File

@ -1,95 +1,113 @@
%global common_desc 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.
Name: networking-generic-switch
Version: 5.0.0
%global _empty_manifest_terminate_build 0
Name: python-networking-generic-switch
Version: 2.1.0
Release: 1
Summary: Generic Switch ML2 Neutron Driver
License: ASL 2.0
Group: Development/Languages/Python
URL: https://launchpad.net/networking-generic-switch
Source0: https://files.pythonhosted.org/packages/a1/7a/d3b4143c27c4c29700685273512233665950c4085fefdb4ba6b7464608a2/networking-generic-switch-5.0.0.tar.gz
BuildRequires: fdupes
BuildRequires: openstack-macros
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-db
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log
BuildRequires: python3-oslo-middleware
BuildRequires: python3-oslotest
BuildRequires: python3-oslo-utils
BuildRequires: python3-six
BuildRequires: python3-stestr
BuildRequires: python3-stevedore
BuildRequires: python3-tenacity
BuildRequires: python3-testresources
BuildRequires: python3-testtools
BuildRequires: python3-tooz
Requires: python3-netmiko
Requires: python3-neutron
Requires: python3-oslo-config
Requires: python3-oslo-db
Requires: python3-oslo-i18n
Requires: python3-oslo-log
Requires: python3-oslo-middleware
Requires: python3-six
Requires: python3-stevedore
Requires: python3-tenacity
Requires: python3-tooz
BuildArch: noarch
# 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.
%description
%{common_desc}
%package -n python3-networking_generic_switch
%package help
Summary: Generic Switch ML2 Neutron Driver
%description -n python3-networking_generic_switch
%{common_desc}
%package doc
Summary: Generic Switch ML2 Neutron Driver Doc
Group: Documentation/HTML
BuildRequires: python3-sphinx
BuildRequires: python3-openstackdocstheme
BuildRequires: python3-sphinxcontrib-apidoc
%description doc
Documentation for OpenStack 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
%py_req_cleanup
%autosetup -n networking-generic-switch-%{version}
%build
%{py3_build}
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%py3_build
%install
%{py3_install}
%fdupes %{buildroot}%{python3_sitelib}
%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
%license LICENSE
%doc README.rst
%{python3_sitelib}/networking_generic_switch
%{python3_sitelib}/networking_generic_switch*egg-info
%files -n python3-networking-generic-switch -f filelist.lst
%dir %{python3_sitelib}/*
%files doc
%license LICENSE
%files help -f doclist.lst
%{_docdir}/*
%changelog
* 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