1 Star 0 Fork 7

liusheng/python-os-client-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-os-client-config.spec 2.93 KB
一键复制 编辑 原始数据 按行查看 历史
Song.Gao 提交于 2021-01-13 10:19 . Upload rpmbuild elements
%global _empty_manifest_terminate_build 0
%global with_doc 1
Name: python-os-client-config
Version: 2.1.0
Release: 1%{?dist}
Summary: OpenStack Client Configuration Library
License: Apache-2.0
URL: https://github.com/openstack/os-client-config
Source0: https://pypi.io/packages/source/o/os-client-config/os-client-config-2.1.0.tar.gz
BuildArch: noarch
BuildRequires: git
%description
The os-client-config is a library for collecting client configuration for \
using an OpenStack cloud in a consistent and comprehensive manner. It \
will find cloud config for as few as 1 cloud and as many as you want to \
put in a config file. It will read environment variables and config files, \
and it also contains some vendor specific default values so that you don't \
have to know extra info to use OpenStack
%package -n python3-os-client-config
Summary: Library for collecting client configuration of OpenStack
%{?python_provide:%python_provide python3-os-client-config}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-fixtures
BuildRequires: python3-stestr
BuildRequires: python3-glanceclient >= 0.18.0
BuildRequires: python3-openstacksdk
BuildRequires: python3-oslotest >= 1.10.0
BuildRequires: python3-jsonschema >= 2.6.0
Requires: python3-openstacksdk >= 0.13.0
%description -n python3-os-client-config
The os-client-config is a library for collecting client configuration for \
using an OpenStack cloud in a consistent and comprehensive manner. It \
will find cloud config for as few as 1 cloud and as many as you want to \
put in a config file. It will read environment variables and config files, \
and it also contains some vendor specific default values so that you don't \
have to know extra info to use OpenStack
%if 0%{?with_doc}
%package -n python-os-client-config-doc
Summary: Documentation for OpenStack os-client-config library
BuildRequires: python3-sphinx
BuildRequires: python3-openstackdocstheme
BuildRequires: python3-reno
%description -n python-os-client-config-doc
Documentation for the os-client-config library.
%endif
%prep
%autosetup -n os-client-config-2.1.0 -S git
rm -f test-requirements.txt requirements.txt
%build
%{py3_build}
%if 0%{?with_doc}
sphinx-build-3 -b html doc/source/ doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo} doc/build/html/objects.inv
%endif
%install
%{py3_install}
%check
export OS_TEST_PATH='./os_client_config/tests'
export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin
export PYTHONPATH=$PWD
%files -n python3-os-client-config
%doc ChangeLog CONTRIBUTING.rst PKG-INFO README.rst
%license LICENSE
%{python3_sitelib}/os_client_config
%{python3_sitelib}/*.egg-info
%if 0%{?with_doc}
%files -n python-os-client-config-doc
%license LICENSE
%doc doc/build/html
%endif
%changelog
* Thu Jan 13 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sean-lau/python-os-client-config.git
git@gitee.com:sean-lau/python-os-client-config.git
sean-lau
python-os-client-config
python-os-client-config
master

搜索帮助