3 %bcond_without apidocs # API documentation
5 Summary: Efficient and performance-portable SIMD
6 Summary(pl.UTF-8): Wydajne i przenośne operacje SIMD
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 # https://github.com/google/highway/commit/4a57d62e1d87d8c80bbea34fa0e2d27bc8f6b885.patch
16 Patch0: %{name}-rdtscp.patch
17 URL: https://github.com/google/highway
18 BuildRequires: cmake >= 3.10
19 BuildRequires: gtest-devel
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)
25 # only static libraries included
26 %define _enable_debug_packages 0
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
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.
39 Summary: Development files for Highway library
40 Summary(pl.UTF-8): Pliki programistyczne biblioteki Highway
41 Group: Development/Libraries
44 Development files for Highway library.
46 %description devel -l pl.UTF-8
47 Pliki programistyczne biblioteki Highway.
50 Summary: API documentation for Highway library
51 Summary(pl.UTF-8): Dokumentacja API biblioteki Highway
56 API documentation for Highway library.
58 %description apidocs -l pl.UTF-8
59 Dokumentacja API biblioteki Highway.
69 -DCMAKE_INSTALL_INCLUDEDIR=include \
70 -DCMAKE_INSTALL_LIBDIR=%{_lib} \
76 rm -rf $RPM_BUILD_ROOT
78 %{__make} -C build install \
79 DESTDIR=$RPM_BUILD_ROOT
82 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
88 %{_libdir}/libhwy_contrib.a
90 %{_pkgconfigdir}/libhwy.pc
91 %{_pkgconfigdir}/libhwy-contrib.pc
92 %{_pkgconfigdir}/libhwy-test.pc
96 %defattr(644,root,root,755)