d7964a17fb
python-aodhclient spec file is based off 1.1.1 (rocky) python-barbicanclient spec file is based off 4.7.1 (rocky) python-cinderclient spec file is based off 4.0.1 (rocky) python-glanceclient spec file is based off 2.13.1 (rocky) - docs disabled python-gnocchiclient spec file is based off 7.0.4 (rocky) python-heatclient spec file is based off 1.16.1 (rocky) - docs disabled python-ironicclient spec file is based off 2.5.0 (rocky) python-keystoneclient spec file is based off 3.17.0 (rocky) python-magnumclient spec file is based off 2.10.0 (rocky) python-muranoclient spec file is based off 1.1.1 (rocky) python-neutronclient spec file is based off 6.9.1 (rocky) python-novaclient spec file is based off 11.0.0 (rocky) - docs disabled python-openstackclient spec file is based off 3.16.2 (rocky) - docs disabled - unit tests disabled python-openstacksdk spec file is based of 0.17.2 (rocky) - unit tests disabled python-pankoclient spec file is based off 0.5.0 (rocky) The primary changes to each spec files are 1) version has tis extension 2) sdk package added 3) wheels package added Disable building: - openstack-aodh - python-osc-lib ceilometerclient no longer exists. openstack-heat no longer requires ceilometerclient Story: 2004751 Task: 28864 Change-Id: Ifa905bea2e95ded72a327f8ff43667c8c5429363 Depends-On: Iea58cb9484c75cf757397d53d7d1576a2f436d81 Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
191 lines
4.9 KiB
RPMSpec
191 lines
4.9 KiB
RPMSpec
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
|
%global sname glanceclient
|
|
%global with_doc 1
|
|
|
|
%if 0%{?fedora}
|
|
%global with_python3 1
|
|
%endif
|
|
|
|
%global common_desc \
|
|
This is a client for the OpenStack Glance API. There's a Python API (the \
|
|
glanceclient module), and a command-line script (glance). Each implements \
|
|
100% of the OpenStack Glance API.
|
|
|
|
Name: python-glanceclient
|
|
Epoch: 1
|
|
Version: 2.13.1
|
|
Release: 1%{?dist}
|
|
Summary: Python API and CLI for OpenStack Glance
|
|
|
|
License: ASL 2.0
|
|
URL: https://launchpad.net/python-glanceclient
|
|
Source0: https://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: git
|
|
BuildRequires: openstack-macros
|
|
|
|
%description
|
|
%{common_desc}
|
|
|
|
%package -n python2-%{sname}
|
|
Summary: Python API and CLI for OpenStack Glance
|
|
%{?python_provide:%python_provide python2-glanceclient}
|
|
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python2-setuptools
|
|
BuildRequires: python2-pbr
|
|
|
|
Requires: python2-keystoneauth1 >= 3.6.2
|
|
Requires: python2-oslo-i18n >= 3.15.3
|
|
Requires: python2-oslo-utils >= 3.33.0
|
|
Requires: python2-pbr
|
|
Requires: python2-prettytable
|
|
Requires: python2-pyOpenSSL >= 17.1.0
|
|
Requires: python2-requests
|
|
Requires: python2-six >= 1.10.0
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
Requires: python2-warlock
|
|
Requires: python2-wrapt
|
|
%else
|
|
Requires: python-warlock
|
|
Requires: python-wrapt
|
|
%endif
|
|
|
|
%description -n python2-%{sname}
|
|
%{common_desc}
|
|
|
|
%if 0%{?with_python3}
|
|
%package -n python3-%{sname}
|
|
Summary: Python API and CLI for OpenStack Glance
|
|
%{?python_provide:%python_provide python3-glanceclient}
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
|
|
Requires: python3-keystoneauth1 >= 3.6.2
|
|
Requires: python3-oslo-i18n >= 3.15.3
|
|
Requires: python3-oslo-utils >= 3.33.0
|
|
Requires: python3-pbr
|
|
Requires: python3-prettytable
|
|
Requires: python3-pyOpenSSL >= 17.1.0
|
|
Requires: python3-requests
|
|
Requires: python3-six >= 1.10.0
|
|
Requires: python3-warlock
|
|
Requires: python3-wrapt
|
|
|
|
%description -n python3-%{sname}
|
|
%{common_desc}
|
|
%endif
|
|
|
|
%if 0%{?with_doc}
|
|
%package doc
|
|
Summary: Documentation for OpenStack Glance API Client
|
|
|
|
BuildRequires: python2-sphinx
|
|
BuildRequires: python2-openstackdocstheme
|
|
BuildRequires: python2-keystoneauth1
|
|
BuildRequires: python2-oslo-utils
|
|
BuildRequires: python2-prettytable
|
|
BuildRequires: python2-pyOpenSSL >= 17.1.0
|
|
BuildRequires: python2-sphinxcontrib-apidoc
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
BuildRequires: python2-warlock
|
|
%else
|
|
BuildRequires: python-warlock
|
|
%endif
|
|
|
|
%description doc
|
|
%{common_desc}
|
|
|
|
This package contains auto-generated documentation.
|
|
%endif
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{upstream_version} -S git
|
|
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%py2_build
|
|
%if 0%{?with_python3}
|
|
%py3_build
|
|
%endif
|
|
|
|
%install
|
|
%if 0%{?with_python3}
|
|
%py3_install
|
|
mv %{buildroot}%{_bindir}/glance %{buildroot}%{_bindir}/glance-%{python3_version}
|
|
ln -s ./glance-%{python3_version} %{buildroot}%{_bindir}/glance-3
|
|
# Delete tests
|
|
rm -fr %{buildroot}%{python3_sitelib}/glanceclient/tests
|
|
%endif
|
|
|
|
%py2_install
|
|
mv %{buildroot}%{_bindir}/glance %{buildroot}%{_bindir}/glance-%{python2_version}
|
|
ln -s ./glance-%{python2_version} %{buildroot}%{_bindir}/glance-2
|
|
|
|
ln -s ./glance-2 %{buildroot}%{_bindir}/glance
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
install -pm 644 tools/glance.bash_completion \
|
|
%{buildroot}%{_sysconfdir}/bash_completion.d/glance
|
|
|
|
# Delete tests
|
|
rm -fr %{buildroot}%{python2_sitelib}/glanceclient/tests
|
|
|
|
%if 0%{?with_doc}
|
|
# generate html docs
|
|
sphinx-build -b html doc/source doc/build/html
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
# generate man page
|
|
sphinx-build -b man doc/source doc/build/man
|
|
install -p -D -m 644 doc/build/man/glance.1 %{buildroot}%{_mandir}/man1/glance.1
|
|
%endif
|
|
|
|
%files -n python2-%{sname}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python2_sitelib}/glanceclient
|
|
%{python2_sitelib}/*.egg-info
|
|
%{_sysconfdir}/bash_completion.d
|
|
%if 0%{?with_doc}
|
|
%{_mandir}/man1/glance.1.gz
|
|
%endif
|
|
%{_bindir}/glance
|
|
%{_bindir}/glance-2
|
|
%{_bindir}/glance-%{python2_version}
|
|
|
|
%if 0%{?with_python3}
|
|
%files -n python3-%{sname}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python3_sitelib}/%{sname}
|
|
%{python3_sitelib}/*.egg-info
|
|
%{_sysconfdir}/bash_completion.d
|
|
%{_mandir}/man1/glance.1.gz
|
|
%{_bindir}/glance-3
|
|
%{_bindir}/glance-%{python3_version}
|
|
%endif
|
|
|
|
%if 0%{?with_doc}
|
|
%files doc
|
|
%doc doc/build/html
|
|
%license LICENSE
|
|
%endif
|
|
|
|
%changelog
|
|
* Wed Dec 19 2018 RDO <dev@lists.rdoproject.org> 1:2.13.1-1
|
|
- Update to 2.13.1
|
|
|
|
* Mon Nov 05 2018 RDO <dev@lists.rdoproject.org> 1:2.13.0-1
|
|
- Update to 2.13.0
|
|
|
|
* Wed Aug 08 2018 RDO <dev@lists.rdoproject.org> 1:2.12.1-1
|
|
- Update to 2.12.1
|
|
|