networking-generic-switch/python-networking-generic-switch.spec
2021-08-10 19:00:54 +08:00

96 lines
2.7 KiB
RPMSpec

%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
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
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
%{common_desc}
%package -n python3-networking_generic_switch
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.
%prep
%autosetup
%py_req_cleanup
%build
%{py3_build}
# 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 -n python3-networking_generic_switch
%license LICENSE
%doc README.rst
%{python3_sitelib}/networking_generic_switch
%{python3_sitelib}/networking_generic_switch*egg-info
%files doc
%license LICENSE
%changelog
* 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