Add py_req_cleanup macro to all Python spec templates

Fedora specs use to remove requirements.txt and test-requirements.txt
during %prep, to prevent any attempt to download from PyPi while building.

We now have a py_req_cleanup macro in openstack-macros, so let's use it.
This will only change the outcome in packages using centos.

Change-Id: I7d7a27d4909990a9d26433cd65e799cae3af7904
This commit is contained in:
Javier Pena
2016-10-11 17:00:11 +02:00
parent 3f7464d2e0
commit a948fc29a5
87 changed files with 87 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ Documentation for OpenStack bareon tool.
%prep
%autosetup -n %{sname}-%{sversion}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -73,6 +73,7 @@ Documentation for the OpenStack Integration Test Suite.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -51,6 +51,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -36,6 +36,7 @@ Documentation for the Automaton library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -44,6 +44,7 @@ This package contains the documentation
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -45,6 +45,7 @@ This package contains documentation in HTML format.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -49,6 +49,7 @@ This package contains documentation files for %{name}.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -55,6 +55,7 @@ This package contains documentation in HTML format.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -48,6 +48,7 @@ This package contains documentation in HTML format.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -36,6 +36,7 @@ Useful additions to futures from the future.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -70,6 +70,7 @@ Documentation for the Glance store library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
# NOTE(toabctl): Can be removed when https://review.openstack.org/364532 is included
sed -i -e 's/^\(html_last_updated_fmt.*\)\(git_cmd\)/\1"\/usr\/bin\/true"/' doc/source/conf.py

View File

@@ -48,6 +48,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -27,6 +27,7 @@ governance <http://governance.openstack.org/reference/projects/ironic.html>`
%prep
%autosetup -n ironic-lib-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -56,6 +56,7 @@ Documentation for OpenStack authenticating tools.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -61,6 +61,7 @@ Documentation for Middleware for OpenStack Identity.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -28,6 +28,7 @@ headers parsing library.
%prep
%autosetup -n microversion_parse-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -41,6 +41,7 @@ This package contains documentation in HTML format.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -32,6 +32,7 @@ Tools used by the OpenStack Documentation Project.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -25,6 +25,7 @@ to docs.openstack.org. Intended for use by OpenStack projects.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -51,6 +51,7 @@ This package contains documentation files for %{name}.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -40,6 +40,7 @@ expand / collapse all sections.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -69,6 +69,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -53,6 +53,7 @@ Documentation for the os-client-config library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -38,6 +38,7 @@ Documentation for the testr wrapper.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -52,6 +52,7 @@ in OpenStack.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -50,6 +50,7 @@ Documentation for the Hyper-V library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -54,6 +54,7 @@ Documentation for the OpenStack client library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{__python2} setup.py build

View File

@@ -45,6 +45,7 @@ Documentation for the OpenStack Oslo cache library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -51,6 +51,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -51,6 +51,7 @@ Documentation for the oslo-config library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -34,6 +34,7 @@ Documentation for the oslo-context library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -62,6 +62,7 @@ Documentation for the Oslo database handling library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -31,6 +31,7 @@ Documentation for the oslo.i18n library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -52,6 +52,7 @@ Documentation for the oslo.log library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -86,6 +86,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -55,6 +55,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -40,6 +40,7 @@ Documentation for the Oslo Policy library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -48,6 +48,7 @@ Documentation for oslo.privsep
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -44,6 +44,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -42,6 +42,7 @@ Documentation for the OpenStack %{sname} library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -39,6 +39,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -63,6 +63,7 @@ This package contains the documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -50,6 +50,7 @@ Documentation for OpenStack utils library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -56,6 +56,7 @@ This package contains documentation files for %{name}.
%prep
%autosetup -n oslo.versionedobjects-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -60,6 +60,7 @@ Documentation for OpenStack common VMware library.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -22,6 +22,7 @@ layer of Sphinx plugins.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -36,6 +36,7 @@ better support for mocking results.
%prep
%autosetup -n oslotest-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -43,6 +43,7 @@ Documentation for OSProfiler.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -36,6 +36,7 @@ Documentation for the DMTF Cloud Audit (CADF) data model.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -31,6 +31,7 @@ Documentation for python module name to package name map library.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -48,6 +48,7 @@ Openstack Key Management API
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
# Remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

View File

@@ -56,6 +56,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -53,6 +53,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -50,6 +50,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -66,6 +66,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -44,6 +44,7 @@ Documentation for the OpenStack DNS as a Service - Client.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -38,6 +38,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -48,6 +48,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -53,6 +53,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -57,6 +57,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -33,6 +33,7 @@ This package contains Python client and command line tool for Ironic Inspector.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -64,6 +64,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -39,6 +39,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -57,6 +57,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -54,6 +54,7 @@ Identity API.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -57,6 +57,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -64,6 +64,7 @@ This package contains the testsuite.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -46,6 +46,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -61,6 +61,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -61,6 +61,7 @@ Neutron's API.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -79,6 +79,7 @@ This package contains the testsuite.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -39,6 +39,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -75,6 +75,7 @@ This package contains auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -51,6 +51,7 @@ Python client library for interacting with OpenStack Sahara API.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
# FIXME: can be removed when https://review.openstack.org/#/c/363681/ is merged
sed -i -e 's/^\s\{4\}git_cmd\(.*\)/ "\/usr\/bin\/true"\1/' doc/source/conf.py

View File

@@ -40,6 +40,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -67,6 +67,7 @@ auto-generated documentation.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
# FIXME: can be removed when https://review.openstack.org/#/c/377314/ is released
sed -i -e 's/^\s\{4\}git_cmd\(.*\)/ "\/usr\/bin\/true"\1/' doc/source/conf.py

View File

@@ -61,6 +61,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -40,6 +40,7 @@ This package contains documentation files for %{name}.
%prep
%autosetup -n %{sname}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -53,6 +53,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%{py2_build}

View File

@@ -57,6 +57,7 @@ DBaaS API.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -51,6 +51,7 @@ This package contains the documentation.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -55,6 +55,7 @@ Zaqar Queueing API.
%prep
%autosetup -n %{name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -49,6 +49,7 @@ This package contains documentation in HTML format.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -76,6 +76,7 @@ This package contains the associated documentation.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -37,6 +37,7 @@ OpenStack Functional Testing Library
%prep
%autosetup -n tempest-lib-%{version}
%py_req_cleanup
%build
%{__python2} setup.py build

View File

@@ -52,6 +52,7 @@ This package contains documentation in HTML format.
%prep
%autosetup -n %{pypi_name}-%{version}
%py_req_cleanup
%build
%py2_build

View File

@@ -36,6 +36,7 @@ written in python and is distributed via PyPI.
%prep
%autosetup -n yaql-%{version}
%py_req_cleanup
%build
%py2_build