From 25c078cff528e673fa407b9c8c31480dc672b742 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Nov 28 2019 14:45:05 +0000 Subject: Recommend python3-tkinter when tk is installed The tkinter module is part of the Python's standard library, however it is in a separate subpackage to save an unwanted dependency on tk. When tk is installed, we recommend the subpackage to provide more upstream-like experience, but still provide a way out. --- diff --git a/python3.spec b/python3.spec index 5b9661a..0cc9ff5 100644 --- a/python3.spec +++ b/python3.spec @@ -17,7 +17,7 @@ URL: https://www.python.org/ #global prerel ... %global upstream_version %{general_version}%{?prerel} Version: %{general_version}%{?prerel:~%{prerel}} -Release: 1%{?dist} +Release: 2%{?dist} License: Python @@ -407,6 +407,11 @@ Provides: bundled(python3-setuptools) = 41.2.0 # See https://bugzilla.redhat.com/show_bug.cgi?id=1547131 Recommends: %{name}%{?_isa} = %{version}-%{release} +# tkinter is part of the standard library, +# but it is torn out to save an unwanted dependency on tk and X11. +# we recommend it when tk is already installed (for better UX) +Recommends: (%{name}-tkinter%{?_isa} = %{version}-%{release} if tk%{?_isa}) + # https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package # In Fedora 31, several "unversioned" files like /usr/bin/pydoc and all the # "unversioned" provides were moved from python2 to python3. @@ -1555,6 +1560,9 @@ CheckPython optimized # ====================================================== %changelog +* Thu Nov 28 2019 Miro Hrončok - 3.8.0-2 +- Recommend python3-tkinter when tk is installed + * Mon Oct 14 2019 Miro Hrončok - 3.8.0-1 - Update to Python 3.8.0 final