- Update to version 1.5.3:

* Be compliant and return 0 from main.
  * Fix windows warning on type conversion (#1121)
  * Add verbosity to CI logs (#1122)
  * fix cmake issue with referencing a non-existing function argument (#1118)
  * [tools] Fix dumb mistake in previous commit - print aggregates only means aggregates, not non-aggregates
  * [tools] Don't forget to print UTest when printing aggregates only
  * [sysinfo] Fix CPU Frequency reading on AMD Ryzen CPU's (#1117)
  * Use fewer ramp up repetitions when KeepRunningBatch is used (#1113)
  * Add bazel status to README
  * Re-enable bazel without bazelisk and with scoped build/test targets (#1109)
- Drop no longer needed 0001-src-benchmark_register.h-add-missing-limits-inclusio.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=36
This commit is contained in:
Martin Pluskal 2021-04-28 06:51:05 +00:00 committed by Git OBS Bridge
parent 99d3eb3acd
commit 30dbbecd38
8 changed files with 48 additions and 40 deletions

View File

@ -1,33 +0,0 @@
From d333609dccb5fcc6d002da6884712148f1beaf81 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyfox@inbox.ru>
Date: Thu, 15 Oct 2020 09:12:40 +0100
Subject: [PATCH] src/benchmark_register.h: add missing <limits> inclusion
(#1060)
Noticed missing header when was building llvm with gcc-11:
```
llvm-project/llvm/utils/benchmark/src/benchmark_register.h:17:30:
error: 'numeric_limits' is not a member of 'std'
17 | static const T kmax = std::numeric_limits<T>::max();
| ^~~~~~~~~~~~~~
```
---
src/benchmark_register.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/benchmark_register.h b/src/benchmark_register.h
index 61377d7..204bf1d 100644
--- a/src/benchmark_register.h
+++ b/src/benchmark_register.h
@@ -1,6 +1,7 @@
#ifndef BENCHMARK_REGISTER_H
#define BENCHMARK_REGISTER_H
+#include <limits>
#include <vector>
#include "check.h"
--
2.30.0

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="versionformat">@PARENT_TAG@</param>
<param name="url">https://github.com/google/benchmark.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="exclude">.*</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled">
<param name="file">benchmark.spec</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/google/benchmark.git</param>
<param name="changesrevision">835951aa44c2f802b4d563d533eac34565848eb0</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c
size 160235

3
benchmark-1.5.3.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:862568ebc446ee81eb7814b270b416d2915e52b5e81f73fb04346c36627c119f
size 717836

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Apr 28 06:47:33 UTC 2021 - mpluskal@suse.com
- Update to version 1.5.3:
* Be compliant and return 0 from main.
* Fix windows warning on type conversion (#1121)
* Add verbosity to CI logs (#1122)
* fix cmake issue with referencing a non-existing function argument (#1118)
* [tools] Fix dumb mistake in previous commit - print aggregates only means aggregates, not non-aggregates
* [tools] Don't forget to print UTest when printing aggregates only
* [sysinfo] Fix CPU Frequency reading on AMD Ryzen CPU's (#1117)
* Use fewer ramp up repetitions when KeepRunningBatch is used (#1113)
* Add bazel status to README
* Re-enable bazel without bazelisk and with scoped build/test targets (#1109)
- Drop no longer needed 0001-src-benchmark_register.h-add-missing-limits-inclusio.patch
-------------------------------------------------------------------
Mon Feb 8 21:56:31 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>

5
benchmark.obsinfo Normal file
View File

@ -0,0 +1,5 @@
name: benchmark
version: 1.5.3
mtime: 1619538893
commit: 835951aa44c2f802b4d563d533eac34565848eb0

View File

@ -19,14 +19,12 @@
%define soname lib%{name}
%define sover 0
Name: benchmark
Version: 1.5.2
Version: 1.5.3
Release: 0
Summary: A microbenchmark support library
License: Apache-2.0
URL: https://github.com/google/benchmark
Source: https://github.com/google/benchmark/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch0: 0001-src-benchmark_register.h-add-missing-limits-inclusio.patch
BuildRequires: cmake >= 3.5.1
BuildRequires: gcc-c++
BuildRequires: git-core
@ -51,7 +49,7 @@ Requires: %{soname}%{sover} = %{version}
Development files for google benchmark library
%prep
%autosetup -p1
%autosetup
%build
sed -e 's|lib_install_dir "lib/"|lib_install_dir "%{_libdir}/"|g' \