PATH:
usr
/
lib
/
rpm
/
macros.d
%__python2 /usr/bin/python2 %python2_sitelib %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())") %python2_sitearch %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") %python2_version %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "import sys; sys.stdout.write('{0.major}.{0.minor}'.format(sys.version_info))") %python2_version_nodots %(RHEL_ALLOW_PYTHON2_FOR_BUILD=1 %{__python2} -Esc "import sys; sys.stdout.write('{0.major}{0.minor}'.format(sys.version_info))") %py2_shbang_opts -s # Use the slashes after expand so that the command starts on the same line as # the macro %py2_build() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} build --executable="%{__python2} %{py2_shbang_opts}" %{?*} sleep 1 } %py2_build_egg() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} bdist_egg %{?*} sleep 1 } %py2_build_wheel() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} bdist_wheel %{?*} sleep 1 } %py2_install() %{expand:\\\ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\ %{__python2} %{py_setup} %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?*} } %py2_install_egg() %{expand:\\\ mkdir -p %{buildroot}%{python2_sitelib} easy_install-%{python2_version} -m --prefix %{buildroot}%{_prefix} -Z dist/*-py%{python2_version}.egg %{?*} } %py2_install_wheel() %{expand:\\\ pip%{python2_version} install -I dist/%{1} --root %{buildroot} --strip-file-prefix %{buildroot} --no-deps }
[-] macros.alt-python38
[edit]
[-] macros.valgrind-srpm
[edit]
[-] macros.perl-srpm
[edit]
[-] macros.systemtap
[edit]
[-] macros.alt-python312
[edit]
[-] macros.fedora-misc-srpm
[edit]
[-] macros.selinux-policy
[edit]
[-] macros.ldc-srpm
[edit]
[-] macros.forge
[edit]
[-] macros.nodejs-srpm
[edit]
[-] macros.ghc-srpm
[edit]
[-] macros.alt-python313
[edit]
[-] macros.environment-modules
[edit]
[-] macros.python-srpm
[edit]
[-] macros.openblas-srpm
[edit]
[-] macros.firewalld
[edit]
[-] macros.fedora-misc
[edit]
[-] macros.info
[edit]
[-] macros.rust-srpm
[edit]
[-] macros.go-srpm
[edit]
[-] macros.kernel-srpm
[edit]
[-] macros.efi-srpm
[edit]
[+]
..
[-] macros.alt-python39
[edit]
[-] macros.pybytecompile
[edit]
[-] macros.vpath
[edit]
[-] macros.perl
[edit]
[-] macros.scl
[edit]
[-] macros.qt5-qtbase
[edit]
[-] macros.dwz
[edit]
[-] macros.vim
[edit]
[-] macros.python
[edit]
[-] macros.ocaml-srpm
[edit]
[-] macros.alt-python311
[edit]
[-] macros.ruby
[edit]
[-] macros.systemd
[edit]
[-] macros.mono-srpm
[edit]
[-] macros.python2
[edit]
[-] macros.python3
[edit]
[-] macros.alt-python310
[edit]
[-] macros.ldconfig
[edit]