%global common_description %{expand:
Highway is a C++ library for SIMD (Single Instruction, Multiple Data), i.e.
applying the same operation to 'lanes'.}
%global toolchain clang
Name: highway
Version: 1.4.0
Release: 1
Summary: Efficient and performance-portable SIMD
License: Apache-2.0
URL: https://github.com/google/highway
Source: https://github.com/google/highway/releases/download/%{version}/highway-%{version}.tar.gz
BuildRequires: cmake >= 3.10
BuildRequires: clang
BuildRequires: gtest-devel
BuildRequires: libatomic
%description
%common_description
%package devel
Summary: Development files for Highway
Requires: %{name}%{?_isa} = %{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 -n %{name}-%{version}
%build
%cmake -DHWY_ENABLE_TESTS:BOOL=OFF \
-DHWY_SYSTEM_GTEST:BOOL=OFF \
-DHWY_ENABLE_CONTRIB:BOOL=OFF \
-DHWY_CMAKE_RVV:BOOL=OFF
%cmake_build
%install
%cmake_install
rm -vf %{buildroot}%{_libdir}/libhwy_test.so.*
rm -vrf %{buildroot}%{_includedir}/hwy/tests
rm -vf %{buildroot}%{_libdir}/libhwy_test.so
rm -vf %{buildroot}%{_libdir}/pkgconfig/libhwy-test.pc
rm -vf %{buildroot}%{_libdir}/libhwy_contrib.so.*
rm -vrf %{buildroot}%{_includedir}/hwy/contrib
rm -vf %{buildroot}%{_libdir}/libhwy_contrib.so
rm -vf %{buildroot}%{_libdir}/pkgconfig/libhwy-contrib.pc
%files
%license LICENSE
%{_libdir}/libhwy.so.1
%{_libdir}/libhwy.so.%{version}
%files devel
%license LICENSE
%{_includedir}/hwy/
%{_libdir}/cmake/hwy/
%{_libdir}/libhwy.so
%{_libdir}/pkgconfig/libhwy.pc
%files doc
%license LICENSE
%doc g3doc hwy/examples
%changelog
* Sun Apr 26 2026 Funda Wang <fundawang@yeah.net> - 1.4.0-1
- update to 1.4.0
* Thu Mar 19 2026 Funda Wang <fundawang@yeah.net> - 1.3.0-1
- update to 1.3.0
* Wed Feb 12 2025 shafeipaozi <sunbo.oerv@isrc.iscas.ac.cn> - 1.2.0-1
- init