# static library only %global debug_package %nil %global commit 8205c2c728653d1a528f8631d111c9cd91be3afc %global snapshotdate 20201212 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %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: 0 Release: 0.1.%{snapshotdate}git%{shortcommit}%{?dist} Summary: Efficient and performance-portable SIMD License: ASL 2.0 URL: https://github.com/google/highway Source0: %url/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gtest-devel %description %common_description %package -n highway-libs Summary: Library files for Highway %description -n highway-libs %{common_description} Library files for Highway. %package -n highway-devel Summary: Development files for Highway Requires: highway-libs%{?_isa} = %{version}-%{release} %description -n highway-devel %{common_description} Development files for Highway. %prep %autosetup -p1 -n %{name}-%{commit} %build %cmake -DHWY_SYSTEM_GTEST:BOOL=ON %cmake_build %make_build -C %{_vpath_builddir} test %install %cmake_install %files -n highway-libs %license LICENSE %{_libdir}/libhwy.a %files -n highway-devel %doc g3doc hwy/examples %{_includedir}/hwy/ %{_includedir}/contrib/ %{_libdir}/pkgconfig/libhwy.pc %{_libdir}/pkgconfig/libhwy-test.pc %changelog * Sat Dec 12 04:43:09 CET 2020 Robert-André Mauchin - 0-0.1.20201212git8205c2c - Initial RPM