2025-07-17 06:15:10 +00:00
|
|
|
#
|
2023-04-01 11:02:07 +00:00
|
|
|
# spec file for package sleef
|
|
|
|
#
|
2025-07-17 06:15:10 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2023-04-01 11:02:07 +00:00
|
|
|
# Copyright (c) 2023 Fabio Pesari
|
|
|
|
#
|
|
|
|
# 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-07-17 06:15:10 +00:00
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2023-04-01 11:02:07 +00:00
|
|
|
#
|
2025-07-17 06:15:10 +00:00
|
|
|
|
2023-04-01 11:02:07 +00:00
|
|
|
|
|
|
|
%define v_major 3
|
2025-04-22 07:28:38 +00:00
|
|
|
%define v_minor 9
|
|
|
|
%define v_patch 0
|
2023-04-01 11:02:07 +00:00
|
|
|
|
2025-07-17 06:15:10 +00:00
|
|
|
Name: sleef
|
|
|
|
Version: %{v_major}.%{v_minor}.%{v_patch}
|
|
|
|
Release: 0
|
|
|
|
Summary: SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
|
|
|
|
License: BSL-1.0
|
|
|
|
Group: Productivity/Scientific/Math
|
|
|
|
URL: https://sleef.org/
|
|
|
|
Source: https://github.com/shibatch/sleef/archive/refs/tags/%{v_major}.%{v_minor}.%{v_patch}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: fftw3-devel
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: ninja
|
2023-04-01 11:02:07 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
SLEEF is a library that implements vectorized versions of C standard math
|
|
|
|
functions. This library also includes DFT subroutines.
|
|
|
|
|
|
|
|
%package -n libsleef%{v_major}
|
2025-07-17 06:15:10 +00:00
|
|
|
Summary: SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
|
|
|
|
License: BSL-1.0
|
|
|
|
Group: System/Libraries
|
2023-04-01 11:02:07 +00:00
|
|
|
|
|
|
|
%description -n libsleef%{v_major}
|
|
|
|
SLEEF is a library that implements vectorized versions of C standard math
|
|
|
|
functions. This library also includes DFT subroutines.
|
|
|
|
|
|
|
|
%package devel
|
2025-07-17 06:15:10 +00:00
|
|
|
Summary: Development files for SLEEF
|
|
|
|
License: BSL-1.0
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libsleef%{v_major} = %{version}
|
2023-04-01 11:02:07 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
SLEEF is a library that implements vectorized versions of C standard math
|
|
|
|
functions. This library also includes DFT subroutines.
|
|
|
|
|
|
|
|
These are the development files for SLEEF.
|
|
|
|
|
|
|
|
%prep
|
2024-12-16 18:06:51 +00:00
|
|
|
%autosetup
|
2023-04-01 11:02:07 +00:00
|
|
|
|
2025-07-17 06:15:10 +00:00
|
|
|
%ifarch riscv64
|
|
|
|
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812
|
|
|
|
%global _lto_cflags %{nil}
|
|
|
|
%endif
|
|
|
|
|
2023-04-01 11:02:07 +00:00
|
|
|
%build
|
2025-04-22 07:28:38 +00:00
|
|
|
%define __builder ninja
|
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DSLEEF_ENABLE_TLFLOAT=OFF
|
2023-04-01 11:02:07 +00:00
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%post -n libsleef%{v_major} -p /sbin/ldconfig
|
|
|
|
%postun -n libsleef%{v_major} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libsleef%{v_major}
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_libdir}/libsleef*.so.*
|
|
|
|
|
|
|
|
%files devel
|
2025-04-22 07:28:38 +00:00
|
|
|
%doc README.adoc
|
|
|
|
%license LICENSE.txt
|
2023-04-01 11:02:07 +00:00
|
|
|
%{_libdir}/libsleef*.so
|
2025-07-16 09:37:14 +00:00
|
|
|
%{_includedir}/sleef.h
|
|
|
|
%dir %{_libdir}/cmake/sleef/
|
|
|
|
%{_libdir}/cmake/sleef/*.cmake
|
|
|
|
%{_libdir}/pkgconfig/sleef.pc
|
2023-04-01 11:02:07 +00:00
|
|
|
|
|
|
|
%changelog
|