diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/1091.patch b/1091.patch new file mode 100644 index 0000000..4a281c4 --- /dev/null +++ b/1091.patch @@ -0,0 +1,29 @@ +From 49bcf64aed77285962352786d6a94e2bef57f8e0 Mon Sep 17 00:00:00 2001 +From: serge-sans-paille +Date: Tue, 4 Mar 2025 20:42:44 +0100 +Subject: [PATCH] Fix copy-pasted headers + +--- + include/xsimd/arch/xsimd_avx512ifma.hpp | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/include/xsimd/arch/xsimd_avx512ifma.hpp b/include/xsimd/arch/xsimd_avx512ifma.hpp +index df382881b..206319348 100644 +--- a/include/xsimd/arch/xsimd_avx512ifma.hpp ++++ b/include/xsimd/arch/xsimd_avx512ifma.hpp +@@ -9,12 +9,12 @@ + * The full license is in the file LICENSE, distributed with this software. * + ****************************************************************************/ + +-#ifndef XSIMD_AVX512VBMI_HPP +-#define XSIMD_AVX512VBMI_HPP ++#ifndef XSIMD_AVX512IFMA_HPP ++#define XSIMD_AVX512IFMA_HPP + + #include + #include + +-#include "../types/xsimd_avx512vbmi_register.hpp" ++#include "../types/xsimd_avx512ifma_register.hpp" + + #endif diff --git a/changelog b/changelog new file mode 100644 index 0000000..1a599e7 --- /dev/null +++ b/changelog @@ -0,0 +1,69 @@ +* Sat Jan 21 2023 Fedora Release Engineering - 10.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Dec 2 2022 sguelton@redhat.com - 10.0.0-1 +- Update to 10.0.0 + +* Tue Aug 30 2022 sguelton@redhat.com - 9.0.1-1 +- Update to 9.0.1 +- Fixes: rhbz#2120851 + +* Sat Jul 23 2022 Fedora Release Engineering - 8.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed May 11 2022 sguelton@redhat.com - 8.1.0-1 +- Update to 8.1.0 + +* 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 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..f2c6454 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,12 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_testing +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..cb57a73 --- /dev/null +++ b/plan.fmf @@ -0,0 +1,19 @@ +execute: + how: tmt + +discover: + - name: same_repo + how: shell + tests: + - name: pythran-compat + path: /tests/pythran-compat + test: ./runtest.sh +prepare: + - name: Install dependencies + how: install + package: + - dnf + - pythran + - name: Update packages + how: shell + script: dnf upgrade -y diff --git a/sources b/sources index 3b5bec0..3b6bb12 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xsimd-7.4.6.tar.gz) = 70d41848ce63bcf56072349ff587fe93806bbe66b8c50d33f732565905e13daf2b9238402f46f5c0346c21378d39215e3408e7d71274e9009bcaecc53212404e +SHA512 (xsimd-13.2.0.tar.gz) = 3825626547b0dd9b58f306bc89e9b3bc6dd778ad3811b7828e50fc16ae102574255b53f2b0714995de2bd6f9eb7b2c5d266a1a24fbfdf5420dc5e94d7dcbb522 diff --git a/tests/pythran-compat/minimal.py b/tests/pythran-compat/minimal.py new file mode 100644 index 0000000..14d1e88 --- /dev/null +++ b/tests/pythran-compat/minimal.py @@ -0,0 +1,5 @@ +#pythran export minimal(float64[]) +import numpy as np + +def minimal(x): + return np.sum(1. + x) diff --git a/tests/pythran-compat/runtest.sh b/tests/pythran-compat/runtest.sh new file mode 100755 index 0000000..5cb1fd5 --- /dev/null +++ b/tests/pythran-compat/runtest.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Make sure xsimd is still compatible with pythran +pythran minimal.py -DUSE_XSIMD -march=native diff --git a/xsimd.spec b/xsimd.spec index 7a61f8e..abacf27 100644 --- a/xsimd.spec +++ b/xsimd.spec @@ -1,20 +1,15 @@ Name: xsimd -Version: 7.4.6 -Release: 1%{?dist} -Summary: C++ wrappers for SIMD intrinsics -License: BSD +Version: 13.2.0 +Release: %autorelease +Summary: C++ wrappers for SIMD intrinsic +License: BSD-3-Clause URL: https://xsimd.readthedocs.io/ -%global github https://github.com/QuantStack/xsimd -Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz +%global github https://github.com/xtensor-stack/xsimd +Source: %{github}/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ -BuildRequires: gtest-devel - -%ifarch %{arm} -# Only used for testing, as it's a header-only package. -%global optflags %(echo %{optflags} -mfpu=neon) -%endif +BuildRequires: doctest-devel # there is no actual arched content - this is a header only library %global debug_package %{nil} @@ -37,46 +32,34 @@ of common mathematical functions operating on batches. \ Summary: %{summary} Provides: %{name} = %{version}-%{release} Provides: %{name}-static = %{version}-%{release} -%description devel %_description +BuildArch: noarch +Patch0: https://github.com/xtensor-stack/xsimd/pull/1091.patch + +%description devel %_description %prep %autosetup -p1 %build -%cmake -DBUILD_TESTS=ON . - -%make_build +%cmake -DBUILD_TESTS=ON +%cmake_build %install -%make_install +%cmake_install %check # Explicitly not supported upstream for simd mode. Still valuable for scalar mode layer. %ifnarch ppc64le s390x -%make_build xtest +%cmake_build -- xtest %endif %files devel %doc README.md %license LICENSE %{_includedir}/%{name}/ -%{_libdir}/cmake/%{name}/ -%{_libdir}/pkgconfig/%{name}.pc +%{_datadir}/cmake/%{name}/ +%{_datadir}/pkgconfig/%{name}.pc %changelog -* 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 +%autochangelog