%global commit_simde fefc7857ff3e785b988a61a8f5f3c5bd5eb24342 %global short_commit_simde %(c=%{commit_simde}; echo ${c:0:7}) # Disable debuginfo package for the header only package. %global debug_package %{nil} # Disable the auto_set_build_flags. Because it sets clang flags for gcc in # the %%check section. %undefine _auto_set_build_flags %global simde_version 0.8.2 # %%global rc_version 1 Name: simde Version: %{simde_version}%{?rc_version:~rc%{rc_version}} Release: 7%{?dist} 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 BuildRequires: %{_bindir}/time %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 # The %%build section is not used. %install mkdir -p %{buildroot}%{_includedir} cp -a simde %{buildroot}%{_includedir} ln -svf ../hedley.h %{buildroot}%{_includedir}/%{name}/ %files devel %{_includedir}/%{name} %changelog %autochangelog