代码拉取完成,页面将自动刷新
%global pypi_name ryu
BuildRequires: python3-devel
%global python python3
%global __python %__python3
Name: python-%{pypi_name}
Version: 4.34
Release: 1
Summary: Component-based Software-defined Networking Framework
License: Apache-2.0
Url: https://osrg.github.io/ryu
Source: https://files.pythonhosted.org/packages/25/30/1c1972b3f9bf52de32d2fdf7c5206ff7099e739bf69b6004f4a71bcbde18/ryu-4.34.tar.gz
BuildArch: noarch
%description
Ryu provides software components with well defined API that make it easy for developers to create new
network management and control applications.
%package -n %{python}-%{pypi_name}
Summary: Component-based Software-defined Networking Framework
%{?python_provide:%python_provide %{python}-%{pypi_name}}
Provides: python-%{pypi_name}-common = %{version}-%{release}
Obsoletes: python-%{pypi_name}-common < 4.29-2
Requires: %{python}-eventlet
Requires: %{python}-debtcollector
Requires: %{python}-lxml
Requires: %{python}-msgpack
Requires: %{python}-netaddr
Requires: %{python}-openvswitch
Requires: %{python}-oslo-config
Requires: %{python}-paramiko
Requires: %{python}-routes
Requires: %{python}-six
Requires: %{python}-tinyrpc
Requires: %{python}-webob
Requires: %{python}-wrapt
BuildRequires: %{python}-devel
BuildRequires: %{python}-debtcollector
BuildRequires: %{python}-eventlet
BuildRequires: %{python}-greenlet
BuildRequires: %{python}-lxml
BuildRequires: %{python}-msgpack
BuildRequires: %{python}-openvswitch
BuildRequires: %{python}-oslo-config
BuildRequires: %{python}-paramiko
BuildRequires: %{python}-repoze-lru
BuildRequires: %{python}-routes
BuildRequires: %{python}-sphinx
BuildRequires: %{python}-tinyrpc
BuildRequires: %{python}-setuptools
BuildRequires: %{python}-webob
BuildRequires: %{python}-wrapt
%description -n %{python}-%{pypi_name}
Ryu provides software components with well defined API that make it easy for developers to create new
network management and control applications.
%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
# drop deps in egginfo, let rpm handle them
rm tools/*-requires
rm tools/install_venv.py
# Remove non-working tests (internet connection needed)
rm -vf %{pypi_name}/tests/unit/test_requirements.py
# Remove pip usage (used only in test_requirements.py)
sed -i '/^from pip/d' ryu/utils.py
%build
%py_build
cd doc && make SPHINXBUILD=sphinx-build-3 man
%install
%py_install
install -d -m 755 %{buildroot}%{_sysconfdir}/%{pypi_name}
mv %{buildroot}%{_prefix}%{_sysconfdir}/%{pypi_name}/%{pypi_name}.conf %{buildroot}%{_sysconfdir}/%{pypi_name}/%{pypi_name}.conf
%files -n %{python}-%{pypi_name}
%{python_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python_sitelib}/%{pypi_name}
%{_bindir}/%{pypi_name}
%{_bindir}/%{pypi_name}-manager
%{_sysconfdir}/%{pypi_name}/%{pypi_name}.conf
%changelog
* Mon Dec 12 2022 wubijie <wubijie@kylinos.cn> - 4.34-1
- Update package to version 4.34
* Fri Nov 12 2021 openstack-sig <openstack@openeuler.org> - 4.29-1
- Init first release
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。