Include the Python version in Release to workaround debuginfo conflicts

and make pypy versions with otherwise the same version-release always sorted
by Python version as well.

This potentially allows tags like Obsoletes: pypy3 < %{version}-%{release}.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2053880
This commit is contained in:
Miro Hrončok 2022-03-02 00:00:43 +01:00
parent a22e7e57d1
commit e46ca72767
1 changed files with 11 additions and 1 deletions

View File

@ -5,7 +5,12 @@
Name: pypy%{pyversion}
Version: %{basever}.%{micro}%{?pre:~%{pre}}
%global version_ %{basever}.%{micro}%{?pre}
Release: 1%{?dist}
# The Python version is included in Release to workaround debuginfo conflicts
# and make pypy versions with otherwise the same version-release always sorted
# by Python version as well.
# This potentially allows tags like Obsoletes: pypy3 < %%{version}-%%{release}.
# https://bugzilla.redhat.com/2053880
Release: 1.%{pyversion}%{?dist}
Summary: Python %{pyversion} implementation with a Just-In-Time compiler
# PyPy is MIT
@ -805,6 +810,11 @@ CheckPyPy pypy%{pyversion}-c
%changelog
* Tue Mar 01 2022 Miro Hrončok <mhroncok@redhat.com> - 7.3.8-1.3.9
- Include the Python version in Release to workaround debuginfo conflicts
and make same builds of different PyPy sort in a predictable way (e.g. wrt Obsoletes)
- Fixes: rhbz#2053880
* Tue Feb 22 2022 Miro Hrončok <mhroncok@redhat.com> - 7.3.8-1
- Update to 7.3.8 final