[python3/python3.4] Add macro %python3_version_nodots

Miro Hrončok churchyard at fedoraproject.org
Thu May 22 11:25:38 UTC 2014


commit 8ab4c2d31ffea4398650ddb23c3c9f3048f5021b
Author: Miro Hrončok <miro at hroncok.cz>
Date:   Thu May 22 13:25:18 2014 +0200

    Add macro %python3_version_nodots

 macros.python3 |    1 +
 python3.spec   |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/macros.python3 b/macros.python3
index d6d913c..395af00 100644
--- a/macros.python3
+++ b/macros.python3
@@ -2,4 +2,5 @@
 %python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
 %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('.',''))")
 %py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
diff --git a/python3.spec b/python3.spec
index 123b7ad..e278396 100644
--- a/python3.spec
+++ b/python3.spec
@@ -128,7 +128,7 @@
 Summary: Version 3 of the Python programming language aka Python 3000
 Name: python3
 Version: %{pybasever}.0
-Release: 6%{?dist}
+Release: 7%{?dist}
 License: Python
 Group: Development/Languages
 
@@ -1820,6 +1820,9 @@ rm -fr %{buildroot}
 # ======================================================
 
 %changelog
+* Thu May 22 2014 Miro Hrončok <mhroncok at redhat.com> - 3.4.0-7
+- Add macro %%python3_version_nodots
+
 * Sun May 18 2014 Matej Stuchlik <mstuchli at redhat.com> - 3.4.0-6
 - Disable test_faulthandler, test_gdb on aarch64
 Resolves: rhbz#1045193


More information about the scm-commits mailing list