From 524afa95d3eedf63f3a0b858f2d521f2d8116558 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 28 Jan 2025 13:30:16 +0100 Subject: [PATCH] Drop version constraints from Recommends This makes it easier for the package manager to determine "already broken" weak dependency. When Python is updated, the Recommends now remain identical, rather than being "new". Note that I don't know if dnf currently treats weak dependencies this way, but the assumption is that it *might*. The reverse dependency is versioned anyway, so the constraint is not necessary. Intentionally not bumping the release, this can land with the next update. --- python3.14.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python3.14.spec b/python3.14.spec index f895f61..d0019a6 100644 --- a/python3.14.spec +++ b/python3.14.spec @@ -513,12 +513,12 @@ Provides: bundled(mimalloc) = 2.12 # We've filtered the automatic requirement out so libs are installable without # the main package. This however makes it pulled in by default. # See https://bugzilla.redhat.com/show_bug.cgi?id=1547131 -Recommends: %{pkgname}%{?_isa} = %{version}-%{release} +Recommends: %{pkgname}%{?_isa} # 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: (%{pkgname}-tkinter%{?_isa} = %{version}-%{release} if tk%{?_isa}) +Recommends: (%{pkgname}-tkinter%{?_isa} if tk%{?_isa}) # The zoneinfo module needs tzdata Requires: tzdata