# static library only %global debug_package %nil %ifarch %{arm64} # GCC currently does not work on ARM v8 # https://github.com/google/highway/issues/93 %global toolchain clang %endif %global common_description %{expand: Highway is a C++ library for SIMD (Single Instruction, Multiple Data), i.e. applying the same operation to 'lanes'.} Name: highway Version: 0.11.1 Release: 1%{?dist} Summary: Efficient and performance-portable SIMD License: ASL 2.0 URL: https://github.com/google/highway Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz # Supported targets: scalar, SSE4, AVX2, AVX-512, NEON (ARMv7 and v8), WASM SIMD ExclusiveArch: %{ix86} x86_64 %{arm} %{arm64} BuildRequires: clang BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gtest-devel %description %common_description %package devel Summary: Development files for Highway Provides: highway-static = %{version}-%{release} %description devel %{common_description} Development files for Highway. %package doc Summary: Documentation for Highway BuildArch: noarch %description doc %{common_description} Documentation for Highway. %prep %autosetup -p1 %build %cmake -DHWY_SYSTEM_GTEST:BOOL=ON -DCMAKE_CXX_FLAGS="%build_cxxflags -DHWY_COMPILE_ALL_ATTAINABLE" %cmake_build %install %cmake_install # Remove non-public headers # https://github.com/google/highway/issues/125 rm -rvf %{buildroot}%{_includedir}/contrib/ %check %ctest %files devel %license LICENSE %{_includedir}/hwy/ %{_libdir}/libhwy.a %{_libdir}/pkgconfig/libhwy.pc %{_libdir}/pkgconfig/libhwy-test.pc %files doc %license LICENSE %doc g3doc hwy/examples %changelog * Sat Dec 12 04:43:09 CET 2020 Robert-André Mauchin - 0.11.1-1 - Initial RPM