google-benchmark/google-benchmark.spec

147 lines
4.2 KiB
RPMSpec
Raw Permalink Normal View History

%undefine __cmake_in_source_build
2018-10-26 14:17:44 +00:00
%global intname benchmark
%global lbname lib%{intname}
Name: google-benchmark
2022-01-13 12:17:18 +00:00
Version: 1.6.1
Release: 3%{?dist}
2018-10-26 14:17:44 +00:00
License: ASL 2.0
Summary: A microbenchmark support library
URL: https://github.com/google/%{intname}
2020-07-19 18:28:30 +00:00
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2018-10-26 14:17:44 +00:00
BuildRequires: gtest-devel
BuildRequires: gmock-devel
BuildRequires: ninja-build
BuildRequires: gcc-c++
BuildRequires: cmake
2022-01-13 12:17:18 +00:00
BuildRequires: doxygen
2018-10-26 14:17:44 +00:00
BuildRequires: gcc
%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}.
2021-09-12 09:07:28 +00:00
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description doc
%{summary}.
2018-10-26 14:17:44 +00:00
%prep
2021-09-12 09:07:28 +00:00
%autosetup -n %{intname}-%{version} -p1
sed -e '/get_git_version/d' -e '/-Werror/d' -i CMakeLists.txt
2018-10-26 14:17:44 +00:00
%build
%cmake -G Ninja \
2018-10-26 14:17:44 +00:00
-DCMAKE_BUILD_TYPE=Release \
-DGIT_VERSION=%{version} \
2022-01-13 12:17:18 +00:00
-DBENCHMARK_ENABLE_DOXYGEN:BOOL=ON \
2021-09-12 09:07:28 +00:00
-DBENCHMARK_ENABLE_TESTING:BOOL=ON \
2022-01-13 12:17:18 +00:00
-DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF \
2021-04-26 17:33:45 +00:00
-DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=ON \
-DBENCHMARK_ENABLE_INSTALL:BOOL=ON \
2021-09-12 09:07:28 +00:00
-DBENCHMARK_INSTALL_DOCS:BOOL=ON \
-DBENCHMARK_DOWNLOAD_DEPENDENCIES:BOOL=OFF
%cmake_build
2018-10-26 14:17:44 +00:00
%check
# https://github.com/google/benchmark/issues/1323
%if 0%{?fedora} && 0%{?fedora} > 35
%ctest --exclude-regex 'skip_with_error_test'
%else
%ctest
%endif
2018-10-26 14:17:44 +00:00
%install
%cmake_install
2018-10-26 14:17:44 +00:00
%files
2021-09-12 09:07:28 +00:00
%doc CONTRIBUTING.md README.md
%license AUTHORS CONTRIBUTORS LICENSE
%{_libdir}/%{lbname}*.so.1*
2018-10-26 14:17:44 +00:00
%files devel
%{_libdir}/%{lbname}*.so
%{_includedir}/%{intname}/
%{_libdir}/cmake/%{intname}/
2018-10-26 14:17:44 +00:00
%{_libdir}/pkgconfig/%{intname}.pc
2021-09-12 09:07:28 +00:00
%files doc
%{_docdir}/%{intname}/
2018-10-26 14:17:44 +00:00
%changelog
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Mon Jan 17 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 1.6.1-2
- Disabled skip_with_error_test test on Fedora 36 due to GCC 12 regression.
2022-01-13 12:17:18 +00:00
* Thu Jan 13 2022 Vitaly Zaitsev <vitaly@easycoding.org> - 1.6.1-1
- Updated to version 1.6.1.
2021-09-12 09:07:28 +00:00
* Sun Sep 12 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.6.0-1
- Updated to version 1.6.0.
2021-08-12 11:39:17 +00:00
* Thu Aug 12 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.6-1
- Updated to version 1.5.6.
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-07-10 11:40:22 +00:00
* Sat Jul 10 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.5-3
- Rebuilt again for the same reason.
2021-07-10 11:00:49 +00:00
* Sat Jul 10 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.5-2
- Rebuilt due to glibc update.
2021-06-12 12:37:23 +00:00
* Sat Jun 12 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.5-1
- Updated to version 1.5.5.
2021-05-31 11:45:48 +00:00
* Mon May 31 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.4-1
- Updated to version 1.5.4.
2021-04-26 17:33:45 +00:00
* Mon Apr 26 2021 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.3-1
- Updated to version 1.5.3.
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-10-14 18:27:08 +00:00
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 1.5.2-2
- Fix missing #include for gcc-11
2020-09-12 14:00:18 +00:00
* Sat Sep 12 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.2-1
- Updated to version 1.5.2.
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Jul 19 2020 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.1-1
- Updated to version 1.5.1.
- Fixed RHBZ#1858127.
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-05-28 12:18:08 +00:00
* Tue May 28 2019 Vitaly Zaitsev <vitaly@easycoding.org> - 1.5.0-1
- Updated to version 1.5.0.
2019-05-27 12:06:40 +00:00
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-10-26 14:17:44 +00:00
* Thu Oct 25 2018 Vitaly Zaitsev <vitaly@easycoding.org> - 1.4.1-1
- Initial SPEC release.