Accepting request 588118 from devel:tools
OBS-URL: https://build.opensuse.org/request/show/588118 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/benchmark?expand=0&rev=5
This commit is contained in:
commit
f2c0ac5b09
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e7334dd254434c6668e33a54c8f839194c7c61840d52f4b6258eee28e9f3b20e
|
||||
size 87199
|
3
benchmark-1.3.0.tar.gz
Normal file
3
benchmark-1.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f19559475a592cbd5ac48b61f6b9cedf87f0b6775d1443de54cfe8f53940b28d
|
||||
size 105485
|
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 16 18:38:52 UTC 2018 - avindra@opensuse.org
|
||||
|
||||
- Update to version 1.3.0:
|
||||
* Ranged for loop optimization!
|
||||
* Make installation optional
|
||||
* Better stats including user-provided ones
|
||||
* JSON reporter format fixes
|
||||
* Documentation improvements
|
||||
- Includes changes from 1.2.0:
|
||||
* User-defined counters
|
||||
* Single header library
|
||||
* Ability to clear benchmarks so the runtime registration is more flexible
|
||||
* Sample-based standard deviation
|
||||
* 32-bit build enabled
|
||||
* Bug fixes
|
||||
- Cleanup with spec-cleaner
|
||||
- Use %ctest macro for testing
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 27 14:46:11 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package benchmark
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,7 +19,7 @@
|
||||
%define soname lib%{name}
|
||||
%define sover 0
|
||||
Name: benchmark
|
||||
Version: 1.1.0
|
||||
Version: 1.3.0
|
||||
Release: 0
|
||||
Summary: A microbenchmark support library
|
||||
License: Apache-2.0
|
||||
@ -27,11 +27,11 @@ Group: Development/Libraries/C and C++
|
||||
Url: https://github.com/google/benchmark
|
||||
Source: https://github.com/google/benchmark/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FEATURE-UPSTREAM benchmark-s390.patch
|
||||
Patch: benchmark-s390.patch
|
||||
Patch0: benchmark-s390.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: git-core
|
||||
ExclusiveArch: %ix86 x86_64 s390x
|
||||
ExclusiveArch: %{ix86} x86_64 s390x
|
||||
|
||||
%description
|
||||
A library to support the benchmarking of functions, similar to unit-tests.
|
||||
@ -53,11 +53,11 @@ Development files for google benchmark library
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
%patch0
|
||||
|
||||
%build
|
||||
%if %{__isa_bits} == 64
|
||||
sed -i "s|LIBRARY DESTINATION lib|LIBRARY DESTINATION lib64|g" src/CMakeLists.txt
|
||||
sed -i 's|lib_install_dir "lib/"|lib_install_dir "lib64/"|g' src/CMakeLists.txt
|
||||
%endif
|
||||
%cmake \
|
||||
-DBENCHMARK_ENABLE_LTO=off \
|
||||
@ -70,19 +70,22 @@ sed -i "s|LIBRARY DESTINATION lib|LIBRARY DESTINATION lib64|g" src/CMakeLists.tx
|
||||
%check
|
||||
# path needs to be exported otherwise unit tests will fail
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/build/src/
|
||||
make -C build test
|
||||
%ctest
|
||||
|
||||
%post -n %{soname}%{sover} -p /sbin/ldconfig
|
||||
%postun -n %{soname}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{soname}%{sover}
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README.md AUTHORS
|
||||
%license LICENSE
|
||||
%doc README.md AUTHORS
|
||||
%{_libdir}/%{soname}.so.%{sover}*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README.md AUTHORS
|
||||
%license LICENSE
|
||||
%doc README.md AUTHORS
|
||||
%dir %{_prefix}/lib/cmake/
|
||||
%dir %{_prefix}/lib/cmake/benchmark
|
||||
%{_prefix}/lib/cmake/benchmark/*.cmake
|
||||
%{_libdir}/%{soname}.so
|
||||
%{_includedir}/%{name}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user