From 9885fc6e12d7559dda5973bf56019b4a3ea69fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 20 Nov 2019 13:48:19 +0100 Subject: [PATCH] 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. --- python39.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python39.spec b/python39.spec index ea48bc7..0425e09 100644 --- a/python39.spec +++ b/python39.spec @@ -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.