diff --git a/networking-generic-switch-1.2.0.tar.gz b/networking-generic-switch-1.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..36fe12b55f6f81cd69034d7a8161323c699cb06c Binary files /dev/null and b/networking-generic-switch-1.2.0.tar.gz differ diff --git a/networking-generic-switch-stable-victoria.tar.gz b/networking-generic-switch-stable-victoria.tar.gz deleted file mode 100644 index af492e99cf631164ed388a2fa74774f991050995..0000000000000000000000000000000000000000 Binary files a/networking-generic-switch-stable-victoria.tar.gz and /dev/null differ diff --git a/python-networking-generic-switch.spec b/python-networking-generic-switch.spec index 7554fbe83230f9e2ca5a4408b8ecb322ddd85301..0bbdada73caaf97df28810c603f365ceea73c5b3 100644 --- a/python-networking-generic-switch.spec +++ b/python-networking-generic-switch.spec @@ -1,92 +1,82 @@ -Name: python3-networking-generic-switch -Version: 4.0.1 -Release: 2 -Summary: Generic Switch ML2 Neutron Driver -License: ASL 2.0 -Group: Development/Languages/Python -URL: https://launchpad.net/networking-generic-switch -Source0: https://tarballs.openstack.org/networking-generic-switch/networking-generic-switch-stable-victoria.tar.gz -BuildRequires: fdupes -BuildRequires: openstack-macros -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-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 +%global _empty_manifest_terminate_build 0 +Name: python-networking-generic-switch +Version: 1.2.0 +Release: 2 +Summary: Generic Switch ML2 Neutron Driver +License: MPL 2.0 and GPL-2.0 and LGPL-2.1 and Apache-2.0 +URL: https://github.com/openstack/networking-generic-switch +Source0: https://files.pythonhosted.org/packages/b8/08/3cff2197f89abe86f81fd07e51d743836359e0437bc515b3afe7aa15857b/networking-generic-switch-1.2.0.tar.gz +BuildArch: noarch + +Requires: python2-stevedore +Requires: python2-netmiko +Requires: python2-neutron +Requires: python2-neutron-lib +Requires: python2-six +Requires: python2-tenacity +Requires: python2-tooz %description -This is a Modular Layer 2 `Neutron Mechanism driver -`_. The mechanism driver is -responsible for applying configuration information to hardware equipment. -``GenericSwitch`` provides a pluggable framework to implement -functionality required for use-cases like OpenStack Ironic multi-tenancy mode. -It abstracts applying changes to all switches managed by this ML2 plugin -and handling ``local_link_information`` field of Neutron port. -%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. +%package -n python2-networking-generic-switch +Summary: Generic Switch ML2 Neutron Driver +Provides: python2-networking-generic-switch +BuildRequires: python2-pbr +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%description -n python2-networking-generic-switch + + +%package help +Summary: Development documents and examples for networking-generic-switch +Provides: python2-networking-generic-switch-doc +%description help + %prep -%autosetup -p1 -n networking-generic-switch-4.0.1.dev4 -%py_req_cleanup +%autosetup -n networking-generic-switch-1.2.0 +rm -f requirements.txt %build -%{py3_build} - -PBR_VERSION=4.0.1.dev4 sphinx-build -b html doc/source doc/build/html -# remove the sphinx-build leftovers -rm -rf doc/build/html/.{doctrees,buildinfo} +%py2_build %install -%{py3_install} -%fdupes %{buildroot}%{python3_sitelib} - -%check -%{__python3} -m stestr.cli run +%py2_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 . -%files -%license LICENSE -%doc README.rst -%{python3_sitelib}/networking_generic_switch -%{python3_sitelib}/networking_generic_switch*egg-info +%files -n python2-networking-generic-switch -f filelist.lst +%dir %{python2_sitelib}/* -%files doc -%license LICENSE -%doc doc/build/html +%files help -f doclist.lst +%{_docdir}/* %changelog -* Mon Mar 15 2021 zhaorenhai - 4.0.1-2 -- Add source0 url - -* Sat Mar 13 2021 zhaorenhai -- Initial package +* Wed Jun 2 2021 huangtianhua +- Adds BuildRequires python2-pbr to make obs success +* Mon May 17 2021 Python_Bot +- Package Spec generated