15
0
forked from pool/python-fann2

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fann2?expand=0&rev=6
This commit is contained in:
2025-05-27 11:28:38 +00:00
committed by Git OBS Bridge
parent 65879316db
commit 6bb71b7abd
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 27 11:28:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Sat Jan 15 16:06:05 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -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