downgrade to 2.1.0

This commit is contained in:
zhangy1317 2021-11-03 15:06:51 +08:00
parent bbe36bac5f
commit 5b187c8399
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 \ %global _empty_manifest_terminate_build 0
with switches from different vendors. It uses netmiko library \ Name: python-networking-generic-switch
that configures equipment via SSH. Version: 2.1.0
Name: networking-generic-switch
Version: 5.0.0
Release: 1 Release: 1
Summary: Generic Switch ML2 Neutron Driver Summary: Generic Switch ML2 Neutron Driver
License: ASL 2.0 License: Apache-2.0
Group: Development/Languages/Python URL: https://github.com/openstack/networking-generic-switch
URL: https://launchpad.net/networking-generic-switch Source0: https://files.pythonhosted.org/packages/b3/d0/a409be8d504610436d4cbef6bc9b631fe066d68eb1755ae4fe2a726c4ecc/networking-generic-switch-2.1.0.tar.gz
Source0: https://files.pythonhosted.org/packages/a1/7a/d3b4143c27c4c29700685273512233665950c4085fefdb4ba6b7464608a2/networking-generic-switch-5.0.0.tar.gz BuildArch: noarch
BuildRequires: fdupes %description
BuildRequires: openstack-macros 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-netmiko
BuildRequires: python3-neutron BuildRequires: python3-neutron
BuildRequires: python3-neutron-lib BuildRequires: python3-neutron-lib
BuildRequires: python3-oslo-config BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-db
BuildRequires: python3-oslo-i18n BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log BuildRequires: python3-oslo-log
BuildRequires: python3-oslo-middleware BuildRequires: python3-oslo-utils
BuildRequires: python3-oslotest
BuildRequires: python3-six BuildRequires: python3-six
BuildRequires: python3-stestr
BuildRequires: python3-stevedore
BuildRequires: python3-tenacity BuildRequires: python3-tenacity
BuildRequires: python3-testresources
BuildRequires: python3-testtools
BuildRequires: python3-tooz BuildRequires: python3-tooz
Requires: python3-netmiko # General requires
Requires: python3-neutron Requires: python3-stevedore
Requires: python3-oslo-config Requires: python3-netmiko
Requires: python3-oslo-db Requires: python3-neutron
Requires: python3-oslo-i18n Requires: python3-neutron-lib
Requires: python3-oslo-log Requires: python3-oslo-config
Requires: python3-oslo-middleware Requires: python3-oslo-i18n
Requires: python3-six Requires: python3-oslo-log
Requires: python3-stevedore Requires: python3-oslo-utils
Requires: python3-tenacity Requires: python3-six
Requires: python3-tooz Requires: python3-tenacity
BuildArch: noarch 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 %package help
%{common_desc}
%package -n python3-networking_generic_switch
Summary: Generic Switch ML2 Neutron Driver Summary: Generic Switch ML2 Neutron Driver
Provides: python3-networking-generic-switch-doc
%description -n python3-networking_generic_switch %description help
%{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
%package doc via SSH.
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.
%prep %prep
%autosetup %autosetup -n networking-generic-switch-%{version}
%py_req_cleanup
%build %build
%{py3_build} %py3_build
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install %install
%{py3_install} %py3_install
%fdupes %{buildroot}%{python3_sitelib}
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 %check
%{__python3} -m stestr.cli run %{__python3} -m stestr.cli run
%files -n python3-networking_generic_switch %files -n python3-networking-generic-switch -f filelist.lst
%license LICENSE %dir %{python3_sitelib}/*
%doc README.rst
%{python3_sitelib}/networking_generic_switch
%{python3_sitelib}/networking_generic_switch*egg-info
%files doc %files help -f doclist.lst
%license LICENSE %{_docdir}/*
%changelog %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 * Thu Jul 15 2021 liksh <liks11@chinaunicom.cn> - 5.0.0-1
- update 4.0.1 to 5.0.0 - update 4.0.1 to 5.0.0
* Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 4.0.1-2 * Mon Mar 15 2021 zhaorenhai <zhaorenhai@hotmail.com> - 4.0.1-2
- Add source0 url - Add source0 url
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com> * Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com>
- Initial package - Initial package