diff --git a/python-python-crfsuite.changes b/python-python-crfsuite.changes index 3490eb1..d991c8e 100644 --- a/python-python-crfsuite.changes +++ b/python-python-crfsuite.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 05:49:33 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Feb 12 15:21:50 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-python-crfsuite.spec b/python-python-crfsuite.spec index 2e19f03..ae16c75 100644 --- a/python-python-crfsuite.spec +++ b/python-python-crfsuite.spec @@ -22,13 +22,14 @@ Version: 0.9.11 Release: 0 Summary: Python binding for CRFsuite License: MIT -Group: Development/Languages/Python URL: https://github.com/scrapinghub/python-crfsuite Source: https://files.pythonhosted.org/packages/source/p/python_crfsuite/python_crfsuite-%{version}.tar.gz BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: c++_compiler BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,10 +43,10 @@ Python-crfsuite is a python binding to CRFsuite_. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -59,6 +60,6 @@ mv bak pycrfsuite %{python_sitearch}/pycrfsuite %exclude %{python_sitearch}/pycrfsuite/*.cpp %exclude %{python_sitearch}/pycrfsuite/*.hpp -%{python_sitearch}/python_crfsuite-%{version}*-info +%{python_sitearch}/python_crfsuite-%{version}.dist-info %changelog