forked from pool/benchmark
osc copypac from project:home:pluskalm package:benchmark revision:3
OBS-URL: https://build.opensuse.org/package/show/devel:tools/benchmark?expand=0&rev=1
This commit is contained in:
commit
67873a7f20
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
benchmark-1.0.0.tar.gz
Normal file
3
benchmark-1.0.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d2206c263fc1a7803d4b10e164e0c225f6bcf0d5e5f20b87929f137dee247b54
|
||||||
|
size 58944
|
5
benchmark.changes
Normal file
5
benchmark.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat May 14 17:15:41 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Initial package for version 1.0.0
|
||||||
|
|
87
benchmark.spec
Normal file
87
benchmark.spec
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
#
|
||||||
|
# spec file for package benchmark
|
||||||
|
#
|
||||||
|
# Copyright (c) 2016 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
|
||||||
|
# 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 http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define soname lib%{name}
|
||||||
|
%define sover 0
|
||||||
|
Name: benchmark
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 0
|
||||||
|
Summary: A microbenchmark support library
|
||||||
|
License: Apache-2.0
|
||||||
|
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
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
A library to support the benchmarking of functions, similar to unit-tests.
|
||||||
|
|
||||||
|
%package -n %{soname}%{sover}
|
||||||
|
Summary: Shared library for google benchmark
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{soname}%{sover}
|
||||||
|
A library to support the benchmarking of functions, similar to unit-tests.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for google benchmark
|
||||||
|
Group: Development/Languages/C and C++
|
||||||
|
Requires: %{soname}%{sover} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Development files for google benchmark library
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%if %{__isa_bits} == 64
|
||||||
|
sed -i "s|LIBRARY DESTINATION lib|LIBRARY DESTINATION lib64|g" src/CMakeLists.txt
|
||||||
|
%endif
|
||||||
|
%cmake \
|
||||||
|
-DBENCHMARK_ENABLE_LTO=true \
|
||||||
|
-DBENCHMARK_ENABLE_TESTING=true \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
%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
|
||||||
|
|
||||||
|
%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
|
||||||
|
%{_libdir}/%{soname}.so.%{sover}*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc LICENSE README.md AUTHORS
|
||||||
|
%{_libdir}/%{soname}.so
|
||||||
|
%{_includedir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user