%global debug_package %{nil} %define _build_id_links none %undefine _auto_set_build_flags %global simde_version 0.8.2 Name: simde Version: 0.8.2 Release: 7%{?dist} License: MIT AND CC0-1.0 Summary: Implementations of SIMD instruction sets for non-native systems URL: https://github.com/simd-everywhere/simde Source0: https://github.com/simd-everywhere/simde/archive/v%{version}/simde-%{version}.tar.gz Patch: https://github.com/simd-everywhere/simde/pull/1220/commits/a891834ff66c80bb9e0491d6be92c7ab7ed6362f.patch#/simde-issue-1200.patch Patch: https://github.com/simd-everywhere/simde/commit/f046ab773733f09edaadec30345b592dfe85368e.patch Patch: https://github.com/simd-everywhere/simde/commit/a1ce45cf5dc2253a1f9c0590fe111ebd8d1613c0.patch Patch: %{name}-clang20.patch BuildRequires: clang BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: meson BuildRequires: hedley-devel BuildRequires: hedley-static %description %{summary} The SIMDe header-only library provides fast, portable implementations of SIMD intrinsics on hardware which doesn't natively support them, such as calling SSE functions on ARM. There is no performance penalty if the hardware supports the native implementation (e.g., SSE/AVX runs at full speed on x86, NEON on ARM, etc.). %package devel Summary: Header files for SIMDe development Provides: %{name}-static = %{version}-%{release} # The API includes the hedley header-only library. Requires: hedley-devel Requires: hedley-static # subpackage can be noarch, it's identical across all arches # the main package is archful, so tests run on all arches BuildArch: noarch Obsoletes: simde-devel < 0.8.2-2%{?dist} %description devel The simde-devel package contains the header files needed to develop programs that use the SIMDe. %prep %autosetup -n %{name}-%{version} -p1 ln -svf %{_includedir}/hedley.h %{name}/ %build %install mkdir -p %{buildroot}%{_includedir} cp -a simde %{buildroot}%{_includedir} ln -svf ../hedley.h %{buildroot}%{_includedir}/%{name}/ %files devel %{_includedir}/%{name} %changelog %autochangelog