186 lines
5.6 KiB
RPMSpec
186 lines
5.6 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
%global with_doc 0
|
|
|
|
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
|
Name: python-keystoneauth1
|
|
Version: 3.17.4
|
|
Release: 3
|
|
Summary: Authentication Library for OpenStack Clients
|
|
License: ASL 2.0
|
|
URL: https://pypi.io/pypi/keystoneauth1
|
|
Source0: https://tarballs.openstack.org/keystoneauth/keystoneauth1-%{upstream_version}.tar.gz
|
|
# Required for tarball sources verification
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Keystoneauth provides a standard way to do authentication and service requests \
|
|
within the OpenStack ecosystem. It is designed for use in conjunction with \
|
|
the existing OpenStack clients and for simplifying the process of writing \
|
|
new clients.
|
|
|
|
%package -n python3-keystoneauth1
|
|
Summary: Authentication Libarary for OpenStack Identity
|
|
%{?python_provide:%python_provide python3-keystoneauth1}
|
|
%{?python_provide:%python_provide python3-keystoneauth}
|
|
|
|
# Base build requires
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
# General requires
|
|
BuildRequires: python3-iso8601
|
|
BuildRequires: python3-os-service-types
|
|
BuildRequires: python3-requests
|
|
BuildRequires: python3-six
|
|
BuildRequires: python3-stevedore
|
|
BuildRequires: python3-betamax
|
|
BuildRequires: python3-fixtures
|
|
BuildRequires: python3-mock
|
|
BuildRequires: python3-requests-kerberos
|
|
BuildRequires: python3-oauthlib
|
|
BuildRequires: python3-lxml
|
|
# Tests running requires
|
|
BuildRequires: python3-pyyaml
|
|
BuildRequires: python3-bandit
|
|
BuildRequires: python3-betamax
|
|
BuildRequires: python3-coverage
|
|
BuildRequires: python3-fixtures
|
|
BuildRequires: python3-flake8-docstrings
|
|
BuildRequires: python3-hacking
|
|
BuildRequires: python3-lxml
|
|
BuildRequires: python3-mock
|
|
BuildRequires: python3-oauthlib
|
|
BuildRequires: python3-openstackdocstheme
|
|
BuildRequires: python3-oslo-config
|
|
BuildRequires: python3-oslo-utils
|
|
BuildRequires: python3-oslotest
|
|
BuildRequires: python3-reno
|
|
BuildRequires: python3-requests-kerberos
|
|
BuildRequires: python3-requests-mock
|
|
BuildRequires: python3-stestr
|
|
BuildRequires: python3-testresources
|
|
BuildRequires: python3-testtools
|
|
# General requires
|
|
Requires: python3-iso8601
|
|
Requires: python3-os-service-types
|
|
Requires: python3-pbr
|
|
Requires: python3-requests
|
|
Requires: python3-six
|
|
Requires: python3-stevedore
|
|
Requires: python3-betamax
|
|
Requires: python3-fixtures
|
|
Requires: python3-mock
|
|
Requires: python3-requests-kerberos
|
|
Requires: python3-oauthlib
|
|
Requires: python3-lxml
|
|
# Tests running requires
|
|
Requires: python3-pyyaml
|
|
Requires: python3-bandit
|
|
Requires: python3-betamax
|
|
Requires: python3-coverage
|
|
Requires: python3-fixtures
|
|
Requires: python3-flake8-docstrings
|
|
Requires: python3-hacking
|
|
Requires: python3-six
|
|
Requires: python3-stevedore
|
|
Requires: python3-betamax
|
|
Requires: python3-fixtures
|
|
Requires: python3-mock
|
|
Requires: python3-requests-kerberos
|
|
Requires: python3-oauthlib
|
|
Requires: python3-lxml
|
|
# Tests running requires
|
|
Requires: python3-pyyaml
|
|
Requires: python3-bandit
|
|
Requires: python3-betamax
|
|
Requires: python3-coverage
|
|
Requires: python3-fixtures
|
|
Requires: python3-flake8-docstrings
|
|
Requires: python3-hacking
|
|
Requires: python3-lxml
|
|
Requires: python3-mock
|
|
Requires: python3-oauthlib
|
|
Requires: python3-openstackdocstheme
|
|
Requires: python3-oslo-config
|
|
Requires: python3-oslo-utils
|
|
Requires: python3-oslotest
|
|
Requires: python3-reno
|
|
Requires: python3-requests-kerberos
|
|
Requires: python3-requests-mock
|
|
Requires: python3-stestr
|
|
Requires: python3-testresources
|
|
Requires: python3-testtools
|
|
|
|
%description -n python3-keystoneauth1
|
|
Keystoneauth provides a standard way to do authentication and service requests \
|
|
within the OpenStack ecosystem. It is designed for use in conjunction with \
|
|
the existing OpenStack clients and for simplifying the process of writing \
|
|
new clients.
|
|
|
|
%package -n python-keystoneauth1-doc
|
|
Summary: Documentation for OpenStack Identity Authentication Library
|
|
|
|
BuildRequires: python3-sphinx
|
|
BuildRequires: python3-sphinxcontrib-apidoc
|
|
BuildRequires: python3-openstackdocstheme
|
|
|
|
%description -n python-keystoneauth1-doc
|
|
Documentation for OpenStack Identity Authentication Library
|
|
|
|
%prep
|
|
# Required for tarball sources verification
|
|
%autosetup -n keystoneauth1-%{upstream_version}
|
|
|
|
sed -i '/sphinx.ext.intersphinx.*$/d' doc/source/conf.py
|
|
|
|
# Let RPM handle the dependencies
|
|
rm -rf {test-,}requirements.txt
|
|
# Remove bundled egg-info
|
|
rm -rf keystoneauth1.egg-info
|
|
|
|
# remove syntax tests
|
|
rm keystoneauth1/tests/unit/test_hacking_checks.py
|
|
|
|
%build
|
|
%{py3_build}
|
|
|
|
%install
|
|
%{py3_install}
|
|
|
|
%if 0%{?with_doc}
|
|
# generate html docs
|
|
export PYTHONPATH=.
|
|
# Disabling warning-is-error because of issue with python2 giving a warning:
|
|
# "The config value `apidoc_module_dir' has type `unicode', expected to ['str']."
|
|
sphinx-build-3 -b html -d doc/build/doctrees doc/source doc/build/html
|
|
rm -rf doc/build/html/.buildinfo
|
|
%endif
|
|
|
|
#%check
|
|
#PYTHON=%{__python3} stestr-3 run
|
|
|
|
%files -n python3-keystoneauth1
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python3_sitelib}/keystoneauth1
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
%if 0%{?with_doc}
|
|
%files -n python-keystoneauth1-doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
%endif
|
|
|
|
%changelog
|
|
* Wed Nov 10 2021 wangxiyuan <wangxiyuan@huawei.com> -3.17.4-3
|
|
- Close doc build
|
|
* Wed Nov 10 2021 wangxiyuan <wangxiyuan@huawei.com> -3.17.4-2
|
|
- Remove check part
|
|
* Tue Nov 09 2021 huangtianhua <huangtianhua@huawei.com> - 3.17.4-1
|
|
- Init with 3.17.4 to support OpenStack-T
|