From ef7f75882aad4f71bf7f5c590ebac19f19f1103f Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Mon, 9 Jul 2018 14:44:54 -0500 Subject: [PATCH] Add %python3(_other)?_platform macros. --- macros.python3 | 1 + macros.python3_other | 1 + python-rpm-macros.spec | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/macros.python3 b/macros.python3 index 2313da2..a188a7f 100644 --- a/macros.python3 +++ b/macros.python3 @@ -4,6 +4,7 @@ %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_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} %py3_shbang_opts -s diff --git a/macros.python3_other b/macros.python3_other index a15dca5..320b151 100644 --- a/macros.python3_other +++ b/macros.python3_other @@ -4,6 +4,7 @@ %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_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 diff --git a/python-rpm-macros.spec b/python-rpm-macros.spec index 7ee0f1e..72ac71e 100644 --- a/python-rpm-macros.spec +++ b/python-rpm-macros.spec @@ -1,6 +1,6 @@ Name: python-rpm-macros Version: 3 -Release: 20%{?dist} +Release: 21%{?dist} Summary: The unversioned Python RPM macros License: MIT @@ -65,6 +65,9 @@ install -m 644 %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} \ %changelog +* Mon Jul 09 2018 Jason L Tibbitts III - 3-21 +- Backport %%python3_platform and add %%python3_other_platform. + * Thu Jun 21 2018 Tadej Janež - 3-20 - Add %%python3_other_* counterparts for %%python3_* macros in EPEL 7