diff --git a/.xsimd.metadata b/.xsimd.metadata new file mode 100644 index 0000000..02c506a --- /dev/null +++ b/.xsimd.metadata @@ -0,0 +1 @@ +8675eb36e75fd342e8ffb00af4e195ae1aada3a9 SOURCES/xsimd-7.4.9.tar.gz diff --git a/SOURCES/415.patch b/SOURCES/415.patch new file mode 100644 index 0000000..8173ea7 --- /dev/null +++ b/SOURCES/415.patch @@ -0,0 +1,22 @@ +From 20bfc0d2b8f70995877e7606a9fd8f7c839ccc3b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= +Date: Thu, 18 Feb 2021 10:58:08 +0100 +Subject: [PATCH] Fix missing include for gcc-11 + +Required for std::numeric_limits +--- + include/xsimd/types/xsimd_complex_base.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/xsimd/types/xsimd_complex_base.hpp b/include/xsimd/types/xsimd_complex_base.hpp +index 80beda37..e3545047 100644 +--- a/include/xsimd/types/xsimd_complex_base.hpp ++++ b/include/xsimd/types/xsimd_complex_base.hpp +@@ -13,6 +13,7 @@ + + #include + #include ++#include + #include + + #ifdef XSIMD_ENABLE_XTL_COMPLEX diff --git a/SPECS/xsimd.spec b/SPECS/xsimd.spec new file mode 100644 index 0000000..7f5c6d5 --- /dev/null +++ b/SPECS/xsimd.spec @@ -0,0 +1,107 @@ +Name: xsimd +Version: 7.4.9 +Release: 3%{?dist} +Summary: C++ wrappers for SIMD intrinsics +License: BSD +URL: https://xsimd.readthedocs.io/ +%global github https://github.com/QuantStack/xsimd +Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz + +# Fix missing include for gcc-11 +# https://bugzilla.redhat.com/show_bug.cgi?id=1923608 +Patch1: %{github}/pull/415.patch + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: gtest-devel +BuildRequires: gmock-devel + +%ifarch %{arm} +# Only used for testing, as it's a header-only package. +%global optflags %(echo %{optflags} -mfpu=neon) +%endif + +# there is no actual arched content - this is a header only library +%global debug_package %{nil} + +# Get Fedora 33++ behavior on anything older +%undefine __cmake_in_source_build + +%global _description \ +SIMD (Single Instruction, Multiple Data) is a feature of microprocessors that \ +has been available for many years. SIMD instructions perform a single operation \ +on a batch of values at once, and thus provide a way to significantly \ +accelerate code execution. However, these instructions differ between \ +microprocessor vendors and compilers. \ + \ +xsimd provides a unified means for using these features for library authors. \ +Namely, it enables manipulation of batches of numbers with the same arithmetic \ +operators as for single values. It also provides accelerated implementation \ +of common mathematical functions operating on batches. \ + +%description %_description + +%package devel +Summary: %{summary} +Provides: %{name} = %{version}-%{release} +Provides: %{name}-static = %{version}-%{release} +%description devel %_description + + +%prep +%autosetup -p1 + +%build +%cmake -DBUILD_TESTS=ON +%cmake_build + +%install +%cmake_install + +%check +# Explicitly not supported upstream for simd mode. Still valuable for scalar mode layer. +%ifnarch ppc64le s390x +%cmake_build -- xtest +%endif + +%files devel +%doc README.md +%license LICENSE +%{_includedir}/%{name}/ +%{_libdir}/cmake/%{name}/ +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Thu Jan 13 2022 Kaleb S. KEITHLEY - 7.4.9-3 +- rebuild from lookaside + +* Thu Jan 28 2021 Fedora Release Engineering - 7.4.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Oct 26 2020 sguelton@redhat.com - 7.4.9-1 +- Update to latest version + +* Sat Oct 17 2020 sguelton@redhat.com - 7.4.8-2 +- Fix missing #include for gcc-11 + +* Sat Oct 3 2020 sguelton@redhat.com - 7.4.8-1 +- Update to latest version + +* Wed Jul 29 2020 Fedora Release Engineering - 7.4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 16 2020 sguelton@redhat.com - 7.4.6-1 +- Update to latest version + +* Sat Jul 27 2019 Fedora Release Engineering - 7.2.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jul 04 2019 Miro Hrončok - 7.2.3-3 +- Allow all architectures + +* Wed Jul 03 2019 Miro Hrončok - 7.2.3-2 +- Apply upstream workaround for armv7 +- Reenable tests (commented out by mistake) + +* Fri Jun 28 2019 Miro Hrončok - 7.2.3-1 +- Initial package