Add macro with pypy version (aka 5.10, not 3.5)

This commit is contained in:
Miro Hrončok 2018-04-11 12:09:36 +02:00
parent df12619f2b
commit fe844b70bd
2 changed files with 5 additions and 1 deletions

View File

@ -2,3 +2,4 @@
%pypy3_sitelib %(%{__pypy3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
%pypy3_sitearch %(%{__pypy3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
%pypy3_version %(%{__pypy3} -c "import sys; sys.stdout.write(sys.version[:3])")
%pypy3_pypy_version %(%{__pypy3} -c "import sys; sys.stdout.write('{}.{}'.format(sys.pypy_version_info.major, sys.pypy_version_info.minor))")

View File

@ -2,7 +2,7 @@
Name: pypy3
Version: %{basever}.1
%global pyversion 3.5
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Python 3 implementation with a Just-In-Time compiler
# LGPL and another free license we'd need to ask spot about are present in some
@ -822,6 +822,9 @@ CheckPyPy %{name}-stackless
%changelog
* Wed Apr 11 2018 Miro Hrončok <mhroncok@redhat.com> - 5.10.1-6
- RPM macros improvements
* Tue Apr 10 2018 Michal Cyprian <mcyprian@redhat.com> - 5.10.1-5
- Remove the rightmost version number from the path
- rhbz#1516885: https://bugzilla.redhat.com/show_bug.cgi?id=1516885