diff --git a/xCAT-openbmc-py/xCAT-openbmc-py.spec b/xCAT-openbmc-py/xCAT-openbmc-py.spec index 563b34a2a..a323b5d8a 100644 --- a/xCAT-openbmc-py/xCAT-openbmc-py.spec +++ b/xCAT-openbmc-py/xCAT-openbmc-py.spec @@ -12,6 +12,9 @@ Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Prefix: /opt/xcat BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root +# Disable shebang mangling of python scripts +%undefine __brp_mangle_shebangs + %ifnos linux AutoReqProv: no %endif diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index e95b0b69d..0823f2a1f 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -28,6 +28,9 @@ AutoReqProv: no # Define a different location for various httpd configs in s390x mode %define httpconfigdir %(if [ "$s390x" = "1" ];then echo "xcathttpdsave"; else echo "xcat"; fi) +# Disable shebang mangling of python scripts +%undefine __brp_mangle_shebangs + # AIX will build with an arch of "ppc" # also need to fix Requires for AIX %ifos linux