2017-08-09 15:59:11 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package splinter
|
|
|
|
|
#
|
2025-06-20 05:35:02 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2017-08-09 15:59:11 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2025-06-20 05:35:02 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-08-09 15:59:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define shlib lib%{name}-3-0
|
2025-06-20 05:35:02 +00:00
|
|
|
%define pythons python3
|
2017-08-09 15:59:11 +00:00
|
|
|
Name: splinter
|
|
|
|
|
Version: 3.0
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: A library for multivariate function approximation implemented in C++
|
|
|
|
|
License: MPL-2.0
|
|
|
|
|
Group: Productivity/Scientific/Math
|
2025-06-20 05:35:02 +00:00
|
|
|
URL: https://github.com/bgrimstad/splinter
|
2017-08-09 15:59:11 +00:00
|
|
|
Source: https://github.com/bgrimstad/%{name}/archive/v%{version}.tar.gz
|
2018-04-19 20:29:27 +00:00
|
|
|
# PATCH-FIX-UPSTREAM: upstream_add_armv8.patch -- add support to aarch64 (armv8)
|
|
|
|
|
Patch0: upstream_add_armv8.patch
|
2017-08-09 15:59:11 +00:00
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: gcc-c++
|
2025-06-20 05:35:02 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-08-09 15:59:11 +00:00
|
|
|
BuildRequires: python3-base
|
|
|
|
|
BuildRequires: python3-devel
|
2025-06-20 05:35:02 +00:00
|
|
|
BuildRequires: python3-pip
|
2017-08-09 15:59:11 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2025-06-20 05:35:02 +00:00
|
|
|
BuildRequires: python3-wheel
|
2017-08-09 15:59:11 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2018-04-19 20:29:27 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 aarch64
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
SPLINTER (SPLine INTERpolation) is a library for multivariate function
|
|
|
|
|
approximation implemented in C++. The library can be used for function
|
2017-08-30 05:01:33 +00:00
|
|
|
approximation, regression and data smoothing.
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%package -n %{shlib}
|
2017-08-30 05:01:33 +00:00
|
|
|
Summary: A library for multivariate function approximation implemented in C++
|
2017-08-25 11:54:26 +00:00
|
|
|
Group: System/Libraries
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%description -n %{shlib}
|
|
|
|
|
SPLINTER (SPLine INTERpolation) is a library for multivariate function
|
|
|
|
|
approximation implemented in C++. The library can be used for function
|
2017-08-30 05:01:33 +00:00
|
|
|
approximation, regression and data smoothing. Currently,
|
2017-08-09 15:59:11 +00:00
|
|
|
the library contains the following implementations:
|
|
|
|
|
|
|
|
|
|
1. tensor product B-splines,
|
|
|
|
|
2. radial basis functions, including the thin plate spline, and
|
|
|
|
|
3. polynomial regression.
|
|
|
|
|
|
|
|
|
|
The coefficients in these models are computed using ordinary least
|
|
|
|
|
squares (OLS). The name of the library, SPLINTER, originates from the
|
|
|
|
|
tensor product B-spline implementation, which was the first of the
|
|
|
|
|
methods to be implemented.
|
|
|
|
|
|
|
|
|
|
%package devel
|
2017-08-30 05:01:33 +00:00
|
|
|
Summary: Development files for splinter, a multivariate function approximation library
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{shlib} = %{version}
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
SPLINTER (SPLine INTERpolation) is a library for multivariate function
|
|
|
|
|
approximation implemented in C++. The library can be used for function
|
2017-08-30 05:01:33 +00:00
|
|
|
approximation, regression and data smoothing.
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
This package provides the header files and sources required for
|
|
|
|
|
developing applications with %{name}.
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
|
Summary: Python3 bindings for %{name}
|
2017-08-30 05:01:33 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
|
SPLINTER (SPLine INTERpolation) is a library for multivariate function
|
|
|
|
|
approximation implemented in C++. The library can be used for function
|
2017-08-30 05:01:33 +00:00
|
|
|
approximation, regression and data smoothing.
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
This package provides the python bindings for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-02-27 17:30:18 +00:00
|
|
|
%autosetup -p1
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake \
|
|
|
|
|
-DLIBRARY_INSTALL_DIRECTORY="%{_lib}" \
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
-DARCH="x86-64"
|
2018-04-19 20:29:27 +00:00
|
|
|
%else
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
-DARCH="armv8"
|
2017-08-09 15:59:11 +00:00
|
|
|
%else
|
|
|
|
|
-DARCH="x86"
|
|
|
|
|
%endif
|
2018-04-19 20:29:27 +00:00
|
|
|
%endif
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%make_jobs all doc
|
|
|
|
|
|
2025-06-20 05:35:02 +00:00
|
|
|
cd ../python
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
2017-08-09 15:59:11 +00:00
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
pushd python
|
2025-06-20 05:35:02 +00:00
|
|
|
%pyproject_install
|
2017-08-09 15:59:11 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
#FIXME: Need to fix crazy install dir of python libraries instead of them being installed in builddir
|
|
|
|
|
dirname=`pwd`
|
|
|
|
|
rm -r %{buildroot}/${dirname}/
|
|
|
|
|
|
|
|
|
|
find %{buildroot}/%{_libdir} -name "*.a" -delete -print
|
|
|
|
|
|
2025-06-20 05:35:02 +00:00
|
|
|
%fdupes %{buildroot}%{python3_sitelib}
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%post -n %{shlib} -p /sbin/ldconfig
|
|
|
|
|
%postun -n %{shlib} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n %{shlib}
|
|
|
|
|
%{_libdir}/lib%{name}*.so
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2025-06-20 05:35:02 +00:00
|
|
|
%doc CHANGELOG.md README.md CREDITS.md
|
|
|
|
|
%license LICENSE
|
2017-08-09 15:59:11 +00:00
|
|
|
%{_includedir}/SPLINTER/
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{python3_sitelib}/%{name}/
|
2025-06-20 05:35:02 +00:00
|
|
|
%{python3_sitelib}/%{name}-%{version}.dist-info/
|
2017-08-09 15:59:11 +00:00
|
|
|
|
|
|
|
|
%changelog
|