brp-python-bytecompile: Prepare for 2 digit minor versions (e.g. 3.10)

This commit is contained in:
Tomas Orsava 2020-01-27 13:29:41 +01:00 committed by ignatenkobrain
parent 312bfbac26
commit 9ce99265fd
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ fi
# and below /usr/lib/python3.1/, we're targeting /usr/bin/python3.1
shopt -s nullglob
for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]$"`;
for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]+$"`;
do
python_binary=/usr/bin/$(basename $python_libdir)
real_libdir=${python_libdir/$RPM_BUILD_ROOT/}