From 3932cc479cc8c08338fe149246df53f62bb71092 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 17 Apr 2025 07:02:53 -0400 Subject: [PATCH] In Fedora 41+, depend on typer-slim rather than typer This works around a file conflict on /usr/bin/typer between python3-typer-cli and erlang-dialyzer until the problem can be fixed in python-typer and/or erlang. See RHBZ#2359557, RHBZ#2359567. After the file conflict is resolved, the python3-typer-slim dependency will still be more precise and minimal than python3-typer, so no further change will be required. By depending on typer-slim[standard], we still get the nice-to-have optional dependencies that plain typer would bring in (currently, rich and shellingham), but without the generic typer command-line tool. --- osbuild.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osbuild.spec b/osbuild.spec index aa34c160..d383dd57 100644 --- a/osbuild.spec +++ b/osbuild.spec @@ -127,8 +127,12 @@ Requires: python3-dnf %if 0%{?fedora} Requires: python3-rich Requires: python3-attrs +%if 0%{?fedora} > 40 +Requires: python3dist(typer-slim[standard]) +%else Requires: python3-typer %endif +%endif %description tools Contains additional tools and utilities for development of