From da0c7255d77f761362e1e10ae1eb174f5dcefdac Mon Sep 17 00:00:00 2001 From: panzhe0328 Date: Thu, 30 Oct 2025 18:33:09 +0800 Subject: [PATCH] Fixed the requirement error after using python3-file-magic instead of python3-magic (cherry picked from commit cca802c0cdca3224b8132be10053b5e249e5f43f) --- file.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/file.spec b/file.spec index 3aa5fa0..95ad990 100644 --- a/file.spec +++ b/file.spec @@ -1,6 +1,6 @@ Name: file Version: 5.45 -Release: 3 +Release: 4 Summary: A tool to identify the type of a particular file type License: BSD URL: http://www.darwinsys.com/file/ @@ -48,6 +48,9 @@ Summary: Python 3 bindings for the libmagic API Requires: %{name} = %{version}-%{release} BuildRequires: python3-devel BuildArch: noarch +Provides: python3-magic = %{version}-%{release} +Obsoletes: python3-magic < %{version}-%{release} +Conflicts: python3-magic < %{version}-%{release} %description -n python3-file-magic This package contains the Python 3 bindings to access to the libmagic @@ -130,6 +133,9 @@ make -C tests check %{python3_sitelib}/__pycache__/* %changelog +* Thu Oct 30 2025 panzhe - 5.45-4 +- Fixed the requirement error after using python3-file-magic instead of python3-magic + * Tue Jul 01 2025 wangmian - 5.45-3 - Fixed bug for macros in Changelog -- Gitee