Cleanup parts of the installation
This commit is contained in:
parent
49ad6567e8
commit
f83fb49449
19
pypy3.9.spec
19
pypy3.9.spec
@ -454,19 +454,21 @@ BuildPyPy \
|
||||
rm %{packaged_prefix}/bin/python*
|
||||
# 2. remove the "pypy" symbolic link, we still want pypy2 to be that for now
|
||||
rm %{packaged_prefix}/bin/pypy
|
||||
# 3. remove the "pypy3"symbolic link, if this is not the main pypy3
|
||||
# 3. remove the "pypy3" symbolic link, if this is not the main pypy3
|
||||
%{!?with_main_pypy3:rm %{packaged_prefix}/bin/pypy3}
|
||||
# 4. move libpypy3.9-c.so to lib(64) and soname version it
|
||||
# 4. remove the .debug executbale and library
|
||||
rm %{packaged_prefix}/bin/*.debug
|
||||
# 5. move libpypy3.9-c.so to lib(64) and soname version it
|
||||
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_downstream_so_name_versioning
|
||||
mv %{packaged_prefix}/bin/libpypy%{pyversion}-c.so %{packaged_prefix}/%{_lib}/libpypy%{pyversion}-c.so.%{soname_version}
|
||||
ln -s libpypy%{pyversion}-c.so.%{soname_version} %{packaged_prefix}/%{_lib}/libpypy%{pyversion}-c.so
|
||||
patchelf --set-soname libpypy%{pyversion}-c.so.%{soname_version} %{packaged_prefix}/%{_lib}/libpypy%{pyversion}-c.so
|
||||
patchelf --replace-needed libpypy%{pyversion}-c.so libpypy%{pyversion}-c.so.%{soname_version} %{packaged_prefix}/bin/pypy%{pyversion}
|
||||
# 5. remove stray README
|
||||
# 6. remove stray README
|
||||
rm %{packaged_prefix}/include/README
|
||||
# 6. copy the main LICENSE file to pypy's libdir, as does CPython
|
||||
# 7. copy the main LICENSE file to pypy's libdir, as does CPython
|
||||
cp -a LICENSE %{packaged_prefix}/%{_lib}/pypy%{pyversion}
|
||||
# 7. Remove sources, we don't install them
|
||||
# 8. remove sources, we don't install them
|
||||
rm -r %{packaged_prefix}/%{_lib}/pypy%{pyversion}/_blake2/impl
|
||||
rm -r %{packaged_prefix}/%{_lib}/pypy%{pyversion}/_libmpdec
|
||||
rm -r %{packaged_prefix}/%{_lib}/pypy%{pyversion}/_sha3/kcp
|
||||
@ -590,13 +592,6 @@ cp -a rpython/jit/tool/pypytrace-mode.elc %{buildroot}/%{_emacs_sitelispdir}/pyp
|
||||
install -m0644 -p -D -t %{buildroot}/%{_rpmconfigdir}/macros.d %{SOURCE2}
|
||||
%endif
|
||||
|
||||
# wtf? This is probably masking some bigger problem, but let's do this for now
|
||||
mv -v lib-python/3/test/regrtest.py-new lib-python/3/test/regrtest.py || :
|
||||
|
||||
# since 5.10.0, the debug binaries are built and shipped, making the
|
||||
# pypy3 package ~350 MiB. let's remove them here for now and TODO figure out why
|
||||
rm -f %{buildroot}%{_bindir}/*.debug
|
||||
|
||||
|
||||
%check
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user