|
Server IP : 111.118.215.156 / Your IP : 216.73.216.67 Web Server : Apache System : Linux md-in-26.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : azasoqqa ( 1858) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /etc/rpm/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
# define these macros in a way which will expand them to correct values even for non-scl-build, assuming 's/python35//'
%python35__python3 /opt/rh/rh-python35/root/usr/bin/python3
%python35__python %python35__python3
%python35python3_sitelib %(%{?scl:scl enable rh-python35 '}%{python35__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"%{?scl:'})
%python35python_sitelib %python35python3_sitelib
%python35python3_sitearch %(%{?scl:scl enable rh-python35 '}%{python35__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))"%{?scl:'})
%python35python_sitearch %python35python3_sitearch
%python35python3_version %(%{?scl:scl enable rh-python35 '}%{python35__python3} -c "import sys; sys.stdout.write(sys.version[:3])"%{?scl:'})
%python35python_version %python35python3_version
# these macros won't be needed if doing non-scl build, so define them in a way that won't overwrite system ones
%python35_os_install_post \
/usr/lib/rpm/brp-scl-compress %{_scl_root} \
%{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip} \
/usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
} \
/usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
%{!?_turn_off_bytecompile:scl enable rh-python35 '/usr/lib/rpm/redhat/brp-python-bytecompile-with-scl-python-35 %python35__python3 %{?_python_bytecompile_errors_terminate_build} %{_scl_root}'} \
/usr/lib/rpm/redhat/brp-python-hardlink
%_python_bytecompile_errors_terminate_build 1