Blame SOURCES/macros.python3

8dc7a2
# define these macros in a way which will expand them to correct values even for non-scl-build, assuming 's/@scl@//'
8dc7a2
%@scl@__python3
8dc7a2
%@scl@__python %@scl@__python3
8dc7a2
%@scl@python3_sitelib %(%{?scl:scl enable @vendorscl@ '}%{@scl@__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"%{?scl:'})
8dc7a2
%@scl@python_sitelib %@scl@python3_sitelib
8dc7a2
%@scl@python3_sitearch %(%{?scl:scl enable @vendorscl@ '}%{@scl@__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))"%{?scl:'})
8dc7a2
%@scl@python_sitearch %@scl@python3_sitearch
8dc7a2
%@scl@python3_version %(%{?scl:scl enable @vendorscl@ '}%{@scl@__python3} -c "import sys; sys.stdout.write(sys.version[:3])"%{?scl:'})
8dc7a2
%@scl@python_version %@scl@python3_version
8dc7a2
8dc7a2
# these macros won't be needed if doing non-scl build, so define them in a way that won't overwrite system ones
8dc7a2
%@scl@_os_install_post \
8dc7a2
    /usr/lib/rpm/brp-scl-compress %{_scl_root} \
8dc7a2
    %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip} \
8dc7a2
    /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
8dc7a2
    } \
8dc7a2
    /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
8dc7a2
    %{!?_turn_off_bytecompile:scl enable @vendorscl@ '/usr/lib/rpm/redhat/brp-python-bytecompile-with-scl-python-35 %@scl@__python3 %{?_python_bytecompile_errors_terminate_build} %{_scl_root}'} \
8dc7a2
    /usr/lib/rpm/redhat/brp-python-hardlink
8dc7a2
8dc7a2
8dc7a2
%_python_bytecompile_errors_terminate_build 1
8dc7a2