Stop shipping C sources, move some headers to -devel, one to -test
This commit is contained in:
parent
2c935f984e
commit
a2df6900a7
@ -20,6 +20,7 @@ addFilter(r'only-non-binary-in-usr-lib')
|
||||
# some devel files that are deliberately needed
|
||||
addFilter(r'devel-file-in-non-devel-package /usr/include/pypy3\.\d+m?/pyconfig-(32|64)\.h')
|
||||
addFilter(r'devel-file-in-non-devel-package /usr/lib(64)?/pypy3\.\d+/distutils/tests/xxmodule\.c')
|
||||
addFilter(r'devel-file-in-non-devel-package /usr/lib(64)?/pypy3\.\d+/_.*test.*\.[ch]')
|
||||
|
||||
# SORRY, NOT SORRY:
|
||||
# manual pages
|
||||
|
14
pypy3.9.spec
14
pypy3.9.spec
@ -471,6 +471,12 @@ patchelf --replace-needed libpypy%{pyversion}-c.so libpypy%{pyversion}-c.so.%{so
|
||||
rm %{packaged_prefix}/include/README
|
||||
# 6. 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
|
||||
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
|
||||
rm -r %{packaged_prefix}/%{_lib}/pypy%{pyversion}/_cffi_ssl/_cffi_src/openssl/src
|
||||
rm %{packaged_prefix}/%{_lib}/pypy%{pyversion}/_pypy_*.c
|
||||
|
||||
# Create the prefix and move stuff into it
|
||||
mkdir -p %{buildroot}%{_prefix}
|
||||
@ -763,6 +769,11 @@ CheckPyPy pypy%{pyversion}-c
|
||||
%exclude %{pypylibdir}/*/test/
|
||||
%exclude %{pypylibdir}/*/tests/
|
||||
%exclude %{pypylibdir}/idlelib/idle_test/
|
||||
%exclude %{pypylibdir}/testcapi_long.h
|
||||
|
||||
# Keep this synced with %%files devel below
|
||||
%exclude %{pypylibdir}/cffi/*.h
|
||||
%exclude %{pypylibdir}/hpy/devel/
|
||||
|
||||
|
||||
%files test
|
||||
@ -777,6 +788,7 @@ CheckPyPy pypy%{pyversion}-c
|
||||
%{pypylibdir}/*/test/
|
||||
%{pypylibdir}/*/tests/
|
||||
%{pypylibdir}/idlelib/idle_test/
|
||||
%{pypylibdir}/testcapi_long.h
|
||||
|
||||
|
||||
%files devel
|
||||
@ -786,6 +798,8 @@ CheckPyPy pypy%{pyversion}-c
|
||||
%if %{with main_pypy3}
|
||||
%{_rpmconfigdir}/macros.d/macros.pypy3
|
||||
%endif
|
||||
%{pypylibdir}/cffi/*.h
|
||||
%{pypylibdir}/hpy/devel/
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user