Pour désactiver le script de brp-python-bytecompile dans un fichier spec, il faut procéder comme suit:

# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')