commit
26ba0cf532
@ -0,0 +1 @@
|
||||
SOURCES/google-benchmark-1.9.0.tar.gz
|
@ -0,0 +1 @@
|
||||
eae2482e8717f0c5ee7a3dd0d4807ceb9023d4b9 SOURCES/google-benchmark-1.9.0.tar.gz
|
@ -0,0 +1,110 @@
|
||||
## START: Set by rpmautospec
|
||||
## (rpmautospec version 0.7.1)
|
||||
## RPMAUTOSPEC: autorelease, autochangelog
|
||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||
release_number = 1;
|
||||
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
|
||||
|
||||
%global intname benchmark
|
||||
%global lbname lib%{intname}
|
||||
|
||||
Name: google-benchmark
|
||||
Version: 1.9.0
|
||||
Release: %autorelease
|
||||
|
||||
License: Apache-2.0
|
||||
Summary: A microbenchmark support library
|
||||
URL: https://github.com/google/%{intname}
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gmock-devel
|
||||
BuildRequires: gtest-devel
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ninja-build
|
||||
|
||||
%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}
|
||||
BuildArch: noarch
|
||||
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
||||
%description doc
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{intname}-%{version} -p1
|
||||
sed -e '/get_git_version/d' -e '/-Werror/d' -i CMakeLists.txt
|
||||
|
||||
%build
|
||||
%cmake -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DGIT_VERSION=%{version} \
|
||||
-DBENCHMARK_ENABLE_DOXYGEN:BOOL=ON \
|
||||
-DBENCHMARK_ENABLE_TESTING:BOOL=ON \
|
||||
-DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF \
|
||||
-DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=ON \
|
||||
-DBENCHMARK_ENABLE_INSTALL:BOOL=ON \
|
||||
-DBENCHMARK_INSTALL_DOCS:BOOL=ON \
|
||||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES:BOOL=OFF
|
||||
%cmake_build
|
||||
|
||||
%check
|
||||
%ctest
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
|
||||
%files
|
||||
%doc CONTRIBUTING.md README.md
|
||||
%license AUTHORS CONTRIBUTORS LICENSE
|
||||
%{_libdir}/%{lbname}*.so.1*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/%{lbname}*.so
|
||||
%{_includedir}/%{intname}/
|
||||
%{_libdir}/cmake/%{intname}/
|
||||
%{_libdir}/pkgconfig/%{intname}*.pc
|
||||
|
||||
%files doc
|
||||
%{_docdir}/%{intname}/
|
||||
|
||||
%changelog
|
||||
* Thu Dec 26 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.9.0-1
|
||||
- Rebuilt for MSVSphere 10
|
||||
|
||||
## START: Generated by rpmautospec
|
||||
* Sat Aug 17 2024 Vitaly <vitaly@easycoding.org> - 1.9.0-1
|
||||
- Updated to version 1.9.0.
|
||||
|
||||
* Tue Jul 23 2024 Vitaly <vitaly@easycoding.org> - 1.8.5-1
|
||||
- Updated to version 1.8.5.
|
||||
|
||||
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Thu May 23 2024 Vitaly <vitaly@easycoding.org> - 1.8.4-1
|
||||
- Updated to version 1.8.4.
|
||||
|
||||
* Mon Mar 25 2024 Vitaly <vitaly@easycoding.org> - 1.8.3-1
|
||||
- Updated to version 1.8.3.
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
## END: Generated by rpmautospec
|
Loading…
Reference in new issue