!175 python3-devel内部tkinter功能拆分出python3-tkinter子包

From: @tong_1001 
Reviewed-by: @renxichen, @huangduirong, @gaoruoshu, @lvying6 
Signed-off-by: @lvying6
This commit is contained in:
openeuler-ci-bot 2022-08-15 02:40:59 +00:00 committed by Gitee
commit c88bb2d800
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language
URL: https://www.python.org/ URL: https://www.python.org/
Version: 3.10.2 Version: 3.10.2
Release: 6 Release: 7
License: Python-2.0 License: Python-2.0
%global branchversion 3.10 %global branchversion 3.10
@ -144,8 +144,6 @@ Provides: python3-idle
Obsoletes: python3-idle Obsoletes: python3-idle
Provides: python3-test Provides: python3-test
Obsoletes: python3-test Obsoletes: python3-test
Provides: python3-tkinter
Obsoletes: python3-tkinter
Provides: %{name}-tools = %{version}-%{release} Provides: %{name}-tools = %{version}-%{release}
Obsoletes: %{name}-tools < %{version}-%{release} Obsoletes: %{name}-tools < %{version}-%{release}
@ -153,11 +151,22 @@ Obsoletes: %{name}-tools < %{version}-%{release}
This package contains the header files and configuration needed to develop This package contains the header files and configuration needed to develop
python3 modules. python3 modules.
%package tkinter
Summary: A GUI toolkit for Python
Requires: %{name} = %{version}-%{release}
Provides: %{name}-turtle = %{version}-%{release}
Provides: %{name}-tkinter = %{version}-%{release}
%description tkinter
The Tkinter (Tk interface) library is a graphical user interface toolkit for
the Python programming language.
%package debug %package debug
Summary: Debug version of the Python runtime Summary: Debug version of the Python runtime
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-tkinter = %{version}-%{release}
%description debug %description debug
python3-debug provides a version of the Python runtime with numerous debugging python3-debug provides a version of the Python runtime with numerous debugging
@ -659,17 +668,6 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_datadir}/icons/hicolor/*/apps/idle3.* %{_datadir}/icons/hicolor/*/apps/idle3.*
%{pylibdir}/tkinter
%exclude %{pylibdir}/tkinter/test
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
%{pylibdir}/turtle.py
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
%dir %{pylibdir}/turtledemo
%{pylibdir}/turtledemo/*.py
%{pylibdir}/turtledemo/*.cfg
%dir %{pylibdir}/turtledemo/__pycache__/
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
%{pylibdir}/ctypes/test %{pylibdir}/ctypes/test
%{pylibdir}/distutils/tests %{pylibdir}/distutils/tests
%{pylibdir}/sqlite3/test %{pylibdir}/sqlite3/test
@ -684,7 +682,6 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so %{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
%{dynload_dir}/_xxtestfuzz.%{SOABI_optimized}.so %{dynload_dir}/_xxtestfuzz.%{SOABI_optimized}.so
%{pylibdir}/lib2to3/tests %{pylibdir}/lib2to3/tests
%{pylibdir}/tkinter/test
%{pylibdir}/unittest/test %{pylibdir}/unittest/test
%exclude %dir %{pylibdir}/test/ %exclude %dir %{pylibdir}/test/
@ -693,6 +690,17 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%exclude %{pylibdir}/test/__pycache__/__init__%{bytecode_suffixes} %exclude %{pylibdir}/test/__pycache__/__init__%{bytecode_suffixes}
%exclude %{pylibdir}/test/support/ %exclude %{pylibdir}/test/support/
%files tkinter
%{pylibdir}/tkinter
%{dynload_dir}/_tkinter.%{SOABI_optimized}.so
%{pylibdir}/turtle.py
%{pylibdir}/__pycache__/turtle*%{bytecode_suffixes}
%dir %{pylibdir}/turtledemo
%{pylibdir}/turtledemo/*.py
%{pylibdir}/turtledemo/*.cfg
%dir %{pylibdir}/turtledemo/__pycache__/
%{pylibdir}/turtledemo/__pycache__/*%{bytecode_suffixes}
%files debug %files debug
%{_bindir}/python3-debug %{_bindir}/python3-debug
@ -795,6 +803,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Fri Aug 12 2022 shixuantong <shixuantong@h-partners.com> - 3.10.2-7
- Type:enhancement
- CVE:NA
- SUG:NA
- DESC:split python3-tkinter from python3-devel
* Wed Aug 03 2022 shixuantong <shixuantong@h-partners.com> - 3.10.2-6 * Wed Aug 03 2022 shixuantong <shixuantong@h-partners.com> - 3.10.2-6
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA