Rollback to python setup.py method for now.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=20
This commit is contained in:
Matej Cepl 2022-02-16 18:23:59 +00:00 committed by Git OBS Bridge
parent c9f0ca09c5
commit 9bfe278c0f

View File

@ -26,9 +26,8 @@ License: Python-2.0
Group: Development/Languages/Python
URL: https://github.com/ahupp/python-magic
Source: https://github.com/ahupp/python-magic/archive/%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xml}
BuildRequires: fdupes
BuildRequires: file
BuildRequires: python-rpm-macros
@ -49,10 +48,10 @@ supports both textual and MIME-type output.
%setup -q -n python-magic-%{version}
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check