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:
Bernhard M. Wiedemann
2018-05-16 13:30:10 +02:00
parent efc1831b69
commit e1d730c2ad
10 changed files with 10 additions and 4 deletions

View File

@@ -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.

View File

@@ -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 \

View File

@@ -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}

View File

@@ -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}

View File

@@ -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}

View File

@@ -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}

View File

@@ -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

View File

@@ -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}

View File

@@ -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

View File

@@ -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