From 5b4c13028cc73d19cc46c9f794c7fe0866fce027646b1b0b4dc8ec8cb8cfd2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 13:12:23 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=31 --- python-python-magic.changes | 5 +++++ python-python-magic.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-python-magic.changes b/python-python-magic.changes index ed96f79..8ab379f 100644 --- a/python-python-magic.changes +++ b/python-python-magic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 13:11:58 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Aug 2 09:28:03 UTC 2023 - Dominique Leuenberger diff --git a/python-python-magic.spec b/python-python-magic.spec index 22d8c2f..6f70d7e 100644 --- a/python-python-magic.spec +++ b/python-python-magic.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-magic # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python %{?sle15_python_module_pythons} Name: python-python-magic @@ -29,8 +28,10 @@ URL: https://github.com/ahupp/python-magic Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz Patch0: https://github.com/ahupp/python-magic/commit/4ffcd591.patch Patch1: magic-file-5.45.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: file @@ -58,10 +59,10 @@ supports both textual and MIME-type output. %autosetup -n python-magic-%{version} -p1 %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check