!14 [sync] PR-13: Init Train release

From: @openeuler-sync-bot
Reviewed-by: @xiyuanwang
Signed-off-by: @xiyuanwang,@xiyuanwang
This commit is contained in:
openeuler-ci-bot 2021-11-16 08:07:50 +00:00 committed by Gitee
commit aec949cb2b
3 changed files with 66 additions and 71 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,99 +1,94 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
%global with_doc 1
Name: python-os-client-config Name: python-os-client-config
Version: 2.1.0 Version: 1.33.0
Release: 2 Release: 1
Summary: OpenStack Client Configuration Library Summary: OpenStack Client Configuation Library
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/openstack/os-client-config URL: https://docs.openstack.org/os-client-config/latest
Source0: https://pypi.io/packages/source/o/os-client-config/os-client-config-2.1.0.tar.gz Source0: https://files.pythonhosted.org/packages/8d/1d/1a194b95aca009da5e94a3368e70bc1b0353bb0dcc54323a19fb0a2410ac/os-client-config-1.33.0.tar.gz
BuildArch: noarch BuildArch: noarch
%description %description
The os-client-config is a library for collecting client configuration for \ The os-client-config is a library for collecting client configuration for
using an OpenStack cloud in a consistent and comprehensive manner. It \ 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 \ 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, \ 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 \ and it also contains some vendor specific default values so that you don't
have to know extra info to use OpenStack have to know extra info to use OpenStack
%package -n python3-os-client-config %package -n python3-os-client-config
Summary: Library for collecting client configuration of OpenStack Summary: OpenStack Client Configuation Library
%{?python_provide:%python_provide python3-os-client-config} Provides: python-os-client-config
# Base build requires
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-fixtures BuildRequires: python3-wheel
BuildRequires: python3-stestr # General requires
BuildRequires: python3-glanceclient >= 0.18.0
BuildRequires: python3-openstacksdk BuildRequires: python3-openstacksdk
BuildRequires: python3-oslotest >= 1.10.0 # General requires
BuildRequires: python3-jsonschema >= 2.6.0 Requires: python3-openstacksdk
Requires: python3-openstacksdk >= 0.13.0
%description -n python3-os-client-config %description -n python3-os-client-config
The os-client-config is a library for collecting client configuration for \ The os-client-config is a library for collecting client configuration for
using an OpenStack cloud in a consistent and comprehensive manner. It \ 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 \ 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, \ 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 \ and it also contains some vendor specific default values so that you don't
have to know extra info to use OpenStack have to know extra info to use OpenStack
%package help
%if 0%{?with_doc} Summary: OpenStack Client Configuation Library
%package -n python-os-client-config-doc Provides: python3-os-client-config-doc
Summary: Documentation for OpenStack os-client-config library %description help
The os-client-config is a library for collecting client configuration for
BuildRequires: python3-sphinx using an OpenStack cloud in a consistent and comprehensive manner. It
BuildRequires: python3-openstackdocstheme will find cloud config for as few as 1 cloud and as many as you want to
BuildRequires: python3-reno 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
%description -n python-os-client-config-doc have to know extra info to use OpenStack
Documentation for the os-client-config library.
%endif
%prep %prep
%autosetup -n os-client-config-2.1.0 %autosetup -n os-client-config-%{version}
rm -f test-requirements.txt requirements.txt
%build %build
%{py3_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 %install
%{py3_install} %py3_install
%check install -d -m755 %{buildroot}/%{_pkgdocdir}
export OS_TEST_PATH='./os_client_config/tests' if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
export PATH=$PATH:$RPM_BUILD_ROOT/usr/bin if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
export PYTHONPATH=$PWD if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-os-client-config -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-os-client-config %files help -f doclist.lst
%doc ChangeLog CONTRIBUTING.rst PKG-INFO README.rst %{_docdir}/*
%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 %changelog
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.1.0-2 * Tue Nov 16 2021 OpenStack_SIG <openstack@openeuler.org> - 1.33.0-1
- DESC: delete -S git from %autosetup, and delete BuildRequires git - Init package python3-os-client-config of version 1.33.0
* Thu Jan 13 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated