Replace removed /usr/lib/rpm/brp-python-bytecompile with %%py_byte_compile macros
This commit is contained in:
parent
f24f8ff0ad
commit
e90c1b5d85
28
pypy3.spec
28
pypy3.spec
|
@ -2,7 +2,7 @@
|
||||||
Name: pypy3
|
Name: pypy3
|
||||||
Version: %{basever}.4
|
Version: %{basever}.4
|
||||||
%global pyversion 3.7
|
%global pyversion 3.7
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Python 3 implementation with a Just-In-Time compiler
|
Summary: Python 3 implementation with a Just-In-Time compiler
|
||||||
|
|
||||||
# PyPy is MIT
|
# PyPy is MIT
|
||||||
|
@ -143,10 +143,6 @@ URL: http://pypy.org/
|
||||||
%global goal_dir pypy/goal
|
%global goal_dir pypy/goal
|
||||||
|
|
||||||
|
|
||||||
# Turn off the brp-python-bytecompile postprocessing script
|
|
||||||
# We manually invoke it later on, using the freshly built pypy binary
|
|
||||||
%global __brp_python_bytecompile %{nil}
|
|
||||||
|
|
||||||
# Source and patches:
|
# Source and patches:
|
||||||
Source0: https://downloads.python.org/pypy/pypy%{pyversion}-v%{version}-src.tar.bz2
|
Source0: https://downloads.python.org/pypy/pypy%{pyversion}-v%{version}-src.tar.bz2
|
||||||
|
|
||||||
|
@ -221,6 +217,9 @@ BuildRequires: expat-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
|
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
|
||||||
%ifnarch s390
|
%ifnarch s390
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
%endif
|
%endif
|
||||||
|
@ -617,19 +616,12 @@ ln -s pypy%{pyversion} %{buildroot}%{_bindir}/pypy3
|
||||||
|
|
||||||
|
|
||||||
# Bytecompile all of the .py files we ship, using our pypy binary, giving us
|
# Bytecompile all of the .py files we ship, using our pypy binary, giving us
|
||||||
# .pyc files for pypy. The script actually does the work twice (passing in -O
|
# .pyc files for pypy.
|
||||||
# the second time) but it's simplest to reuse that script.
|
|
||||||
#
|
|
||||||
# The script has special-casing for .py files below
|
|
||||||
# /usr/lib{64}/python[0-9].[0-9]
|
|
||||||
# but given that we're installing into a different path, the supplied "default"
|
|
||||||
# implementation gets used instead.
|
|
||||||
#
|
#
|
||||||
# Note that some of the test files deliberately contain syntax errors, so
|
# Note that some of the test files deliberately contain syntax errors, so
|
||||||
# we pass 0 for the second argument ("errors_terminate"):
|
# we are running it in subshell, to be able to ignore the failures and not to terminate the build.
|
||||||
/usr/lib/rpm/brp-python-bytecompile \
|
(%{py_byte_compile %{buildroot}%{pypyprefix}/bin/pypy3 %{buildroot}%{pypyprefix}}) || :
|
||||||
%{buildroot}%{pypyprefix}/bin/pypy3 \
|
|
||||||
0
|
|
||||||
|
|
||||||
%{buildroot}%{pypyprefix}/bin/pypy3 -c 'import _tkinter'
|
%{buildroot}%{pypyprefix}/bin/pypy3 -c 'import _tkinter'
|
||||||
%{buildroot}%{pypyprefix}/bin/pypy3 -c 'import tkinter'
|
%{buildroot}%{pypyprefix}/bin/pypy3 -c 'import tkinter'
|
||||||
|
@ -897,6 +889,10 @@ CheckPyPy %{name}-stackless
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 21 2021 Tomas Hrnciar <thrnciar@redhat.com> - 7.3.4-2
|
||||||
|
- Replace removed /usr/lib/rpm/brp-python-bytecompile with %%py_byte_compile macros
|
||||||
|
- Fixes: rhbz#1976656
|
||||||
|
|
||||||
* Tue May 25 2021 Miro Hrončok <mhroncok@redhat.com> - 7.3.4-1
|
* Tue May 25 2021 Miro Hrončok <mhroncok@redhat.com> - 7.3.4-1
|
||||||
- Update to 7.3.4
|
- Update to 7.3.4
|
||||||
- pypy3 is now Python 3.7
|
- pypy3 is now Python 3.7
|
||||||
|
|
Loading…
Reference in New Issue