2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Merge pull request #7234 from gurevichmark/platform_python

Prevent rpmbuild from checking and modifying interpreter directives
This commit is contained in:
besawn 2022-08-11 16:15:44 -04:00 committed by GitHub
commit c9505b44c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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