diff --git a/rpm/vitastor-el7.spec b/rpm/vitastor-el7.spec index 03e1ea15..9a073585 100644 --- a/rpm/vitastor-el7.spec +++ b/rpm/vitastor-el7.spec @@ -202,4 +202,8 @@ chown vitastor:vitastor /var/lib/vitastor /var/lib/one/remotes/datastore/vitastor/install.sh +# 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') + + %changelog diff --git a/rpm/vitastor-el8.spec b/rpm/vitastor-el8.spec index d43f3993..34c60cea 100644 --- a/rpm/vitastor-el8.spec +++ b/rpm/vitastor-el8.spec @@ -199,4 +199,8 @@ chown vitastor:vitastor /var/lib/vitastor /var/lib/one/remotes/datastore/vitastor/install.sh +# 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') + + %changelog diff --git a/rpm/vitastor-el9.spec b/rpm/vitastor-el9.spec index 4e6e6365..67c7ac8d 100644 --- a/rpm/vitastor-el9.spec +++ b/rpm/vitastor-el9.spec @@ -192,4 +192,8 @@ chown vitastor:vitastor /var/lib/vitastor /var/lib/one/remotes/datastore/vitastor/install.sh +# 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') + + %changelog