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