mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 15:22:50 +00:00
25 lines
1.2 KiB
Text
25 lines
1.2 KiB
Text
%__python3 /usr/bin/python3
|
|
%python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
%python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
|
%python3_version %(%{__python3} -c "import sys; print(sys.version[0:3])")
|
|
%py3_ver %(%{__python3} -c "import sys; v=sys.version_info[:2]; print('%%d.%%d'%%v)" 2>/dev/null || echo PYTHON-NOT-FOUND)
|
|
%py3_prefix %(%{__python3} -c "import sys; print(sys.prefix)" 2>/dev/null || echo PYTHON-NOT-FOUND)
|
|
%py3_platsitedir %python3_sitearch
|
|
%py3_puresitedir %python3_sitelib
|
|
%py3_incdir %(%{__python3} -c 'from distutils.sysconfig import get_python_inc; print(get_python_inc())' 2>/dev/null || echo PYTHON-INCLUDEDIR-NOT-FOUND)
|
|
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
|
%py_setup setup.py
|
|
|
|
%py3_shbang_opts -s
|
|
|
|
%py3_build() %{expand:\
|
|
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?1}\
|
|
}
|
|
|
|
%py3_install() %{expand:\
|
|
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\
|
|
}
|
|
|
|
%py3_test() %{expand:\
|
|
%{__python3} %{py_setup} %{?py_setup_args} test %{?1}\
|
|
}
|