81 lines
1.7 KiB
RPMSpec
81 lines
1.7 KiB
RPMSpec
%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.0.4
|
|
Release: %autorelease
|
|
Summary: Efficient and performance-portable SIMD
|
|
|
|
License: Apache-2.0
|
|
URL: https://github.com/google/highway
|
|
Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
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
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%ctest --exclude-regex "wyBlockwiseTestGroup/HwyBlockwiseTest.TestAllBroadcast"
|
|
|
|
%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
|