Blame SPECS/gtest.spec

09583b
Summary:        Google C++ testing framework
09583b
Name:           gtest
rdobuilder 4f0b37
Version:        1.11.0
rdobuilder 4f0b37
Release:        1%{?dist}
rdobuilder 4f0b37
# scripts/generator/* are ASL 2.0
rdobuilder 4f0b37
License:        BSD and ASL 2.0
09583b
URL:            https://github.com/google/googletest
rdobuilder 4f0b37
Source0:        https://github.com/google/googletest/archive/release-%{version}/googletest-release-%{version}.tar.gz
rdobuilder 4f0b37
BuildRequires:  gcc
rdobuilder 4f0b37
BuildRequires:  gcc-c++
09583b
BuildRequires:  cmake
09583b
BuildRequires:  python3-devel
09583b
%description
09583b
Framework for writing C++ tests on a variety of platforms (GNU/Linux,
09583b
Mac OS X, Windows, Windows CE, and Symbian). Based on the xUnit
09583b
architecture. Supports automatic test discovery, a rich set of
09583b
assertions, user-defined assertions, death tests, fatal and non-fatal
09583b
failures, various options for running the tests, and XML test report
09583b
generation.
09583b
09583b
%package     -n gtest-devel
09583b
Summary:        Development files for %{name}
09583b
Requires:       %{name} = %{version}-%{release}
rdobuilder 4f0b37
Requires:       gmock = %{version}-%{release}
09583b
%description -n gtest-devel
09583b
This package contains development files for %{name}.
09583b
09583b
%package     -n gmock
09583b
Summary:        Google C++ Mocking Framework
rdobuilder 4f0b37
Requires:       %{name} = %{version}-%{release}
09583b
%description -n gmock
09583b
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++s
09583b
specifics in mind, Google C++ Mocking Framework (or Google Mock for
09583b
short) is a library for writing and using C++ mock classes.
09583b
09583b
Google Mock:
09583b
09583b
 o lets you create mock classes trivially using simple macros,
09583b
 o supports a rich set of matchers and actions,
09583b
 o handles unordered, partially ordered, or completely ordered
09583b
   expectations,
09583b
 o is extensible by users, and
09583b
 o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and
09583b
   Symbian.
09583b
09583b
%package     -n gmock-devel
09583b
Summary:        Development files for gmock
09583b
Requires:       gmock = %{version}-%{release}
09583b
%description -n gmock-devel
09583b
This package contains development files for gmock.
09583b
09583b
%prep
09583b
%autosetup -p1 -n googletest-release-%{version}
09583b
rdobuilder 4f0b37
# Set the version correctly
rdobuilder 4f0b37
sed -e "s/set(GOOGLETEST_VERSION .*)/set(GOOGLETEST_VERSION %{version})/" -i CMakeLists.txt
rdobuilder 4f0b37
rdobuilder 4f0b37
09583b
%build
09583b
%cmake -DBUILD_SHARED_LIBS=ON \
09583b
       -DPYTHON_EXECUTABLE=%{__python3} \
rdobuilder 4f0b37
       -Dgtest_build_tests=ON
rdobuilder 4f0b37
%cmake_build
09583b
09583b
%install
rdobuilder 4f0b37
%cmake_install
09583b
09583b
%check
rdobuilder 4f0b37
%ctest
09583b
09583b
%files
rdobuilder 4f0b37
%license LICENSE
09583b
%{_libdir}/libgtest.so.%{version}
09583b
%{_libdir}/libgtest_main.so.%{version}
09583b
09583b
%files -n gtest-devel
rdobuilder 4f0b37
%doc CONTRIBUTORS README.md
rdobuilder 4f0b37
%doc docs/
09583b
%doc googletest/samples
09583b
%{_includedir}/gtest/
09583b
%{_libdir}/libgtest.so
09583b
%{_libdir}/libgtest_main.so
rdobuilder 4f0b37
%{_libdir}/cmake/GTest/
rdobuilder 4f0b37
%{_libdir}/pkgconfig/gtest.pc
rdobuilder 4f0b37
%{_libdir}/pkgconfig/gtest_main.pc
09583b
09583b
%files -n gmock
rdobuilder 4f0b37
%license LICENSE
09583b
%{_libdir}/libgmock.so.%{version}
09583b
%{_libdir}/libgmock_main.so.%{version}
09583b
09583b
%files -n gmock-devel
rdobuilder 4f0b37
%doc CONTRIBUTORS README.md
rdobuilder 4f0b37
%doc docs/
09583b
%{_includedir}/gmock/
09583b
%{_libdir}/libgmock.so
09583b
%{_libdir}/libgmock_main.so
rdobuilder 4f0b37
%{_libdir}/pkgconfig/gmock.pc
rdobuilder 4f0b37
%{_libdir}/pkgconfig/gmock_main.pc
09583b
09583b
%changelog
rdobuilder 4f0b37
* Thu Aug 19 2021 Federico Pellegrin <fede@evolware.org> - 1.11.0-1
rdobuilder 4f0b37
- Bump to version 1.11.0, removing now upstreamed patches
rdobuilder 4f0b37
rdobuilder 4f0b37
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-7
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder 4f0b37
rdobuilder 4f0b37
* Mon Apr 05 2021 Terje Rosten <terje.rosten@ntnu.no> - 1.10.0-6
rdobuilder 4f0b37
- cmake modules in gtest-devel needs libgmock.so.* (rhzb#1925617)
rdobuilder 4f0b37
rdobuilder 4f0b37
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-5
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder 4f0b37
rdobuilder 4f0b37
* Sun Nov 15 2020 Jeff Law <law@redhat.com> - 1.10.0-4
rdobuilder 4f0b37
- Disable pointer-comparison warning in StackLowerThanAddress
rdobuilder 4f0b37
rdobuilder 4f0b37
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder 4f0b37
rdobuilder 4f0b37
* Sat Jul 25 2020 Terje Rosten <terje.rosten@ntnu.no> - 1.10.0-2
rdobuilder 4f0b37
- Use new set of cmake macros
rdobuilder 4f0b37
rdobuilder 4f0b37
* Sat Mar 21 2020 Neal Gompa <ngompa13@gmail.com> - 1.10.0-1
rdobuilder 4f0b37
- Rebase to 1.10.0 (rhbz#1810432)
rdobuilder 4f0b37
- Remove upstreamed patches
rdobuilder 4f0b37
- Backport fixes from upstream for pkgconfig files
rdobuilder 4f0b37
- Refresh pkgconfig dependency information patch
rdobuilder 4f0b37
rdobuilder 4f0b37
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-5
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder 4f0b37
rdobuilder 4f0b37
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-4
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder 4f0b37
rdobuilder 4f0b37
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-3
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder 4f0b37
rdobuilder 4f0b37
* Thu Sep 27 2018 Neal Gompa <ngompa13@gmail.com> - 1.8.1-2
rdobuilder 4f0b37
- Fix the build to set the version in the CMakeLists correctly
rdobuilder 4f0b37
- Update the libversion patch to use the version in CMakeLists
rdobuilder 4f0b37
- Correctly install the CMake and pkgconfig files
rdobuilder 4f0b37
- Fix the pkgconfig dependency information
rdobuilder 4f0b37
- Add missing strong dependency on gtest by gmock
rdobuilder 4f0b37
- Add patch to make tests work with Python 3
rdobuilder 4f0b37
rdobuilder 4f0b37
* Mon Sep 10 2018 Terje Rosten <terje.rosten@ntnu.no> - 1.8.1-1
rdobuilder 4f0b37
- Fix license (rhbz#1603577)
rdobuilder 4f0b37
- 1.8.1
09583b
rdobuilder 4f0b37
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-4
rdobuilder 4f0b37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
09583b
09583b
* Wed Feb 14 2018 Neal Gompa <ngompa13@gmail.com> - 1.8.0-3
09583b
- Add patch to fix gmock segfaults (rhbz#1513522)
09583b
- Add patch to properly version the libraries
09583b
- Move the documentation to the right place
09583b
- Drop unneeded ldconfig scriptlets:
09583b
    https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets
09583b
- Some clean up
09583b
09583b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
09583b
09583b
* Sun Oct 15 2017 Dan Cermak <dan.cermak@cgc-instruments.com> - 1.8.0-1
09583b
- 1.8.0
09583b
- Merge gtest and gmock (rhbz#1314927)
09583b
09583b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-11
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
09583b
09583b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-10
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
09583b
09583b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-9
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
09583b
09583b
* Sun Jan 15 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.7.0-8
09583b
- Use patch from Jonathan Wakely to fix opt issue (rhbz#1408291)
09583b
09583b
* Wed Dec 21 2016 Merlin Mathesius <mmathesi@redhat.com> - 1.7.0-7
09583b
- Disable C++ compiler optimization to fix FTBFS (BZ#1406937).
09583b
09583b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-6
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
09583b
09583b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-5
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
09583b
09583b
* Sun Apr 12 2015 Dominik Mierzejewski <rpm@greysector.net> - 1.7.0-4
09583b
- rebuilt for gcc-5.0.0-0.22.fc23
09583b
09583b
* Mon Feb 23 2015 Terje Rosten <terje.rosten@ntnu.no> - 1.7.0-3
09583b
- Rebuild for gcc5
09583b
09583b
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
09583b
09583b
* Tue Jul 22 2014 Terje Rosten <terje.rosten@ntnu.no> - 1.7.0-1
09583b
- 1.7.0
09583b
09583b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-5
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
09583b
09583b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-4
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
09583b
09583b
* Tue May 21 2013 Rex Dieter <rdieter@fedoraproject.org> 1.6.0-3
09583b
- use %%cmake macro, fix %%check, use RPM_BULID_ROOT consistently
09583b
09583b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.0-2
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
09583b
09583b
* Fri Sep 28 2012 Akira TAGOH <tagoh@redhat.com> - 1.6.0-1
09583b
- New upstream release.
09583b
- Using autotools is not supported in upstream anymore. switching to cmake.
09583b
- undefined reference issues seems gone now. (#813825)
09583b
09583b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-7
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
09583b
09583b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-6
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
09583b
09583b
* Thu Sep 15 2011 Akira TAGOH <tagoh@redhat.com> j- 1.5.0-5
09583b
- Fix FTBFS issue; update libtool files instead of disabling rpath things.
09583b
09583b
* Sun Mar 20 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.5.0-4
09583b
- add patch from Dan Horák to let 'make check' work 
09583b
09583b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-3
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
09583b
09583b
* Sun Jan 16 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.5.0-2
09583b
- add python to buildreq 
09583b
09583b
* Wed Jan 12 2011 Terje Rosten <terje.rosten@ntnu.no> - 1.5.0-1
09583b
- 1.5.0
09583b
- some cleanup
09583b
09583b
* Thu Aug 26 2010 Dan Horák <dan[at]danny.cz> - 1.4.0-2
09583b
- added workaround for linking the tests on Fedora >= 13 (#564953, #599865)
09583b
09583b
* Sat Nov 14 2009 Debarshi Ray <rishi@fedoraproject.org> - 1.4.0-1
09583b
- Version bump to 1.4.0.
09583b
  * New feature: the event listener API.
09583b
  * New feature: test shuffling.
09583b
  * New feature: the XML report format is closer to junitreport and can
09583b
    be parsed by Hudson now.
09583b
  * New feature: elapsed time for the tests is printed by default.
09583b
  * New feature: comes with a TR1 tuple implementation such that Boost
09583b
    is no longer needed for Combine().
09583b
  * New feature: EXPECT_DEATH_IF_SUPPORTED macro and friends.
09583b
  * New feature: the Xcode project can now produce static gtest libraries in
09583b
    addition to a framework.
09583b
  * Compatibility fixes for gcc and minGW.
09583b
  * Bug fixes and implementation clean-ups.
09583b
09583b
* Fri Jul 24 2009 Release Engineering <rel-eng@fedoraproject.org> - 1.3.0-2.20090601svn257
09583b
- Autorebuild for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
09583b
09583b
* Mon Jun 01 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.3.0-1
09583b
- Version bump to 1.3.0.
09583b
  * New feature: ability to use Google Test assertions in other testing
09583b
    frameworks.
09583b
  * New feature: ability to run disabled test via
09583b
    --gtest_also_run_disabled_tests.
09583b
  * New feature: the --help flag for printing the usage.
09583b
  * New feature: access to Google Test flag values in user code.
09583b
  * New feature: a script that packs Google Test into one .h and one .cc file
09583b
    for easy deployment.
09583b
  * New feature: support for distributing test functions to multiple machines
09583b
    (requires support from the test runner).
09583b
  * Bug fixes and implementation clean-ups.
09583b
09583b
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
09583b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
09583b
09583b
* Sat Jul 05 2008 Debarshi Ray <rishi@fedoraproject.org> - 1.0.0-1
09583b
- Initial build.