diff --git a/libreoffice.spec b/libreoffice.spec index a9e883f..1ed6bcb 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1321,8 +1321,8 @@ chrpath --delete %{buildroot}%{_libdir}/%{name}/program/librasqal-lo.so.3 # Move python cache to respective filelist for i in file-lists/*.txt; do - if [ `cat "${i}" | grep py |wc -l` -gt 0 ]; then - cat "${i}" | grep py > pyfiles.txt + if [ `cat "${i}" | grep '\.py$' |wc -l` -gt 0 ]; then + cat "${i}" | grep '\.py$' > pyfiles.txt for j in `cat pyfiles.txt`; do # python3 has __pycache__ dir while py2 does not %if %{with newmedia}