1 Star 0 Fork 15

liusheng/python-neutron-lib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-neutron-lib.spec 4.20 KB
一键复制 编辑 原始数据 按行查看 历史
%global _empty_manifest_terminate_build 0
%global with_doc 1
Name: python-neutron-lib
Version: 2.10.1
Release: 2
Summary: OpenStack Neutron library
License: Apache-2.0
URL: http://launchpad.net/neutron/
Source0: https://tarballs.openstack.org/neutron-lib/neutron-lib-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: openstack-macros
%description
OpenStack Neutron library shared by all Neutron sub-projects.
%package -n python3-neutron-lib
Summary: OpenStack Neutron library
%{?python_provide:%python_provide python3-neutron-lib}
# Required for tests
BuildRequires: python3-keystoneauth1
BuildRequires: python3-oslotest
BuildRequires: python3-stestr
BuildRequires: python3-testtools
BuildRequires: python3-osprofiler
BuildRequires: python3-pecan
BuildRequires: python3-six
BuildRequires: python3-testscenarios
BuildRequires: python3-testresources
BuildRequires: python3-os-ken
BuildRequires: python3-os-traits
BuildRequires: python3-oslo-context
BuildRequires: python3-oslo-concurrency
BuildRequires: python3-oslo-db
BuildRequires: python3-oslo-i18n
BuildRequires: python3-oslo-log
BuildRequires: python3-oslo-utils
BuildRequires: python3-oslo-versionedobjects
BuildRequires: python3-oslo-policy
BuildRequires: python3-oslo-service
BuildRequires: python3-fixtures
BuildRequires: python3-netaddr
BuildRequires: python3-setproctitle
Requires: python3-pbr
Requires: python3-keystoneauth1 >= 3.4.0
Requires: python3-netaddr >= 0.7.18
Requires: python3-os-ken >= 0.3.0
Requires: python3-os-traits >= 0.9.0
Requires: python3-oslo-concurrency >= 3.26.0
Requires: python3-oslo-config
Requires: python3-oslo-context >= 2.19.2
Requires: python3-oslo-db >= 4.37.0
Requires: python3-oslo-i18n >= 3.15.3
Requires: python3-oslo-log >= 3.36.0
Requires: python3-oslo-messaging >= 5.29.0
Requires: python3-oslo-policy >= 1.30.0
Requires: python3-oslo-serialization >= 2.18.0
Requires: python3-oslo-service >= 1.24.0
Requires: python3-oslo-utils >= 3.33.0
Requires: python3-oslo-versionedobjects >= 1.31.2
Requires: python3-sqlalchemy >= 1.2.0
Requires: python3-stevedore
Requires: python3-osprofiler >= 1.4.0
Requires: python3-pecan >= 1.0.0
Requires: python3-webob >= 1.7.1
Requires: python3-setproctitle
%description -n python3-neutron-lib
OpenStack Neutron library shared by all Neutron sub-projects.
%package -n python3-neutron-lib-tests
Summary: OpenStack Neutron library tests
%{?python_provide:%python_provide python3-neutron-lib-tests}
Requires: python3-neutron-lib = %{verion}-%{release}
%description -n python3-neutron-lib-tests
OpenStack Neutron library shared by all Neutron sub-projects.
This package contains the Neutron library test files.
%if 0%{?with_doc}
%package doc
Summary: OpenStack Neutron library documentation
BuildRequires: python3-sphinx
BuildRequires: python3-openstackdocstheme
%description doc
OpenStack Neutron library shared by all Neutron sub-projects.
This package contains the documentation.
%endif
%prep
%autosetup -n neutron-lib-%{version} -p1
%py_req_cleanup
%build
%{py3_build}
%if 0%{?with_doc}
export PYTHONPATH=.
sphinx-build-3 -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
%install
%{py3_install}
%check
rm -f ./neutron_lib/tests/unit/hacking/test_checks.py
export OS_TEST_PATH='./neutron_lib/tests/unit'
export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin
export PYTHONPATH=$PWD
PYTHON=python3 stestr --test-path $OS_TEST_PATH run
%files -n python3-neutron-lib
%license LICENSE
%{python3_sitelib}/neutron_lib
%{python3_sitelib}/neutron_lib-*.egg-info
%exclude %{python3_sitelib}/neutron_lib/tests
%files -n python3-neutron-lib-tests
%license LICENSE
%{python3_sitelib}/neutron_lib/tests
%if 0%{?with_doc}
%files doc
%license LICENSE
%doc doc/build/html README.rst
%endif
%changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.10.1-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
* Thu Jul 15 2021 huangtianhua <huangtianhua@huawei.com> - 2.10.1-1
- Upgrade to 2.10.1 to support OpenStack-W
* Thu Jan 13 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sean-lau/python-neutron-lib.git
git@gitee.com:sean-lau/python-neutron-lib.git
sean-lau
python-neutron-lib
python-neutron-lib
master

搜索帮助