SHA256
1
0
forked from pool/benchmark
benchmark/benchmark.spec

103 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package benchmark
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soname lib%{name}
- Update to version 1.5.5: * [NFCI] Drop warning to satisfy clang's -Wunused-but-set-variable diag (#1174) * Add support for new architecture loongarch (#1173) * Use modern clang/libc++ for sanitizers (#1171) * Enable various sanitizer builds in github actions (#1167) * Random interleaving of benchmark repetitions - the sequel (fixes #1051) (#1163) * Fix leak in test, and provide path to remove leak from library (#1169) * [NFCI] Make BenchmarkRunner non-internal to it's .cpp file * [NFCI] RunBenchmarks(): extract FlushStreams()/Report() functions * compare.py: sort the results (#1168) * Make 'complexity reports' cache per-family, not global (#1166) * Introduce per-family instance index (#1165) * Introduce "family index" field into JSON output (#1164) * BenchmarkFamilies::FindBenchmarks(): correctly use std::vector<>::reserve() * Ensure that we print repetition count even when it was specified via flag `--benchmark_repetitions=` * Revert "Implementation of random interleaving. (#1105)" (#1161) * Fix perf counter argument parsing (#1160) * Run build-and-test on all branches * Un-disable github actions :] * Run build-and-test on all branches * Set theme jekyll-theme-hacker * bump version to v1.5.4 * Removing freenode from README * Fix pedantic compilation flag violation (#1156) * fix version recorded in releases (#1047) * Implementation of random interleaving. (#1105) * remove appveyor and add libera.chat as IRC resource * [PFM] Extend perf counter support to multi-threaded cases. (#1153) * Support -Wsuggest-override (#1059) * Refactor `BenchmarkInstance` (#1148) OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=39
2021-09-13 10:44:39 +02:00
%define sover 1
Name: benchmark
Accepting request 1040167 from home:dirkmueller:Factory - Update to version 1.7.1: * version bump for release * [bazel] Build libpfm as a dependency to allow collection of perf counters (#1408) * Add information for supported Python versions to setup.py (#1502) * Partially revert "Do not depend on unversioned python binary (#1496)" (#1501) * Do not depend on unversioned python binary (#1496) * Fix Solaris compilation (#1499) (#1500) * Support for QuRT OS (Hexagon RTOS) (#1497) * bump cmake dep and docs (#1468) * Bump pybind11 version to enable Python 3.11 wheel builds (#1489) * Discuss sources of variance in the user guide (#1481) * Stop using pandas.Timedelta (fixes #1482) (#1483) * Eliminate usage of deprecated API in sysinfo.cc (#1474) * Enable aarch64 Linux wheel builds, use cibuildwheel action directly (#1472) * Clean up test documentation formatting (#1475) * use CMAKE_INSTALL_FULL in pkg-config file (#1473) * Link error when use as static library on windows. (#1470) * add debug option for enabling more output for failed cxxfeaturechecks (#1467) * FIx typo in benchmark.h (#1465) * run ClearRegisteredBenchmarks at exit (#1463) * Avoid deprecation warning in NVHPC (#1459) * Ensure we don't need benchmark installed to pass c++ feature checks (#1456) * Explicitly cast int literals to int8_t in tests to silence implicit-conversion warnings (#1455) * Fixed build issues on window (#1449) * remove unnecessary generated include directory (#1451) * Initialize help hook before actually parsing the command line (#1447) * Remove stray comment and added missing header (#1444) OBS-URL: https://build.opensuse.org/request/show/1040167 OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=45
2022-12-06 11:59:57 +01:00
Version: 1.7.1
Release: 0
Summary: A microbenchmark support library
License: Apache-2.0
URL: https://github.com/google/benchmark
Source: %{name}-%{version}.tar.gz
Patch0: gcc12-disable-Werror=maybe-uninitialized.patch
BuildRequires: cmake >= 3.5.1
BuildRequires: gcc-c++
BuildRequires: git-core
BuildRequires: gmock
BuildRequires: gtest
BuildRequires: pkgconfig
%description
A library to support the benchmarking of functions, similar to unit-tests.
%package -n %{soname}%{sover}
Summary: Shared library for google benchmark
%description -n %{soname}%{sover}
A library to support the benchmarking of functions, similar to unit-tests.
%package devel
Summary: Development files for google benchmark
Requires: %{soname}%{sover} = %{version}
%description devel
Development files for google benchmark library
%prep
%autosetup
%build
sed -e 's|lib_install_dir "lib/"|lib_install_dir "%{_libdir}/"|g' \
-e 's|config_install_dir "lib/cmake|config_install_dir "%{_libdir}/cmake|g' \
-e 's|pkgconfig_install_dir "lib/pkgconfig"|pkgconfig_install_dir "%{_libdir}/pkgconfig"|g' \
-i src/CMakeLists.txt
sed -e 's|libdir=${prefix}/lib|libdir=${prefix}/%{_lib}|' \
-i cmake/benchmark.pc.in
%cmake \
-DBENCHMARK_ENABLE_LTO=on \
-DBENCHMARK_ENABLE_GTEST_TESTS=false \
-DBENCHMARK_ENABLE_TESTING=true
%cmake_build
%install
%cmake_install
# dont ship debug stuff
rm -rf %{buildroot}%{_libexecdir}/debug
- Update to version 1.6.1: * Creating release commit for v1.6.1 * Destructor not returning is expected in some cases (#1316) * Address c4267 warning on MSVC (#1315) * Fix `-DBENCHMARK_ENABLE_INSTALL=OFF` (Fixes #1275) (#1305) * Avoid errors due to "default label in switch which covers all enumeration values" in Windows codepath (#1302) * update googletest to latest release tag 1.11.0 (#1301) * clang-tidy: readability-redundant and performance (#1298) * Update user_guide.md (#1296) * Fix broken link to Setup/Teardown section (#1291) * Add clang-tidy check (#1290) * compare.py: compute and print 'OVERALL GEOMEAN' aggregate (#1289) * remove long-defunct cli parameter * lose some build warnings * Disable clang-tidy (unused-using-decls) (#1287) * disable lint check where we know it'd fail (#1286) * Add Setup/Teardown option on Benchmark. (#1269) * Googletest renamed master to main today. (#1285) * Remove bazelbuild/rules_cc dependency (#1283) * Support for building with LLVM clang-10/clang-11 on Windows. (#1227) * Fix dependency typo and unpin cibuildwheel version in wheel building … (#1263) * check clang format on pull requests and merges (#1281) * format tests with clang-format (#1282) * clang-format Google on {src/,include/} (#1280) * Fix warning with MacOS (#1276) * Fixed typo in doc: s/marcro/macro (#1274) * Fix error with Fix Werror=old-style-cast (#1272) * Fix error Wshorten-64-to-32 (#1273) * [cleanup] Change `== ""` to `.empty()` on string to avoid clang-tidy warnings (#1271) * Fix un-initted error in test and fix change the API previously proposed to use std::string instead of raw char* (#1266) OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=40
2022-01-17 13:07:48 +01:00
# doc will be installed in different location
# Location differs between TW and SLE/Leap, clear both
- Update to version 1.6.1: * Creating release commit for v1.6.1 * Destructor not returning is expected in some cases (#1316) * Address c4267 warning on MSVC (#1315) * Fix `-DBENCHMARK_ENABLE_INSTALL=OFF` (Fixes #1275) (#1305) * Avoid errors due to "default label in switch which covers all enumeration values" in Windows codepath (#1302) * update googletest to latest release tag 1.11.0 (#1301) * clang-tidy: readability-redundant and performance (#1298) * Update user_guide.md (#1296) * Fix broken link to Setup/Teardown section (#1291) * Add clang-tidy check (#1290) * compare.py: compute and print 'OVERALL GEOMEAN' aggregate (#1289) * remove long-defunct cli parameter * lose some build warnings * Disable clang-tidy (unused-using-decls) (#1287) * disable lint check where we know it'd fail (#1286) * Add Setup/Teardown option on Benchmark. (#1269) * Googletest renamed master to main today. (#1285) * Remove bazelbuild/rules_cc dependency (#1283) * Support for building with LLVM clang-10/clang-11 on Windows. (#1227) * Fix dependency typo and unpin cibuildwheel version in wheel building … (#1263) * check clang format on pull requests and merges (#1281) * format tests with clang-format (#1282) * clang-format Google on {src/,include/} (#1280) * Fix warning with MacOS (#1276) * Fixed typo in doc: s/marcro/macro (#1274) * Fix error with Fix Werror=old-style-cast (#1272) * Fix error Wshorten-64-to-32 (#1273) * [cleanup] Change `== ""` to `.empty()` on string to avoid clang-tidy warnings (#1271) * Fix un-initted error in test and fix change the API previously proposed to use std::string instead of raw char* (#1266) OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=40
2022-01-17 13:07:48 +01:00
rm -rf %{buildroot}%{_datadir}/doc/benchmark
rm -rf %{buildroot}%{_datadir}/doc/packages/benchmark
%check
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/
%ctest
%post -n %{soname}%{sover} -p /sbin/ldconfig
%postun -n %{soname}%{sover} -p /sbin/ldconfig
%files -n %{soname}%{sover}
%license LICENSE
%doc README.md AUTHORS
%{_libdir}/%{soname}.so.%{sover}*
%{_libdir}/%{soname}_main.so.%{sover}*
%files devel
%license LICENSE
- Update to version 1.6.1: * Creating release commit for v1.6.1 * Destructor not returning is expected in some cases (#1316) * Address c4267 warning on MSVC (#1315) * Fix `-DBENCHMARK_ENABLE_INSTALL=OFF` (Fixes #1275) (#1305) * Avoid errors due to "default label in switch which covers all enumeration values" in Windows codepath (#1302) * update googletest to latest release tag 1.11.0 (#1301) * clang-tidy: readability-redundant and performance (#1298) * Update user_guide.md (#1296) * Fix broken link to Setup/Teardown section (#1291) * Add clang-tidy check (#1290) * compare.py: compute and print 'OVERALL GEOMEAN' aggregate (#1289) * remove long-defunct cli parameter * lose some build warnings * Disable clang-tidy (unused-using-decls) (#1287) * disable lint check where we know it'd fail (#1286) * Add Setup/Teardown option on Benchmark. (#1269) * Googletest renamed master to main today. (#1285) * Remove bazelbuild/rules_cc dependency (#1283) * Support for building with LLVM clang-10/clang-11 on Windows. (#1227) * Fix dependency typo and unpin cibuildwheel version in wheel building … (#1263) * check clang format on pull requests and merges (#1281) * format tests with clang-format (#1282) * clang-format Google on {src/,include/} (#1280) * Fix warning with MacOS (#1276) * Fixed typo in doc: s/marcro/macro (#1274) * Fix error with Fix Werror=old-style-cast (#1272) * Fix error Wshorten-64-to-32 (#1273) * [cleanup] Change `== ""` to `.empty()` on string to avoid clang-tidy warnings (#1271) * Fix un-initted error in test and fix change the API previously proposed to use std::string instead of raw char* (#1266) OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=40
2022-01-17 13:07:48 +01:00
%doc README.md AUTHORS docs/*
%dir %{_libdir}/cmake/%{name}
%{_libdir}/cmake/%{name}/*.cmake
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{soname}.so
%{_libdir}/%{soname}_main.so
%{_includedir}/%{name}
%changelog