|
| 1 | +%global common_description %{expand: |
| 2 | +Highway is a C++ library for SIMD (Single Instruction, Multiple Data), i.e. |
| 3 | +applying the same operation to 'lanes'.} |
| 4 | + |
| 5 | +Name: highway |
| 6 | +Version: 1.4.0 |
| 7 | +Release: %autorelease |
| 8 | +Summary: Efficient and performance-portable SIMD |
| 9 | + |
| 10 | +License: (Apache-2.0 OR BSD-3-Clause) AND CC-PDDC |
| 11 | +URL: https://github.com/google/highway |
| 12 | +Source: %url/archive/%{version}/%{name}-%{version}.tar.gz |
| 13 | + |
| 14 | +BuildRequires: cmake |
| 15 | +BuildRequires: gcc-c++ |
| 16 | +BuildRequires: gtest-devel |
| 17 | + |
| 18 | +%description |
| 19 | +%common_description |
| 20 | +%package devel |
| 21 | +Summary: Development files for Highway |
| 22 | +Requires: %{name}%{?_isa} = %{version}-%{release} |
| 23 | + |
| 24 | +%description devel |
| 25 | +%{common_description} |
| 26 | + |
| 27 | +Development files for Highway. |
| 28 | + |
| 29 | +%package doc |
| 30 | +Summary: Documentation for Highway |
| 31 | +BuildArch: noarch |
| 32 | + |
| 33 | +%description doc |
| 34 | +%{common_description} |
| 35 | + |
| 36 | +Documentation for Highway. |
| 37 | + |
| 38 | +%prep |
| 39 | +%autosetup -p1 -n %{name}-%{version} |
| 40 | + |
| 41 | +%build |
| 42 | +%cmake \ |
| 43 | + -DHWY_SYSTEM_GTEST:BOOL=ON \ |
| 44 | + -DHWY_CMAKE_RVV:BOOL=OFF |
| 45 | +%cmake_build |
| 46 | +%install |
| 47 | +%cmake_install |
| 48 | +%check |
| 49 | +%ctest |
| 50 | +%files |
| 51 | +%license LICENSE |
| 52 | +%{_libdir}/libhwy.so.1 |
| 53 | +%{_libdir}/libhwy.so.%{version} |
| 54 | +%{_libdir}/libhwy_contrib.so.1 |
| 55 | +%{_libdir}/libhwy_contrib.so.%{version} |
| 56 | +%{_libdir}/libhwy_test.so.1 |
| 57 | +%{_libdir}/libhwy_test.so.%{version} |
| 58 | + |
| 59 | +%files devel |
| 60 | +%license LICENSE |
| 61 | +%{_includedir}/hwy/ |
| 62 | +%{_libdir}/cmake/hwy/ |
| 63 | +%{_libdir}/libhwy.so |
| 64 | +%{_libdir}/libhwy_contrib.so |
| 65 | +%{_libdir}/libhwy_test.so |
| 66 | +%{_libdir}/pkgconfig/libhwy.pc |
| 67 | +%{_libdir}/pkgconfig/libhwy-contrib.pc |
| 68 | +%{_libdir}/pkgconfig/libhwy-test.pc |
| 69 | + |
| 70 | +%files doc |
| 71 | +%license LICENSE |
| 72 | +%doc g3doc hwy/examples |
| 73 | + |
| 74 | +%changelog |
| 75 | +%autochangelog |
0 commit comments