Add %python3(_other)?_platform macros.
This commit is contained in:
parent
8ef228123a
commit
ef7f75882a
|
@ -4,6 +4,7 @@
|
||||||
%python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
%python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
||||||
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
%python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")
|
||||||
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
%python3_version_nodots %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
||||||
|
%python3_platform %(%{__python3} -Ic "import sysconfig; print(sysconfig.get_platform())")
|
||||||
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||||
|
|
||||||
%py3_shbang_opts -s
|
%py3_shbang_opts -s
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
%python3_other_sitearch %(%{__python3_other} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
%python3_other_sitearch %(%{__python3_other} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
|
||||||
%python3_other_version %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3])")
|
%python3_other_version %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3])")
|
||||||
%python3_other_version_nodots %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
%python3_other_version_nodots %(%{__python3_other} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
|
||||||
|
%python3_other_platform %(%{__python3_other} -Ic "import sysconfig; print(sysconfig.get_platform())")
|
||||||
|
|
||||||
%py3_other_shbang_opts -s
|
%py3_other_shbang_opts -s
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Name: python-rpm-macros
|
Name: python-rpm-macros
|
||||||
Version: 3
|
Version: 3
|
||||||
Release: 20%{?dist}
|
Release: 21%{?dist}
|
||||||
Summary: The unversioned Python RPM macros
|
Summary: The unversioned Python RPM macros
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
|
@ -65,6 +65,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 09 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 3-21
|
||||||
|
- Backport %%python3_platform and add %%python3_other_platform.
|
||||||
|
|
||||||
* Thu Jun 21 2018 Tadej Janež <tadej.j@nez.si> - 3-20
|
* Thu Jun 21 2018 Tadej Janež <tadej.j@nez.si> - 3-20
|
||||||
- Add %%python3_other_* counterparts for %%python3_* macros in EPEL 7
|
- Add %%python3_other_* counterparts for %%python3_* macros in EPEL 7
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue