177 |
- |
1 |
# use the underscored macros to redefine the behavior of %%python3_version etc.
|
132 |
- |
2 |
%__python3 /usr/bin/python3.4
|
177 |
- |
3 |
|
|
|
4 |
# use the non-underscored macros to refer to Python in spec, etc.
|
|
|
5 |
%python3 %__python3
|
|
|
6 |
|
132 |
- |
7 |
#__python3_other /usr/bin/python3.5
|
177 |
- |
8 |
#python3_other %%__python3_other
|
132 |
- |
9 |
|
|
|
10 |
%python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
|
|
|
11 |
%python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
|
|
12 |
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
|
|
13 |
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
|
|
14 |
%python3_platform %(%{__python3} -Ic "import sysconfig; print(sysconfig.get_platform())")
|
|
|
15 |
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
|
|
16 |
|
|
|
17 |
%py3_shbang_opts -s
|
|
|
18 |
|
|
|
19 |
%py3_build() %{expand:\
|
|
|
20 |
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} build --executable="%{__python3} %{py3_shbang_opts}" %{?1};\
|
|
|
21 |
sleep 1\
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
%py3_install() %{expand:\
|
|
|
25 |
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}\
|
|
|
26 |
}
|