Blame SPECS/gtest.spec

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