Summary: Library to benchmark code snippets
Summary(pl.UTF-8): Biblioteka do testowania wydajności fragmentów kodu
Name: google-benchmark
-Version: 1.6.1
+Version: 1.7.1
Release: 1
License: Apache v2.0
Group: Libraries
#Source0Download: https://github.com/google/benchmark/releases
Source0: https://github.com/google/benchmark/archive/v%{version}/benchmark-%{version}.tar.gz
-# Source0-md5: 8c33c51f9b7154e6c290df3750081c87
-#Patch0: %{name}-what.patch
+# Source0-md5: 0459a6c530df9851bee6504c3e37c2e7
URL: https://github.com/google/benchmark
-BuildRequires: cmake >= 3.5.1
+BuildRequires: cmake >= 3.16.3
BuildRequires: libstdc++-devel >= 6:4.8
%if %{with python}
BuildRequires: bazel
-BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-pybind11
BuildRequires: python3-setuptools
BuildRequires: rpm-pythonprov
%setup -q -n benchmark-%{version}
%build
-install -d build
-cd build
-%cmake .. \
+%cmake -B build \
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF \
-DBENCHMARK_ENABLE_LTO=ON \
-DBENCHMARK_ENABLE_TESTING=OFF
-%{__make}
-cd ..
+%{__make} -C build
%if %{with python}
%py3_build