!7 update keystoneclient to 4.2.0

From: @li-mingzhou
Reviewed-by: @xiyuanwang
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2021-08-02 03:00:20 +00:00 committed by Gitee
commit b589f3ae10
3 changed files with 82 additions and 112 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,135 +1,105 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-keystoneclient
%global with_doc 1 Version: 4.2.0
Release: 1
Name: python-keystoneclient Summary: Client Library for OpenStack Identity
Epoch: 1 License: Apache-2.0
Version: 4.1.1 URL: https://docs.openstack.org/python-keystoneclient/latest/
Release: 2%{?dist} Source0: https://tarballs.openstack.org/python-keystoneclient/python-keystoneclient-%{version}.tar.gz
Summary: Client library for OpenStack Identity API BuildArch: noarch
License: Apache-2.0
URL: https://launchpad.net/python-keystoneclient
Source0: https://tarballs.openstack.org/python-keystoneclient/python-keystoneclient-4.1.1.tar.gz
BuildArch: noarch
%description %description
Client library and command line utility for interacting with Openstack Identity API. This is a client for the OpenStack Identity API, implemented by the Keystone team; it contains a Python API (the
keystoneclient module) for OpenStack's Identity Service.
%package -n python3-keystoneclient %package -n python3-keystoneclient
Summary: Client library for OpenStack Identity API Summary: Client Library for OpenStack Identity
%{?python_provide:%python_provide python3-keystoneclient} Provides: python-keystoneclient
Obsoletes: python2-keystoneclient < 4.1.1-2 # Base build requires
BuildRequires: python3-devel
BuildRequires: openstack-macros BuildRequires: python3-setuptools
BuildRequires: python3-devel BuildRequires: python3-pbr
BuildRequires: python3-setuptools BuildRequires: python3-pip
BuildRequires: python3-pbr >= 2.0.0 BuildRequires: python3-wheel
BuildRequires: python3-pip # General requires
BuildRequires: git BuildRequires: python3-debtcollector
Requires: python3-oslo-config
Requires: python3-oslo-i18n >= 3.15.3
Requires: python3-oslo-serialization >= 2.18.0
Requires: python3-oslo-utils >= 3.33.0
Requires: python3-requests >= 2.14.2
Requires: python3-six >= 1.10.0
Requires: python3-stevedore >= 1.20.0
Requires: python3-pbr >= 2.0.0
Requires: python3-debtcollector >= 1.2.0
Requires: python3-keystoneauth1 >= 3.4.0
Requires: python3-keyring >= 5.5.1
%description -n python3-keystoneclient
Client library and command line utility for interacting with Openstack Identity API.
%package -n python3-keystoneclient-tests
Summary: Python API and CLI for OpenStack Keystone (tests)
%{?python_provide:%python_provide python3-keystoneclient-tests}
Requires: python3-keystoneclient = 4.1.1-2
BuildRequires: python3-hacking
BuildRequires: python3-fixtures
BuildRequires: python3-mock
BuildRequires: python3-oauthlib
BuildRequires: python3-oslotest
BuildRequires: python3-testtools
BuildRequires: python3-keystoneauth1 BuildRequires: python3-keystoneauth1
BuildRequires: python3-oslo-config BuildRequires: python3-oslo-config
BuildRequires: python3-oslo-utils
BuildRequires: python3-oslo-serialization
BuildRequires: python3-oslo-i18n BuildRequires: python3-oslo-i18n
BuildRequires: python3-stestr BuildRequires: python3-oslo-serialization
BuildRequires: python3-testresources BuildRequires: python3-oslo-utils
BuildRequires: python3-testscenarios BuildRequires: python3-requests
BuildRequires: python3-requests-mock BuildRequires: python3-six
BuildRequires: python3-keyring >= 5.5.1 BuildRequires: python3-stevedore
BuildRequires: python3-lxml # General requires
Requires: python3-debtcollector
Requires: python3-keystoneauth1
Requires: python3-oslo-config
Requires: python3-oslo-i18n
Requires: python3-oslo-serialization
Requires: python3-oslo-utils
Requires: python3-pbr
Requires: python3-requests
Requires: python3-six
Requires: python3-stevedore
%description -n python3-keystoneclient
This is a client for the OpenStack Identity API, implemented by the Keystone team; it contains a Python API (the
keystoneclient module) for OpenStack's Identity Service.
Requires: python3-hacking %package help
Requires: python3-fixtures Summary: Client Library for OpenStack Identity
Requires: python3-mock Provides: python3-keystoneclient-doc
Requires: python3-oauthlib %description help
Requires: python3-oslotest This is a client for the OpenStack Identity API, implemented by the Keystone team; it contains a Python API (the
Requires: python3-stestr keystoneclient module) for OpenStack's Identity Service.
Requires: python3-testtools
Requires: python3-testresources
Requires: python3-testscenarios
Requires: python3-requests-mock
Requires: python3-lxml
%description -n python3-keystoneclient-tests
Client library and command line utility for interacting with Openstack Identity API.
%if 0%{?with_doc}
%package -n python-keystoneclient-doc
Summary: Documentation for OpenStack Keystone API client
BuildRequires: python3-sphinx
BuildRequires: python3-sphinxcontrib-apidoc
BuildRequires: python3-openstackdocstheme
%description -n python-keystoneclient-doc
Client library and command line utility for interacting with Openstack Identity API.
%endif
%prep %prep
%autosetup -n python-keystoneclient-4.1.1 -S git %autosetup -n python-keystoneclient-%{version}
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
rm -rf {test-,}requirements.txt rm -rf {test-,}requirements.txt
%build %build
%{py3_build} %py3_build
%install %install
%{py3_install} %py3_install
%if 0%{?with_doc} install -d -m755 %{buildroot}/%{_pkgdocdir}
sphinx-build -b html doc/source doc/build/html if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
rm -fr doc/build/html/objects.inv if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
rm -fr doc/build/html/.{doctrees,buildinfo} if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
%endif 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 .
%check
PYTHON=%{__python3} stestr --test-path=./keystoneclient/tests/unit run
%files -n python3-keystoneclient %files -n python3-keystoneclient -f filelist.lst
%license LICENSE
%doc README.rst %dir %{python3_sitelib}/*
%{python3_sitelib}/keystoneclient
%{python3_sitelib}/*.egg-info %files help -f doclist.lst
%exclude %{python3_sitelib}/keystoneclient/tests %{_docdir}/*
%if 0%{?with_doc}
%files -n python-keystoneclient-doc
%doc doc/build/html
%license LICENSE
%endif
%files -n python3-keystoneclient-tests
%license LICENSE
%{python3_sitelib}/keystoneclient/tests
%changelog %changelog
* Sun Jul 25 2021 OpenStack_SIG <openstack@openeuler.org> - 4.2.0-1
- update to 4.2.0
* Thu Jan 21 2021 Python_Bot <Python_Bot@openeuler.org> * Thu Jan 21 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated