%global _empty_manifest_terminate_build 0 %global with_doc 1 Name: python-keystoneclient Epoch: 1 Version: 4.1.1 Release: 2%{?dist} Summary: Client library for OpenStack Identity API 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 Client library and command line utility for interacting with Openstack Identity API. %package -n python3-keystoneclient Summary: Client library for OpenStack Identity API %{?python_provide:%python_provide python3-keystoneclient} Obsoletes: python2-keystoneclient < 4.1.1-2 BuildRequires: openstack-macros BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr >= 2.0.0 BuildRequires: python3-pip BuildRequires: git 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-oslo-config BuildRequires: python3-oslo-utils BuildRequires: python3-oslo-serialization BuildRequires: python3-oslo-i18n BuildRequires: python3-stestr BuildRequires: python3-testresources BuildRequires: python3-testscenarios BuildRequires: python3-requests-mock BuildRequires: python3-keyring >= 5.5.1 BuildRequires: python3-lxml Requires: python3-hacking Requires: python3-fixtures Requires: python3-mock Requires: python3-oauthlib Requires: python3-oslotest Requires: python3-stestr 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 %autosetup -n python-keystoneclient-4.1.1 -S git sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg rm -rf {test-,}requirements.txt %build %{py3_build} %install %{py3_install} %if 0%{?with_doc} sphinx-build -b html doc/source doc/build/html rm -fr doc/build/html/objects.inv rm -fr doc/build/html/.{doctrees,buildinfo} %endif %check PYTHON=%{__python3} stestr --test-path=./keystoneclient/tests/unit run %files -n python3-keystoneclient %license LICENSE %doc README.rst %{python3_sitelib}/keystoneclient %{python3_sitelib}/*.egg-info %exclude %{python3_sitelib}/keystoneclient/tests %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 * Thu Jan 21 2021 Python_Bot - Package Spec generated