diff --git a/python-fann2.changes b/python-fann2.changes index 0d3b76c..162cb2e 100644 --- a/python-fann2.changes +++ b/python-fann2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 11:28:15 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Jan 15 16:06:05 UTC 2022 - Dirk Müller diff --git a/python-fann2.spec b/python-fann2.spec index 7a75c75..e31c503 100644 --- a/python-fann2.spec +++ b/python-fann2.spec @@ -1,7 +1,7 @@ # # spec file for package python-fann2 # -# Copyright (c) 2022 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-fann2 Version: 1.2.0 Release: 0 @@ -26,13 +25,15 @@ Group: Development/Languages/Python URL: https://github.com/FutureLinkCorporation/fann2 Source: https://github.com/FutureLinkCorporation/fann2/archive/refs/tags/%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ +BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: swig BuildRequires: pkgconfig(fann) - %python_subpackages %description @@ -49,10 +50,10 @@ updated to include support for python 2.x/3.x . %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann2_wrap.cxx %python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann_cpp_subclass.h @@ -63,6 +64,7 @@ export CFLAGS="%{optflags}" %files %{python_files} %doc README.rst %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/fann2 +%{python_sitearch}/fann2-%{version}*-info %changelog