Upload building elements
This commit is contained in:
parent
efa2a2358d
commit
f2b5cb4531
BIN
python-cinderclient-7.2.0.tar.gz
Executable file
BIN
python-cinderclient-7.2.0.tar.gz
Executable file
Binary file not shown.
110
python-cinderclient.spec
Executable file
110
python-cinderclient.spec
Executable file
@ -0,0 +1,110 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
|
%global with_doc 1
|
||||||
|
|
||||||
|
Name: python-cinderclient
|
||||||
|
Version: 7.2.0
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Summary: Python API and CLI for OpenStack Cinder
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: http://github.com/openstack/python-cinderclient
|
||||||
|
Source0: https://tarballs.openstack.org/python-cinderclient/python-cinderclient-7.2.0.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Client library (cinderclient python module) and command line utility \
|
||||||
|
(cinder) for interacting with OpenStack Cinder (Block Storage) API.
|
||||||
|
|
||||||
|
%package -n python3-cinderclient
|
||||||
|
Summary: Python API and CLI for OpenStack Cinder
|
||||||
|
%{?python_provide:%python_provide python3-cinderclient}
|
||||||
|
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: openstack-macros
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pbr
|
||||||
|
BuildRequires: python3-pip
|
||||||
|
|
||||||
|
Requires: python3-pbr
|
||||||
|
Requires: python3-prettytable
|
||||||
|
Requires: python3-requests
|
||||||
|
Requires: python3-six
|
||||||
|
Requires: python3-keystoneauth1 >= 3.4.0
|
||||||
|
Requires: python3-oslo-i18n >= 3.15.3
|
||||||
|
Requires: python3-oslo-utils >= 3.33.0
|
||||||
|
Requires: python3-simplejson
|
||||||
|
Requires: python3-stevedore >= 1.20.0
|
||||||
|
|
||||||
|
%description -n python3-cinderclient
|
||||||
|
Client library (cinderclient python module) and command line utility \
|
||||||
|
(cinder) for interacting with OpenStack Cinder (Block Storage) API.
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for OpenStack Cinder API Client
|
||||||
|
Group: Documentation
|
||||||
|
|
||||||
|
BuildRequires: python3-reno
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: python3-openstackdocstheme
|
||||||
|
BuildRequires: python3-keystoneauth1
|
||||||
|
BuildRequires: python3-oslo-utils
|
||||||
|
BuildRequires: python3-prettytable
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Client library (cinderclient python module) and command line utility \
|
||||||
|
(cinder) for interacting with OpenStack Cinder (Block Storage) API.
|
||||||
|
This package contains auto-generated documentation.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n python-cinderclient-7.2.0 -S git
|
||||||
|
rm -rf python_cinderclient.egg-info
|
||||||
|
# Let RPM handle the requirements
|
||||||
|
rm -f {,test-}requirements.txt
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{py3_build}
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
export PYTHONPATH=.
|
||||||
|
sphinx-build-3 -W -b html doc/source doc/build/html
|
||||||
|
sphinx-build-3 -W -b man doc/source doc/build/man
|
||||||
|
|
||||||
|
rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{py3_install}
|
||||||
|
# Create a versioned binary for backwards compatibility until everything is pure py3
|
||||||
|
ln -s cinder %{buildroot}%{_bindir}/cinder-3
|
||||||
|
|
||||||
|
# Delete tests
|
||||||
|
rm -fr %{buildroot}%{python3_sitelib}/cinderclient/tests
|
||||||
|
|
||||||
|
install -p -D -m 644 tools/cinder.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/cinder.bash_completion
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
install -p -D -m 644 doc/build/man/cinder.1 %{buildroot}%{_mandir}/man1/cinder.1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python3-cinderclient
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/cinder
|
||||||
|
%{_bindir}/cinder-3
|
||||||
|
%{python3_sitelib}/cinderclient
|
||||||
|
%{python3_sitelib}/*.egg-info
|
||||||
|
%{_sysconfdir}/bash_completion.d/cinder.bash_completion
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%{_mandir}/man1/cinder.1*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%files doc
|
||||||
|
%doc doc/build/html
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jan 07 2021 Python_Bot <Python_Bot@openeuler.org>
|
||||||
|
- Package Spec generated
|
||||||
Loading…
x
Reference in New Issue
Block a user