|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-python-magic
|
|
|
|
# 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
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
@@ -16,7 +16,6 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
|
|
|
%define oldpython python
|
|
|
|
%define oldpython python
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
Name: python-python-magic
|
|
|
|
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
|
|
|
|
Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz
|
|
|
|
Patch0: https://github.com/ahupp/python-magic/commit/4ffcd591.patch
|
|
|
|
Patch0: https://github.com/ahupp/python-magic/commit/4ffcd591.patch
|
|
|
|
Patch1: magic-file-5.45.patch
|
|
|
|
Patch1: magic-file-5.45.patch
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: %{python_module xml}
|
|
|
|
BuildRequires: %{python_module xml}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: file
|
|
|
|
BuildRequires: file
|
|
|
@@ -58,10 +59,10 @@ supports both textual and MIME-type output.
|
|
|
|
%autosetup -n python-magic-%{version} -p1
|
|
|
|
%autosetup -n python-magic-%{version} -p1
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|