File sleef.spec of Package sleef
#
# spec file for package sleef
#
# 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
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global desc SLEEF is a library that implements vectorized versions of C standard math\
functions. This library also includes DFT subroutines.
%global sover 3
Name: sleef
Version: 3.9.0
Release: 0
Summary: SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
License: BSL-1.0
Group: Development/Libraries/C and C++
URL: https://%{name}.org/
Source0: https://github.com/shibatch/%{name}/archive/refs/tags/%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(libssl)
BuildRequires: pkgconfig(mpfr)
BuildRequires: pkgconfig(tlfloat)
%description
%{desc}
%package -n lib%{name}%{sover}
Summary: SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT
Group: Development/Libraries/C and C++
%description -n lib%{name}%{sover}
%{desc}
%package devel
Summary: Development package for the %{name} library
Group: Development/Libraries/C and C++
Requires: lib%{name}%{sover} = %{version}
%description devel
%{desc}
This package contains development files for %{name}.
%prep
%autosetup
%build
%cmake
%cmake_build
%install
install -dm0755 %{buildroot}/%{_libdir} %{buildroot}/%{_includedir}/%{name}
%cmake_install
strip %{buildroot}%{_libdir}/lib%{name}*.so.*
%fdupes %{buildroot}/%{_defaultdocdir}/%{name}
%check
%ctest
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%post devel
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%postun devel
%files -n lib%{name}%{sover}
%license LICENSE.txt
%{_libdir}/lib%{name}*.so.*
%files devel
%license LICENSE.txt
%doc README.adoc
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h
%changelog