]>
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 | |
74709daf | 9 | Release: 2 |
a15f1265 JB |
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 | |
72d60b38 JB |
15 | # https://github.com/google/highway/commit/4a57d62e1d87d8c80bbea34fa0e2d27bc8f6b885.patch |
16 | Patch0: %{name}-rdtscp.patch | |
a15f1265 JB |
17 | URL: https://github.com/google/highway |
18 | BuildRequires: cmake >= 3.10 | |
8564459d | 19 | BuildRequires: gtest-devel |
a15f1265 JB |
20 | BuildRequires: libstdc++-devel >= 6:4.7 |
21 | BuildRequires: rpm-build >= 4.6 | |
22 | BuildRequires: rpmbuild(macros) >= 1.605 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
824a55eb JB |
25 | # only static libraries included |
26 | %define _enable_debug_packages 0 | |
27 | ||
a15f1265 JB |
28 | %description |
29 | Highway is a C++ library for SIMD (Single Instruction, Multiple Data), | |
30 | i.e. applying the same operation to multiple 'lanes' using a single | |
31 | CPU instruction. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Highway to biblioteka C++ do operacji SIMD (Single Instruction, | |
35 | Multiple Data), czyli wykonywania tej samej operacji na wielu "pasach" | |
36 | przy użyciu pojedynczej instrukcji procesora. | |
37 | ||
38 | %package devel | |
39 | Summary: Development files for Highway library | |
40 | Summary(pl.UTF-8): Pliki programistyczne biblioteki Highway | |
41 | Group: Development/Libraries | |
42 | ||
43 | %description devel | |
44 | Development files for Highway library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki programistyczne biblioteki Highway. | |
48 | ||
49 | %package apidocs | |
50 | Summary: API documentation for Highway library | |
51 | Summary(pl.UTF-8): Dokumentacja API biblioteki Highway | |
52 | Group: Documentation | |
53 | BuildArch: noarch | |
54 | ||
55 | %description apidocs | |
56 | API documentation for Highway library. | |
57 | ||
58 | %description apidocs -l pl.UTF-8 | |
59 | Dokumentacja API biblioteki Highway. | |
60 | ||
61 | %prep | |
62 | %setup -q | |
72d60b38 | 63 | %patch0 -p1 |
a15f1265 JB |
64 | |
65 | %build | |
66 | install -d build | |
67 | cd build | |
68 | %cmake .. \ | |
69 | -DCMAKE_INSTALL_INCLUDEDIR=include \ | |
8564459d JB |
70 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
71 | -DHWY_SYSTEM_GTEST=ON | |
a15f1265 JB |
72 | |
73 | %{__make} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} -C build install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
86 | %doc README.md | |
87 | %{_libdir}/libhwy.a | |
88 | %{_libdir}/libhwy_contrib.a | |
89 | %{_includedir}/hwy | |
90 | %{_pkgconfigdir}/libhwy.pc | |
91 | %{_pkgconfigdir}/libhwy-contrib.pc | |
92 | %{_pkgconfigdir}/libhwy-test.pc | |
93 | ||
94 | %if %{with apidocs} | |
95 | %files apidocs | |
96 | %defattr(644,root,root,755) | |
97 | %doc g3doc/*.{md,pdf} | |
98 | %endif |