|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-fann2
|
|
|
|
# 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
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
@@ -16,7 +16,8 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
# bad upstream packaging
|
|
|
|
|
|
|
|
%define metadata_ver 1.1.2
|
|
|
|
Name: python-fann2
|
|
|
|
Name: python-fann2
|
|
|
|
Version: 1.2.0
|
|
|
|
Version: 1.2.0
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
@@ -26,13 +27,15 @@ Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/FutureLinkCorporation/fann2
|
|
|
|
URL: https://github.com/FutureLinkCorporation/fann2
|
|
|
|
Source: https://github.com/FutureLinkCorporation/fann2/archive/refs/tags/%{version}.tar.gz
|
|
|
|
Source: https://github.com/FutureLinkCorporation/fann2/archive/refs/tags/%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: pkgconfig(fann)
|
|
|
|
BuildRequires: pkgconfig(fann)
|
|
|
|
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
@@ -49,10 +52,10 @@ updated to include support for python 2.x/3.x .
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann2_wrap.cxx
|
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann2_wrap.cxx
|
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann_cpp_subclass.h
|
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/fann2/fann_cpp_subclass.h
|
|
|
|
@@ -63,6 +66,7 @@ export CFLAGS="%{optflags}"
|
|
|
|
%files %{python_files}
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitearch}/*
|
|
|
|
%{python_sitearch}/fann2
|
|
|
|
|
|
|
|
%{python_sitearch}/fann2-%{metadata_ver}*-info
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|