14
0
2025-06-11 06:24:10 +00:00
committed by Git OBS Bridge
parent 675390fee1
commit 78df4ba195
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 11 05:49:33 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 12 15:21:50 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Wed Feb 12 15:21:50 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -22,13 +22,14 @@ Version: 0.9.11
Release: 0 Release: 0
Summary: Python binding for CRFsuite Summary: Python binding for CRFsuite
License: MIT License: MIT
Group: Development/Languages/Python
URL: https://github.com/scrapinghub/python-crfsuite URL: https://github.com/scrapinghub/python-crfsuite
Source: https://files.pythonhosted.org/packages/source/p/python_crfsuite/python_crfsuite-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/python_crfsuite/python_crfsuite-%{version}.tar.gz
BuildRequires: %{python_module Cython} BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
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: c++_compiler BuildRequires: c++_compiler
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -42,10 +43,10 @@ Python-crfsuite is a python binding to CRFsuite_.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
@@ -59,6 +60,6 @@ mv bak pycrfsuite
%{python_sitearch}/pycrfsuite %{python_sitearch}/pycrfsuite
%exclude %{python_sitearch}/pycrfsuite/*.cpp %exclude %{python_sitearch}/pycrfsuite/*.cpp
%exclude %{python_sitearch}/pycrfsuite/*.hpp %exclude %{python_sitearch}/pycrfsuite/*.hpp
%{python_sitearch}/python_crfsuite-%{version}*-info %{python_sitearch}/python_crfsuite-%{version}.dist-info
%changelog %changelog