加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pyzabbix.spec 3.06 KB
一键复制 编辑 原始数据 按行查看 历史
wubijie 提交于 2022-12-12 09:56 . Update package to version 4.34
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化