diff --git a/python-neutronclient-6.7.0.tar.gz b/python-neutronclient-6.7.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5bd70b7b4d11fd8f97d796e2b82377b158be09eb Binary files /dev/null and b/python-neutronclient-6.7.0.tar.gz differ diff --git a/python-neutronclient-7.2.1.tar.gz b/python-neutronclient-7.2.1.tar.gz deleted file mode 100644 index 5c3344c294298b4ad5bf8434cdd6ffdd38c63c24..0000000000000000000000000000000000000000 Binary files a/python-neutronclient-7.2.1.tar.gz and /dev/null differ diff --git a/python-neutronclient.spec b/python-neutronclient.spec index 21b6997a8f96e6c56ca6e3ef5fca306c420048e7..726df1cd3d60e2cff7a8dfea63d2255230fce5e0 100644 --- a/python-neutronclient.spec +++ b/python-neutronclient.spec @@ -1,129 +1,103 @@ %global _empty_manifest_terminate_build 0 -%global with_doc 1 - -Name: python-neutronclient -Version: 7.2.1 -Release: 2%{?dist} -Summary: Python API and CLI for OpenStack Neutron - -License: Apache-2.0 -URL: http://launchpad.net/python-neutronclient/ -Source0: https://tarballs.openstack.org/python-neutronclient/python-neutronclient-7.2.1.tar.gz -BuildArch: noarch +Name: python-neutronclient +Version: 6.7.0 +Release: 2 +Summary: CLI and Client Library for OpenStack Networking +License: Apache-2.0 +URL: https://docs.openstack.org/python-neutronclient/latest/ +Source0: https://files.pythonhosted.org/packages/da/d0/f76e2d31b20f49558f7fb83bb39a48d8b9200f257ecfa9e0f5b9a158e2e4/python-neutronclient-6.7.0.tar.gz +BuildArch: noarch %description -Client library and command line utility for interacting with OpenStack Neutron's API - -%package -n python3-neutronclient -Summary: Python API and CLI for OpenStack Neutron -%{?python_provide:%python_provide python3-neutronclient} -Obsoletes: python2-neutronclient < 7.2.1-2 -Obsoletes: python-neutronclient-tests <= 4.1.1-3 - -BuildRequires: git -BuildRequires: openstack-macros -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pbr -BuildRequires: python3-pip -BuildRequires: python3-osc-lib -BuildRequires: python3-osc-lib-tests -BuildRequires: python3-oslotest -BuildRequires: python3-testtools -BuildRequires: python3-testrepository -BuildRequires: python3-testscenarios -BuildRequires: python3-keystoneauth1 -BuildRequires: python3-keystoneclient -BuildRequires: python3-os-client-config -BuildRequires: python3-oslo-log -BuildRequires: python3-oslo-serialization -BuildRequires: python3-oslo-utils -BuildRequires: python3-cliff - -Requires: python3-iso8601 -Requires: python3-os-client-config -Requires: python3-oslo-i18n -Requires: python3-oslo-log -Requires: python3-oslo-serialization -Requires: python3-oslo-utils -Requires: python3-pbr -Requires: python3-requests -Requires: python3-debtcollector -Requires: python3-osc-lib -Requires: python3-keystoneauth1 -Requires: python3-keystoneclient -Requires: python3-cliff -Requires: python3-netaddr -Requires: python3-simplejson - -%description -n python3-neutronclient -Client library and command line utility for interacting with OpenStack Neutron's API - -%package -n python3-neutronclient-tests -Summary: Python API and CLI for OpenStack Neutron - Unit tests -%{?python_provide:%python_provide python3-neutronclient-tests} -Requires: python3-neutronclient == %{version}-%{release} -Requires: python3-osc-lib-tests -Requires: python3-oslotest -Requires: python3-testtools -Requires: python3-testrepository -Requires: python3-testscenarios - -%description -n python3-neutronclient-tests -Client library and command line utility for interacting with OpenStack Neutron's API - -This package containts the unit tests. +Python bindings to the Neutron API + +This is a client library for Neutron built on the Neutron API. It +provides a Python API (the ``neutronclient`` module) and a command-line tool +(``neutron``). + + +%package -n python2-neutronclient +Summary: CLI and Client Library for OpenStack Networking +Provides: python2-neutronclient +BuildRequires: python2-pbr +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-pbr +Requires: python2-cliff +Requires: python2-debtcollector +Requires: python2-iso8601 +Requires: python2-netaddr +Requires: python2-osc-lib +Requires: python2-oslo-i18n +Requires: python2-oslo-serialization +Requires: python2-oslo-utils +Requires: python2-os-client-config +Requires: python2-keystoneauth1 +Requires: python2-keystoneclient +Requires: python2-requests +Requires: python2-simplejson +Requires: python2-six +Requires: python2-babel +%description -n python2-neutronclient +Python bindings to the Neutron API + +This is a client library for Neutron built on the Neutron API. It +provides a Python API (the ``neutronclient`` module) and a command-line tool +(``neutron``). + + +%package help +Summary: Development documents and examples for python-neutronclient +Provides: python2-neutronclient-doc +%description help +Python bindings to the Neutron API + +This is a client library for Neutron built on the Neutron API. It +provides a Python API (the ``neutronclient`` module) and a command-line tool +(``neutron``). -%if 0%{?with_doc} -%package doc -Summary: Documentation for OpenStack Neutron API Client - -BuildRequires: python3-sphinx -BuildRequires: python3-openstackdocstheme -BuildRequires: python3-reno - -%description doc -Client library and command line utility for interacting with OpenStack Neutron's API -%endif %prep -%autosetup -n python-neutronclient-7.2.1 -S git -%py_req_cleanup +%autosetup -n python-neutronclient-6.7.0 %build -%{py3_build} - -%if 0%{?with_doc} -export PYTHONPATH=. -sphinx-build -W -b html doc/source doc/build/html -rm -rf doc/build/html/.doctrees doc/build/html/.buildinfo -%endif +%py2_build %install -%{py3_install} - -ln -s neutron %{buildroot}%{_bindir}/neutron-3 - -%check -%{__python3} setup.py testr || true - -%files -n python3-neutronclient -%doc README.rst -%license LICENSE -%{python3_sitelib}/neutronclient -%{python3_sitelib}/*.egg-info -%{_bindir}/neutron -%{_bindir}/neutron-3 -%exclude %{python3_sitelib}/neutronclient/tests - -%files -n python3-neutronclient-tests -%{python3_sitelib}/neutronclient/tests - -%if 0%{?with_doc} -%files doc -%doc doc/build/html -%license LICENSE -%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 python2-neutronclient -f filelist.lst +%{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog -* Thu Jan 12 2021 Python_Bot +* Tue Jun 1 2021 huangtianhua +- Adds BuildRequires python2-pbr to make obs success +* Sat May 15 2021 openstack-sig - Package Spec generated