From: JinWang An Date: Thu, 19 Jan 2023 06:44:12 +0000 (+0900) Subject: Remove modules and library to avoid of conflict python3 and python3-base X-Git-Tag: submit/tizen_base/20230119.065431^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8fd084c8f567b8afac5ef720fa520ca147c7a0f;p=platform%2Fupstream%2Fpython3.git Remove modules and library to avoid of conflict python3 and python3-base Change-Id: I39b9d5fab10538c9086248a30477ababaf2866fc Signed-off-by: JinWang An --- diff --git a/packaging/python3.spec b/packaging/python3.spec index 25ff05db..ffc0d33e 100644 --- a/packaging/python3.spec +++ b/packaging/python3.spec @@ -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