]>
Commit | Line | Data |
---|---|---|
a15f1265 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | # | |
5 | Summary: Efficient and performance-portable SIMD | |
6 | Summary(pl.UTF-8): Wydajne i przenośne operacje SIMD | |
7 | Name: highway | |
8 | Version: 0.14.2 | |
9 | Release: 1 | |
10 | License: Apache v2.0 | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/google/highway/releases | |
13 | Source0: https://github.com/google/highway/archive/%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 4821b1064a35baa24ea36994c0d58c41 | |
15 | URL: https://github.com/google/highway | |
16 | BuildRequires: cmake >= 3.10 | |
8564459d | 17 | BuildRequires: gtest-devel |
a15f1265 JB |
18 | BuildRequires: libstdc++-devel >= 6:4.7 |
19 | BuildRequires: rpm-build >= 4.6 | |
20 | BuildRequires: rpmbuild(macros) >= 1.605 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Highway is a C++ library for SIMD (Single Instruction, Multiple Data), | |
25 | i.e. applying the same operation to multiple 'lanes' using a single | |
26 | CPU instruction. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Highway to biblioteka C++ do operacji SIMD (Single Instruction, | |
30 | Multiple Data), czyli wykonywania tej samej operacji na wielu "pasach" | |
31 | przy użyciu pojedynczej instrukcji procesora. | |
32 | ||
33 | %package devel | |
34 | Summary: Development files for Highway library | |
35 | Summary(pl.UTF-8): Pliki programistyczne biblioteki Highway | |
36 | Group: Development/Libraries | |
37 | ||
38 | %description devel | |
39 | Development files for Highway library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki programistyczne biblioteki Highway. | |
43 | ||
44 | %package apidocs | |
45 | Summary: API documentation for Highway library | |
46 | Summary(pl.UTF-8): Dokumentacja API biblioteki Highway | |
47 | Group: Documentation | |
48 | BuildArch: noarch | |
49 | ||
50 | %description apidocs | |
51 | API documentation for Highway library. | |
52 | ||
53 | %description apidocs -l pl.UTF-8 | |
54 | Dokumentacja API biblioteki Highway. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
60 | install -d build | |
61 | cd build | |
62 | %cmake .. \ | |
63 | -DCMAKE_INSTALL_INCLUDEDIR=include \ | |
8564459d JB |
64 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
65 | -DHWY_SYSTEM_GTEST=ON | |
a15f1265 JB |
66 | |
67 | %{__make} | |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} -C build install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %files devel | |
79 | %defattr(644,root,root,755) | |
80 | %doc README.md | |
81 | %{_libdir}/libhwy.a | |
82 | %{_libdir}/libhwy_contrib.a | |
83 | %{_includedir}/hwy | |
84 | %{_pkgconfigdir}/libhwy.pc | |
85 | %{_pkgconfigdir}/libhwy-contrib.pc | |
86 | %{_pkgconfigdir}/libhwy-test.pc | |
87 | ||
88 | %if %{with apidocs} | |
89 | %files apidocs | |
90 | %defattr(644,root,root,755) | |
91 | %doc g3doc/*.{md,pdf} | |
92 | %endif |