diff --git a/python-novaclient-10.1.0.tar.gz b/python-novaclient-10.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f265fc501b998d1a27e35f50583e16e48e99e13b Binary files /dev/null and b/python-novaclient-10.1.0.tar.gz differ diff --git a/python-novaclient-17.2.1.tar.gz b/python-novaclient-17.2.1.tar.gz deleted file mode 100644 index 21e758ee308a774cbad09aa554f47351ef626094..0000000000000000000000000000000000000000 Binary files a/python-novaclient-17.2.1.tar.gz and /dev/null differ diff --git a/python-novaclient.spec b/python-novaclient.spec index 8a0879a457a309f0ce9396337e729e8d1709d9b5..0d8a37afe732ce3735ab5346001d79fa1a9080c8 100644 --- a/python-novaclient.spec +++ b/python-novaclient.spec @@ -1,104 +1,100 @@ %global _empty_manifest_terminate_build 0 -%global with_doc 1 +Name: python-novaclient +Version: 10.1.0 +Release: 1 +Summary: Client library for OpenStack Compute API +License: Apache-2.0 +URL: https://docs.openstack.org/python-novaclient/latest +Source0: https://files.pythonhosted.org/packages/2e/2d/5d93da4651ab1f7e8e2e1bae9f2da4d1038dd5913f0ce17c81d67c675592/python-novaclient-10.1.0.tar.gz +BuildArch: noarch +%description +============================================ +Python bindings to the OpenStack Compute API +============================================ -Name: python-novaclient -Epoch: 1 -Version: 17.2.1 -Release: 1%{?dist} -Summary: Python API and CLI for OpenStack Nova -License: Apache-2.0 -URL: https://launchpad.net/python-novaclient -Source0: https://pypi.io/packages/source/p/python-novaclient/python-novaclient-17.2.1.tar.gz -BuildArch: noarch +This is a client for the OpenStack Compute API. It provides a Python API (the +``novaclient`` module) and a command-line script (``nova``). Each implements +100% of the OpenStack Compute API. -%description -This is a client for the OpenStack Nova API. There's a Python API (the \ -novaclient module), and a command-line script (nova). Each implements 100% of \ -the OpenStack Nova API. +%package -n python2-novaclient +Summary: Client library for OpenStack Compute API +Provides: python2-novaclient +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pbr +Requires: python2-keystoneauth1 +Requires: python2-iso8601 +Requires: python2-oslo-i18n +Requires: python2-oslo-serialization +Requires: python2-oslo-utils +Requires: python2-PrettyTable +Requires: python2-simplejson +Requires: python2-six +Requires: python2-babel +%description -n python2-novaclient +============================================ +Python bindings to the OpenStack Compute API +============================================ -%package -n python3-novaclient -Summary: Python API and CLI for OpenStack Nova -%{?python_provide:%python_provide python3-novaclient} -Obsoletes: python2-novaclient < 17.2.1-1 +This is a client for the OpenStack Compute API. It provides a Python API (the +``novaclient`` module) and a command-line script (``nova``). Each implements +100% of the OpenStack Compute API. -BuildRequires: git -BuildRequires: openstack-macros -BuildRequires: python3-devel -BuildRequires: python3-pbr -BuildRequires: python3-pip -BuildRequires: python3-setuptools -Requires: python3-iso8601 >= 0.1.11 -Requires: python3-keystoneauth1 >= 3.5.0 -Requires: python3-oslo-i18n >= 3.15.3 -Requires: python3-oslo-serialization >= 2.18.0 -Requires: python3-oslo-utils >= 3.33.0 -Requires: python3-pbr >= 2.0.0 -Requires: python3-prettytable >= 0.7.2 -Requires: python3-stevedore >= 2.0.1 -%description -n python3-novaclient -This is a client for the OpenStack Nova API. There's a Python API (the \ -novaclient module), and a command-line script (nova). Each implements 100% of \ -the OpenStack Nova API. +%package help +Summary: Development documents and examples for python-novaclient +Provides: python2-novaclient-doc +%description help +============================================ +Python bindings to the OpenStack Compute API +============================================ + +This is a client for the OpenStack Compute API. It provides a Python API (the +``novaclient`` module) and a command-line script (``nova``). Each implements +100% of the OpenStack Compute API. -%if 0%{?with_doc} -%package doc -Summary: Documentation for OpenStack Nova API Client -BuildRequires: python3-sphinx -BuildRequires: python3-sphinxcontrib-apidoc -BuildRequires: python3-openstackdocstheme -BuildRequires: python3-oslo-utils -BuildRequires: python3-keystoneauth1 -BuildRequires: python3-oslo-serialization -BuildRequires: python3-prettytable -%description doc -This is a client for the OpenStack Nova API. There's a Python API (the \ -novaclient module), and a command-line script (nova). Each implements 100% of \ -the OpenStack Nova API. -This package contains auto-generated documentation. -%endif %prep -%autosetup -n python-novaclient-17.2.1 -S git -%py_req_cleanup +%autosetup -n python-novaclient-10.1.0 %build -%{py3_build} +%py2_build %install -%{py3_install} -ln -s nova %{buildroot}%{_bindir}/nova-3 -mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d -install -pm 644 tools/nova.bash_completion \ - %{buildroot}%{_sysconfdir}/bash_completion.d/nova -rm -fr %{buildroot}%{python3_sitelib}/novaclient/tests - -%if 0%{?with_doc} -sphinx-build -b html doc/source doc/build/html -sphinx-build -b man doc/source doc/build/man -install -p -D -m 644 doc/build/man/nova.1 %{buildroot}%{_mandir}/man1/nova.1 -rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo doc/build/html/.htaccess -%endif +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +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 . -%files -n python3-novaclient -%license LICENSE -%doc README.rst -%{python3_sitelib}/novaclient -%{python3_sitelib}/*.egg-info -%{_sysconfdir}/bash_completion.d -%if 0%{?with_doc} -%{_mandir}/man1/nova.1.gz -%endif -%{_bindir}/nova -%{_bindir}/nova-3 +%files -n python2-novaclient -f filelist.lst +%{python2_sitelib}/* -%if 0%{?with_doc} -%files doc -%doc doc/build/html -%license LICENSE -%endif +%files help -f doclist.lst +%{_docdir}/* %changelog -* Thu Jan 12 2021 Python_Bot +* Sat May 15 2021 openstack-sig - Package Spec generated