commit 26ba0cf532b1964bdcf18ed39f489558481d20a7 Author: tigro Date: Thu Dec 26 14:12:53 2024 +0300 import google-benchmark-1.9.0-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..275433a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/google-benchmark-1.9.0.tar.gz diff --git a/.google-benchmark.metadata b/.google-benchmark.metadata new file mode 100644 index 0000000..c9a6d75 --- /dev/null +++ b/.google-benchmark.metadata @@ -0,0 +1 @@ +eae2482e8717f0c5ee7a3dd0d4807ceb9023d4b9 SOURCES/google-benchmark-1.9.0.tar.gz diff --git a/SPECS/google-benchmark.spec b/SPECS/google-benchmark.spec new file mode 100644 index 0000000..90b53b6 --- /dev/null +++ b/SPECS/google-benchmark.spec @@ -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 - 1.9.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Aug 17 2024 Vitaly - 1.9.0-1 +- Updated to version 1.9.0. + +* Tue Jul 23 2024 Vitaly - 1.8.5-1 +- Updated to version 1.8.5. + +* Thu Jul 18 2024 Fedora Release Engineering - 1.8.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu May 23 2024 Vitaly - 1.8.4-1 +- Updated to version 1.8.4. + +* Mon Mar 25 2024 Vitaly - 1.8.3-1 +- Updated to version 1.8.3. + +* Wed Jan 24 2024 Fedora Release Engineering - 1.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +## END: Generated by rpmautospec