diff --git a/python-langdetect.changes b/python-langdetect.changes index 7611cfd..ae400ed 100644 --- a/python-langdetect.changes +++ b/python-langdetect.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 09:39:14 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Apr 21 12:27:46 UTC 2023 - Dirk Müller diff --git a/python-langdetect.spec b/python-langdetect.spec index 5d68fd0..5ca4f14 100644 --- a/python-langdetect.spec +++ b/python-langdetect.spec @@ -1,7 +1,7 @@ # # spec file for package python-langdetect # -# 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 @@ -25,7 +25,9 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/Mimino666/langdetect Source: https://files.pythonhosted.org/packages/source/l/langdetect/langdetect-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -47,10 +49,10 @@ pt, ro, ru, sk, sl, so, sq, sv, sw, ta, te, th, tl, tr, uk, ur, vi, zh-cn, zh-tw %setup -q -n langdetect-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -59,6 +61,7 @@ pt, ro, ru, sk, sl, so, sq, sv, sw, ta, te, th, tl, tr, uk, ur, vi, zh-cn, zh-tw %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/langdetect +%{python_sitelib}/langdetect-%{version}*-info %changelog