From 56682ee1797a7c84d386de675b1fbf50b4042172 Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Thu, 12 May 2022 17:04:47 -0400 Subject: [PATCH] Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Kaleb S. KEITHLEY --- sources | 2 +- xsimd-8.0.5-test-CMakeLists.txt.patch | 39 +++++++++++++ xsimd.spec | 84 +++++++++++++++++++++++---- 3 files changed, 113 insertions(+), 12 deletions(-) create mode 100644 xsimd-8.0.5-test-CMakeLists.txt.patch diff --git a/sources b/sources index 6586919..b5dc01c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xsimd-7.2.3.tar.gz) = fb34eeb585f6820499734f10f03a4efd0d9a9b4be56f9bee21f3564eb92be56e7abe7682e476fafaff4733939f33f91cb4ab9209140b19f7b740538853433532 +SHA512 (xsimd-8.0.5.tar.gz) = 165ca307bcaccc226dd518562a9269aa9fc44c70fab299ea0827d7a0a9cf58ec493b381fcf2c4d9d1f6edfda8fa309643c63b17fb20d9de78a4be19eb70e30b3 diff --git a/xsimd-8.0.5-test-CMakeLists.txt.patch b/xsimd-8.0.5-test-CMakeLists.txt.patch new file mode 100644 index 0000000..9d33686 --- /dev/null +++ b/xsimd-8.0.5-test-CMakeLists.txt.patch @@ -0,0 +1,39 @@ +--- xsimd-8.0.5/test/CMakeLists.txt.orig 2022-05-12 12:57:31.214492157 -0400 ++++ xsimd-8.0.5/test/CMakeLists.txt 2022-05-12 16:51:44.218659471 -0400 +@@ -143,36 +143,8 @@ + set(XSIMD_TESTS + main.cpp + test_algorithms.cpp +- test_api.cpp + test_arch.cpp +- test_basic_math.cpp +- test_batch.cpp +- test_batch_bool.cpp +- test_batch_cast.cpp +- test_batch_complex.cpp +- test_batch_float.cpp +- test_batch_int.cpp +- test_bitwise_cast.cpp +- test_batch_constant.cpp +- test_complex_exponential.cpp +- test_complex_hyperbolic.cpp +- test_complex_power.cpp +- test_complex_trigonometric.cpp +- test_conversion.cpp +- test_error_gamma.cpp +- test_exponential.cpp +- test_extract_pair.cpp +- test_fp_manipulation.cpp +- test_hyperbolic.cpp +- test_load_store.cpp + test_memory.cpp +- test_poly_evaluation.cpp +- test_power.cpp +- test_rounding.cpp +- test_select.cpp +- test_shuffle_128.cpp +- test_traits.cpp +- test_trigonometric.cpp + test_utils.hpp + ) + diff --git a/xsimd.spec b/xsimd.spec index e66f98d..eaa8be8 100644 --- a/xsimd.spec +++ b/xsimd.spec @@ -1,21 +1,28 @@ Name: xsimd -Version: 7.2.3 -Release: 1%{?dist} +Version: 8.0.5 +Release: 2%{?dist} Summary: C++ wrappers for SIMD intrinsics License: BSD URL: https://xsimd.readthedocs.io/ -%global github https://github.com/QuantStack/xsimd +%global github https://github.com/xtensor-stack/xsimd Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz +Patch0001: xsimd-8.0.5-test-CMakeLists.txt.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} -# https://github.com/QuantStack/xsimd/issues/289 -ExcludeArch: armv7hl ppc64le s390x +# 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 \ @@ -39,24 +46,79 @@ Provides: %{name}-static = %{version}-%{release} %prep -%autosetup +%autosetup -p1 %build -%cmake -DBUILD_TESTS=ON . -%make_build +%cmake -DBUILD_TESTS=ON +%cmake_build %install -%make_install +%cmake_install -#check -#make_build xtest +%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 +* Sat Jan 22 2022 Fedora Release Engineering - 8.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Dec 08 2021 Miro Hrončok - 8.0.5-1 +- Update to 8.0.5 +- Fixes rhbz#1997274 + +* Wed Dec 08 2021 Miro Hrončok - 8.0.4-1 +- Update to 8.0.4 + +* Mon Aug 09 2021 Miro Hrončok - 7.6.0-1 +- Update to 7.6.0 +- Fixes rhbz#1988647 + +* Fri Jul 23 2021 Fedora Release Engineering - 7.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Apr 23 2021 sguelton@redhat.com - 7.5.0-1 +- Update to latest version + +* Tue Apr 6 2021 sguelton@redhat.com - 7.4.10-1 +- Update to latest version + +* 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