Remove modules and library to avoid of conflict python3 and python3-base 54/287054/1 sandbox/backup/python3-3.11.1_20230308 sandbox/backup/python3_3.11.1_20230127 accepted/tizen/base/tool/20230125.052044 accepted/tizen/base/tool/20230211.150853 submit/tizen_base/20230119.065431 submit/tizen_base/20230210.080112
authorJinWang An <jinwang.an@samsung.com>
Thu, 19 Jan 2023 06:44:12 +0000 (15:44 +0900)
committerJinWang An <jinwang.an@samsung.com>
Thu, 19 Jan 2023 06:44:12 +0000 (15:44 +0900)
Change-Id: I39b9d5fab10538c9086248a30477ababaf2866fc
Signed-off-by: JinWang An <jinwang.an@samsung.com>
packaging/python3.spec

index 25ff05dbf0df286d1a322fe33faafab596e62c7c..ffc0d33e4933f87ecd641fddbdd3a5664f870151 100644 (file)
@@ -268,6 +268,10 @@ rm -r %{buildroot}%{sitedir}/__pycache__
 rm -r %{buildroot}%{sitedir}/site-packages
 rm %{buildroot}%{sitedir}/*.*
 
+rm -r %{buildroot}%{sitedir}/__phello__
+rm -r %{buildroot}%{sitedir}/re
+rm -r %{buildroot}%{sitedir}/tomllib
+
 for module in \
     asyncio ctypes collections concurrent distutils email encodings \
     html http \
@@ -286,7 +290,7 @@ for library in \
     unicodedata zlib _ctypes_test _testcapi xxlimited xxlimited_35 \
     _xxtestfuzz _md5 _sha1 _sha256 _sha512 _blake2 _sha3 \
     _elementtree _posixshmem _sqlite3 _statistics _testinternalcapi \
-    _xxsubinterpreters _zoneinfo pyexpat readline
+    _xxsubinterpreters _zoneinfo pyexpat readline _typing
 do
     eval rm "%{buildroot}%{sitedir}/lib-dynload/$library.*"
 done
@@ -327,10 +331,6 @@ rm -f $RPM_BUILD_ROOT%{sitedir}/lib-dynload/_gdbm.*
 %exclude %{sitedir}/sqlite3/test
 %{sitedir}/xml
 %{sitedir}/xmlrpc
-%{sitedir}/__phello__
-%{sitedir}/re
-%{sitedir}/tomllib
 
-%{dynlib _typing}
 %changelog