Init spec and package
This commit is contained in:
parent
5e22787f02
commit
8e8ab030bd
BIN
networking-generic-switch-stable-victoria.tar.gz
Normal file
BIN
networking-generic-switch-stable-victoria.tar.gz
Normal file
Binary file not shown.
89
python-networking-generic-switch.spec
Normal file
89
python-networking-generic-switch.spec
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
Name: python3-networking-generic-switch
|
||||||
|
Version: 4.0.1
|
||||||
|
Release: 0.0.dev4%{?dist}
|
||||||
|
Summary: Generic Switch ML2 Neutron Driver
|
||||||
|
License: ASL 2.0
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
URL: https://launchpad.net/networking-generic-switch
|
||||||
|
Source0: 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
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a Modular Layer 2 `Neutron Mechanism driver
|
||||||
|
<https://wiki.openstack.org/wiki/Neutron/ML2>`_. 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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n networking-generic-switch-4.0.1.dev4
|
||||||
|
%py_req_cleanup
|
||||||
|
|
||||||
|
%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}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{py3_install}
|
||||||
|
%fdupes %{buildroot}%{python3_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} -m stestr.cli run
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst
|
||||||
|
%{python3_sitelib}/networking_generic_switch
|
||||||
|
%{python3_sitelib}/networking_generic_switch*egg-info
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%license LICENSE
|
||||||
|
%doc doc/build/html
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Mar 13 2021 zhaorenhai <zhaorenhai@hotmail.com>
|
||||||
|
- Initial package
|
||||||
Loading…
x
Reference in New Issue
Block a user