## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: google-benchmark Version: 1.9.4 %global so_version 1 Release: %autorelease License: Apache-2.0 Summary: A microbenchmark support library URL: https://github.com/google/benchmark Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: ninja-build BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake(GTest) BuildRequires: gmock-devel BuildRequires: doxygen %description A library to support the benchmarking of functions, similar to unit-tests. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{summary}. %package doc Summary: Documentation for %{name} # Anything derived from the source-code is Apache-2.0; various files inserted # by Doxygen are licensed MIT, including at least clipboard.js, menu.js, # menudata.js, navtree.js, navtreedata.js, and search/search.js, even after # JavaScript unbundling. License: %{license} AND MIT BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} %{?doxygen_js_requires} %description doc %{summary}. %prep %autosetup -n benchmark-%{version} -p1 sed -e '/get_git_version/d' -e '/-Werror/d' -i CMakeLists.txt %conf # Do not enable BENCHMARK_ENABLE_ASSEMBLY_TESTS, since it is for a very # specific OS and compiler: # https://github.com/google/benchmark/issues/1326#issuecomment-1015221235 %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DGIT_VERSION='%{version}' \ -DBENCHMARK_DOWNLOAD_DEPENDENCIES:BOOL=OFF \ -DBENCHMARK_ENABLE_DOXYGEN:BOOL=ON \ -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=ON \ -DBENCHMARK_ENABLE_ASSEMBLY_TESTS:BOOL=OFF \ -DBENCHMARK_ENABLE_INSTALL:BOOL=ON \ -DBENCHMARK_ENABLE_TESTING:BOOL=ON \ -DBENCHMARK_INSTALL_DOCS:BOOL=ON \ -DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF %build %cmake_build %check %ctest %install %cmake_install %doxygen_unbundle_buildroot %files %license AUTHORS %license CONTRIBUTORS %license LICENSE %doc README.md %{_libdir}/libbenchmark*.so.%{so_version}{,.*} %files devel %{_libdir}/libbenchmark*.so %{_includedir}/benchmark/ %{_libdir}/cmake/benchmark/ %{_libdir}/pkgconfig/benchmark*.pc %files doc %{_docdir}/benchmark/ %changelog ## START: Generated by rpmautospec * Mon Jun 16 2025 Benjamin A. Beasley - 1.9.4-12 - Unbundle some JavaScript in the HTML documentation * Mon Jun 16 2025 Benjamin A. Beasley - 1.9.4-11 - Explicitly disable assembly tests * Mon Jun 16 2025 Benjamin A. Beasley - 1.9.4-9 - Attempt to handle license/bundling in Doxygen-generated HTML * Mon Jun 16 2025 Benjamin A. Beasley - 1.9.4-5 - Do not package CONTRIBUTING.md, which is about working with upstream * Tue May 20 2025 Vitaly - 1.9.4-1 - Updated to version 1.9.4. * Thu May 08 2025 Vitaly - 1.9.3-1 - Updated to version 1.9.3. * Tue Mar 25 2025 Vitaly - 1.9.2-1 - Updated to version 1.9.2. * Fri Jan 17 2025 Fedora Release Engineering - 1.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Nov 29 2024 Vitaly - 1.9.1-1 - Updated to version 1.9.1. * Sat Aug 17 2024 Vitaly - 1.9.0-1 - Updated to version 1.9.0. * Tue Jul 23 2024 Vitaly - 1.8.5-1 - Updated to version 1.8.5. * Thu Jul 18 2024 Fedora Release Engineering - 1.8.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Vitaly - 1.8.4-1 - Updated to version 1.8.4. * Mon Mar 25 2024 Vitaly - 1.8.3-1 - Updated to version 1.8.3. * Wed Jan 24 2024 Fedora Release Engineering - 1.8.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild ## END: Generated by rpmautospec