-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathhighway.spec
More file actions
75 lines (61 loc) · 1.62 KB
/
Copy pathhighway.spec
File metadata and controls
75 lines (61 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
%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: 1.4.0
Release: %autorelease
Summary: Efficient and performance-portable SIMD
License: (Apache-2.0 OR BSD-3-Clause) AND CC0-1.0
URL: https://github.com/google/highway
Source: %url/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gtest-devel
%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