132 |
- |
1 |
%__python3 /usr/bin/python3.4
|
|
|
2 |
#__python3_other /usr/bin/python3.5
|
|
|
3 |
|
|
|
4 |
%python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
|
5 |
%python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
|
|
6 |
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
|
|
7 |
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
|
|
8 |
%python3_platform %(%{__python3} -Ic "import sysconfig; print(sysconfig.get_platform())")
|
|
|
9 |
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
|
|
10 |
|
|
|
11 |
%py3_shbang_opts -s
|
|
|
12 |
|
|
|
13 |
%py3_build() %{expand:\
|
|
|
14 |
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?1};\
|
|
|
15 |
sleep 1\
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
%py3_install() %{expand:\
|
|
|
19 |
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\
|
|
|
20 |
}
|