[packages/python3] Move few libs to main package (it will work without modules now but pyrepl won't be available)

arekm arekm at pld-linux.org
Mon Mar 17 21:51:28 CET 2025


commit 95ca99689edd3324a9d17297626340b49004af29
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 17 21:44:40 2025 +0100

    Move few libs to main package (it will work without modules now but pyrepl won't be available)

 python3.spec | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/python3.spec b/python3.spec
index 484666c..07fde45 100644
--- a/python3.spec
+++ b/python3.spec
@@ -698,6 +698,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py_dyndir}/_struct.cpython-*.so
 
 # modules required by python library
+%{py_libdir}/__future__.py
 %{py_libdir}/_collections_abc.py
 %{py_libdir}/_sitebuiltins.py
 %{py_libdir}/_sysconfigdata_*.py
@@ -727,6 +728,7 @@ rm -rf $RPM_BUILD_ROOT
 %{py_libdir}/os.py
 # needed by the dynamic sys.lib patch
 %{py_libdir}/types.py
+%{py_libdir}/__pycache__/__future__.cpython-*.py[co]
 %{py_libdir}/__pycache__/_sitebuiltins.cpython-*.py[co]
 %{py_libdir}/__pycache__/_sysconfigdata_*.cpython-*.py[co]
 %{py_libdir}/__pycache__/_weakrefset.cpython-*.py[co]
@@ -757,8 +759,10 @@ rm -rf $RPM_BUILD_ROOT
 %{py_libdir}/__pycache__/types.cpython-*.py[co]
 
 # main modules needed by core python
+%{py_libdir}/_pyrepl
 %{py_libdir}/collections
 %{py_libdir}/encodings
+%{py_libdir}/importlib
 %{py_libdir}/sysconfig
 
 %dir %{py_libdir}/config-%{py_platform}
@@ -772,7 +776,6 @@ rm -rf $RPM_BUILD_ROOT
 %files modules
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/python*-modules*
-%{py_libdir}/__future__.py
 %{py_libdir}/__hello__.py
 %{py_libdir}/_aix_support.py
 %{py_libdir}/_android_support.py
@@ -1093,7 +1096,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py_dyndir}/xxsubtype.cpython-*.so
 %attr(755,root,root) %{py_dyndir}/zlib.cpython-*.so
 
-%{py_libdir}/_pyrepl
 %{py_libdir}/__phello__
 
 %dir %{py_libdir}/asyncio
@@ -1142,14 +1144,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %dir %{py_libdir}/idlelib
 
-%dir %{py_libdir}/importlib
-%{py_libdir}/importlib/__pycache__
-%{py_libdir}/importlib/*.py
-%dir %{py_libdir}/importlib/metadata
-%{py_libdir}/importlib/metadata/__pycache__
-%{py_libdir}/importlib/metadata/*.py
-%{py_libdir}/importlib/resources
-
 %dir %{py_libdir}/json
 %{py_libdir}/json/__pycache__
 %{py_libdir}/json/*.py
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3.git/commitdiff/95ca99689edd3324a9d17297626340b49004af29



More information about the pld-cvs-commit mailing list