[python] Add python2_version_nodots macro

Matej Stuchlik mstuchli at fedoraproject.org
Thu Nov 13 14:05:17 UTC 2014


commit 6875a63831616c6c8e722632e24faaa1a09cc831
Author: Matej Stuchlik <mstuchli at redhat.com>
Date:   Thu Nov 13 15:04:28 2014 +0100

    Add python2_version_nodots macro

 macros.python2 |    1 +
 python.spec    |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/macros.python2 b/macros.python2
index 982b51f..d090296 100644
--- a/macros.python2
+++ b/macros.python2
@@ -2,3 +2,4 @@
 %python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
 %python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
 %python2_version %(%{__python2} -c "import sys; sys.stdout.write(sys.version[:3])")
+%python2_version_nodots %(%{__python2} -c "import sys; sys.stdout.write(sys.version[:3].replace('.',''))")
diff --git a/python.spec b/python.spec
index 0fed02a..97ebfb8 100644
--- a/python.spec
+++ b/python.spec
@@ -106,7 +106,7 @@ Summary: An interpreted, interactive, object-oriented programming language
 Name: %{python}
 # Remember to also rebase python-docs when changing this:
 Version: 2.7.8
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: Python
 Group: Development/Languages
 Requires: %{python}-libs%{?_isa} = %{version}-%{release}
@@ -2091,6 +2091,9 @@ rm -fr %{buildroot}
 # ======================================================
 
 %changelog
+* Thu Nov 13 2014 Matej Stuchlik <mstuchli at redhat.com> - 2.7.8-9
+- Add python2_version_nodots macro
+
 * Mon Nov 10 2014 Slavek Kabrda <bkabrda at redhat.com> - 2.7.8-8
 - Revert previous change, see rhbz#1161166#c6.
 


More information about the scm-commits mailing list