Dont package .pickl file
because it is not needed and will cause packages to differ for every build. See https://reproducible-builds.org/ for why this matters. Also dont use rm -f so we notice when we use the wrong path Change-Id: Iea324d8d2ec2723b567270379c056d29a39e375f
This commit is contained in:
@@ -62,7 +62,7 @@ This package contains auto-generated documentation.
|
||||
|
||||
PBR_VERSION=%{version} sphinx-build -b html doc/source doc/build/html
|
||||
# Fix hidden-file-or-dir warnings
|
||||
rm -rf html/.doctrees html/.buildinfo
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%check
|
||||
# FIXME: only run unittests for now.
|
||||
|
@@ -121,6 +121,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b html doc/source doc/build/html
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b man doc/source doc/build/man
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
# config file generation
|
||||
PYTHONPATH=. oslo-config-generator --config-file tools/config/cyborg-config-generator.conf \
|
||||
|
@@ -31,6 +31,7 @@ Python Statsd library for sending statsd messages via the Monasca Agent
|
||||
%build
|
||||
%{py2_build}
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b html doc/source doc/build/html
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%{py2_install}
|
||||
|
@@ -67,6 +67,7 @@ This package contains documentation files for %{name}.
|
||||
%{python_build}
|
||||
|
||||
PYTHONPATH=. sphinx-build -b html doc/source doc/build/html
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%{python_install}
|
||||
|
@@ -68,7 +68,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
|
||||
# Build HTML docs and man page
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b html doc/source doc/build/html
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%{python_install}
|
||||
|
@@ -84,7 +84,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
# Build HTML docs and man page
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b html doc/source doc/build/html
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b man doc/source doc/build/man
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%{python_install}
|
||||
|
@@ -71,6 +71,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
|
||||
# Build HTML docs and man page
|
||||
PBR_VERSION=%version sphinx-build -b html doc/source doc/build/html
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
|
@@ -90,6 +90,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
# Build HTML docs and man page
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b html doc/source doc/build/html
|
||||
PBR_VERSION={{ upstream_version }} sphinx-build -b man doc/source doc/build/man
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%{python_install}
|
||||
|
@@ -64,7 +64,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
# Generate html docs
|
||||
PBR_VERSION=%version sphinx-build -b html doc/source doc/build/html
|
||||
# Remove the Sphinx-build leftovers
|
||||
rm -rf html/.{doctrees,buildinfo}
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
|
@@ -63,6 +63,7 @@ sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
||||
|
||||
# Build HTML docs and man page
|
||||
PBR_VERSION=%{version} sphinx-build -b html doc/source doc/build/html
|
||||
rm -r doc/build/html/.{doctrees,buildinfo}
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
|
Reference in New Issue
Block a user