Name highway
Description Efficient and performance-portable SIMD
Version 1.3.0-1.fc42
Package Base highway
Homepage https://github.com/google/highway
Maintainers ['decathorpe', 'eclipseo']
Contributors []
Distro-repo https://src.fedoraproject.org/rpms/highway/tree/f42
Sources ['%url/archive/%{version}/%{name}-%{version}.tar.gz', '0001-Detect-clang-19-20-21-also-allow-user-override.patch', '0002-Detect-not-yet-released-clang-22-for-users-building-.patch', '0003-SVE-still-broken-on-Clang-22-msan-fail-on-svcnt.patch']
Dependencies ['ld-linux-x86-64.so.2', 'libc.so.6', 'libgcc_s.so.1', 'libstdc++.so.6', 'rtld']
Optional-Dependencies []
Build-Dependencies ['clang', 'cmake', 'gtest-devel', 'libatomic']
Provides ['highway', 'highway(x86-64)', 'libhwy.so.1()(64bit)', 'libhwy.so.1(HWY_0)(64bit)', 'libhwy_contrib.so.1()(64bit)', 'libhwy_contrib.so.1(HWY_0)(64bit)', 'libhwy_test.so.1()(64bit)', 'libhwy_test.so.1(HWY_0)(64bit)']
Builddate 08-12-2025 00:45:32
Architecture x86_64
Distro-Version 42
Licenses ['Apache-2.0']
Hash ce106bc236e2e1cb918c50847d5556533c49b0cb1fa1de2cb109b2f231663992
%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.3.0
Release:        %autorelease
Summary:        Efficient and performance-portable SIMD

License:        Apache-2.0
URL:            https://github.com/google/highway
Source:         %url/archive/%{version}/%{name}-%{version}.tar.gz

# https://github.com/google/highway/commit/4201022df1c66193863b7d58fea8ac899bd56c45
Patch: 0001-Detect-clang-19-20-21-also-allow-user-override.patch
# https://github.com/google/highway/commit/54fc0d7eb59874d0fb03fc24e06c9c5e021d0071
Patch: 0002-Detect-not-yet-released-clang-22-for-users-building-.patch
# https://github.com/google/highway/commit/0913de4cffcb4707a7b32aecd7376096148f0cd4
Patch: 0003-SVE-still-broken-on-Clang-22-msan-fail-on-svcnt.patch

BuildRequires:  cmake
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_SYSTEM_GTEST:BOOL=ON \
    -DHWY_CMAKE_RVV:BOOL=OFF
%cmake_build

%install
%cmake_install

%check
%ctest

%files
%license LICENSE
%{_libdir}/libhwy.so.1
%{_libdir}/libhwy.so.%{version}
%{_libdir}/libhwy_contrib.so.1
%{_libdir}/libhwy_contrib.so.%{version}
%{_libdir}/libhwy_test.so.1
%{_libdir}/libhwy_test.so.%{version}

%files devel
%license LICENSE
%{_includedir}/hwy/
%{_libdir}/cmake/hwy/
%{_libdir}/libhwy.so
%{_libdir}/libhwy_contrib.so
%{_libdir}/libhwy_test.so
%{_libdir}/pkgconfig/libhwy.pc
%{_libdir}/pkgconfig/libhwy-contrib.pc
%{_libdir}/pkgconfig/libhwy-test.pc

%files doc
%license LICENSE
%doc g3doc hwy/examples

%changelog
%autochangelog