diff --git a/rpmlint-mini.changes b/rpmlint-mini.changes index 20de69f..6c91f2a 100644 --- a/rpmlint-mini.changes +++ b/rpmlint-mini.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 6 15:42:19 UTC 2019 - Bernhard Wiedemann + +- Sort file list to build .pyc files reproducibly + ------------------------------------------------------------------- Tue Nov 19 12:36:58 UTC 2019 - matthias.gerstner@suse.com diff --git a/rpmlint-mini.spec b/rpmlint-mini.spec index b9e32a6..f95e3a6 100644 --- a/rpmlint-mini.spec +++ b/rpmlint-mini.spec @@ -100,7 +100,10 @@ PYTHONOPTIMIZE=1 python3 -O -m compileall -b *.py rm *.py popd pushd %{buildroot}/opt/testing/%{_lib}/python%{py3_ver}/ -PYTHONOPTIMIZE=1 find -name \*.py -exec python3 -O -m compileall -b {} \; -delete +for f in `find -name \*.py | sort` ; do + PYTHONOPTIMIZE=1 python3 -O -m compileall -b $f + rm $f +done popd find %{buildroot}/opt/testing/ -name __pycache__ -print -exec rm -Rf {} + rm -rf %{buildroot}/{usr,etc}