|
|
@ -1,18 +1,16 @@
|
|
|
|
Summary: Google C++ testing framework
|
|
|
|
Summary: Google C++ testing framework
|
|
|
|
Name: gtest
|
|
|
|
Name: gtest
|
|
|
|
Version: 1.7.0
|
|
|
|
Version: 1.8.0
|
|
|
|
Release: 11%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
Group: Development/Tools
|
|
|
|
URL: https://github.com/google/googletest
|
|
|
|
URL: http://code.google.com/p/googletest/
|
|
|
|
Source0: https://github.com/google/googletest/archive/release-%{version}.tar.gz
|
|
|
|
Source0: http://googletest.googlecode.com/files/gtest-%{version}.zip
|
|
|
|
# Install into lib64 if needed
|
|
|
|
Patch0: gtest-soname.patch
|
|
|
|
Patch0: gtest-1.8.0-libdir.patch
|
|
|
|
# https://github.com/google/googletest/issues/845
|
|
|
|
# https://github.com/google/googletest/issues/845
|
|
|
|
Patch1: gtest-null-pointer.patch
|
|
|
|
Patch1: gtest-1.8.0-null-pointer.patch
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Framework for writing C++ tests on a variety of platforms (GNU/Linux,
|
|
|
|
Framework for writing C++ tests on a variety of platforms (GNU/Linux,
|
|
|
|
Mac OS X, Windows, Windows CE, and Symbian). Based on the xUnit
|
|
|
|
Mac OS X, Windows, Windows CE, and Symbian). Based on the xUnit
|
|
|
@ -21,78 +19,87 @@ assertions, user-defined assertions, death tests, fatal and non-fatal
|
|
|
|
failures, various options for running the tests, and XML test report
|
|
|
|
failures, various options for running the tests, and XML test report
|
|
|
|
generation.
|
|
|
|
generation.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package -n gtest-devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: automake
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n gtest-devel
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
This package contains development files for %{name}.
|
|
|
|
This package contains development files for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%package -n gmock
|
|
|
|
%setup -q
|
|
|
|
Summary: Google C++ Mocking Framework
|
|
|
|
%patch0 -p1 -b .0-soname
|
|
|
|
|
|
|
|
%patch1 -p2 -b .0-null-pointer
|
|
|
|
%description -n gmock
|
|
|
|
|
|
|
|
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++s
|
|
|
|
|
|
|
|
specifics in mind, Google C++ Mocking Framework (or Google Mock for
|
|
|
|
|
|
|
|
short) is a library for writing and using C++ mock classes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Google Mock:
|
|
|
|
|
|
|
|
|
|
|
|
# keep a clean copy of samples.
|
|
|
|
o lets you create mock classes trivially using simple macros,
|
|
|
|
cp -a ./samples ./samples.orig
|
|
|
|
o supports a rich set of matchers and actions,
|
|
|
|
|
|
|
|
o handles unordered, partially ordered, or completely ordered
|
|
|
|
|
|
|
|
expectations,
|
|
|
|
|
|
|
|
o is extensible by users, and
|
|
|
|
|
|
|
|
o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and
|
|
|
|
|
|
|
|
Symbian.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n gmock-devel
|
|
|
|
|
|
|
|
Summary: Development files for gmock
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
Requires: gmock = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n gmock-devel
|
|
|
|
|
|
|
|
This package contains development files for gmock.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%autosetup -p1 -n googletest-release-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# this is odd but needed only to generate gtest-config.
|
|
|
|
mkdir build && cd build
|
|
|
|
%configure
|
|
|
|
|
|
|
|
mkdir build && pushd build
|
|
|
|
|
|
|
|
%cmake -DBUILD_SHARED_LIBS=ON \
|
|
|
|
%cmake -DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DCMAKE_SKIP_BUILD_RPATH=TRUE \
|
|
|
|
|
|
|
|
-DPYTHON_EXECUTABLE=%{__python2} \
|
|
|
|
-DPYTHON_EXECUTABLE=%{__python2} \
|
|
|
|
-Dgtest_build_tests=ON ..
|
|
|
|
-Dgtest_build_tests=ON ..
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
# LD_LIBRARY_PATH needed due to cmake_skip_rpath in %%build
|
|
|
|
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/build make test
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Restore the clean copy of samples.
|
|
|
|
|
|
|
|
# To be later listed against doc.
|
|
|
|
|
|
|
|
rm -rf ./samples
|
|
|
|
|
|
|
|
mv ./samples.orig ./samples
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# make install doesn't work anymore.
|
|
|
|
cd build
|
|
|
|
# need to install them manually.
|
|
|
|
%make_install
|
|
|
|
install -d %{buildroot}{%{_includedir}/gtest{,/internal},%{_libdir}}
|
|
|
|
|
|
|
|
# just for backward compatibility
|
|
|
|
%check
|
|
|
|
install -p -m 0755 build/libgtest.so.*.* build/libgtest_main.so.*.* %{buildroot}%{_libdir}/
|
|
|
|
cd build
|
|
|
|
(cd %{buildroot}%{_libdir};
|
|
|
|
make test
|
|
|
|
ln -sf libgtest.so.*.* %{buildroot}%{_libdir}/libgtest.so
|
|
|
|
|
|
|
|
ln -sf libgtest_main.so.*.* %{buildroot}%{_libdir}/libgtest_main.so
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
/sbin/ldconfig -n %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
install -D -p -m 0755 scripts/gtest-config %{buildroot}%{_bindir}/gtest-config
|
|
|
|
|
|
|
|
install -p -m 0644 include/gtest/*.h %{buildroot}%{_includedir}/gtest/
|
|
|
|
|
|
|
|
install -p -m 0644 include/gtest/internal/*.h %{buildroot}%{_includedir}/gtest/internal/
|
|
|
|
|
|
|
|
install -D -p -m 0644 m4/gtest.m4 %{buildroot}%{_datadir}/aclocal/gtest.m4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc CHANGES CONTRIBUTORS LICENSE README
|
|
|
|
%license googletest/LICENSE
|
|
|
|
%{_libdir}/libgtest.so.*
|
|
|
|
%doc googletest/{CHANGES,CONTRIBUTORS,README.md}
|
|
|
|
%{_libdir}/libgtest_main.so.*
|
|
|
|
%doc googletest/docs/
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%doc samples
|
|
|
|
|
|
|
|
%{_bindir}/gtest-config
|
|
|
|
|
|
|
|
%{_datadir}/aclocal/gtest.m4
|
|
|
|
|
|
|
|
%{_libdir}/libgtest.so
|
|
|
|
%{_libdir}/libgtest.so
|
|
|
|
%{_libdir}/libgtest_main.so
|
|
|
|
%{_libdir}/libgtest_main.so
|
|
|
|
%{_includedir}/gtest
|
|
|
|
|
|
|
|
|
|
|
|
%files -n gtest-devel
|
|
|
|
|
|
|
|
%doc googletest/samples
|
|
|
|
|
|
|
|
%{_includedir}/gtest/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n gmock
|
|
|
|
|
|
|
|
%license googlemock/LICENSE
|
|
|
|
|
|
|
|
%doc googlemock/{CHANGES,CONTRIBUTORS,README.md}
|
|
|
|
|
|
|
|
%doc googlemock/docs/
|
|
|
|
|
|
|
|
%{_libdir}/libgmock.so
|
|
|
|
|
|
|
|
%{_libdir}/libgmock_main.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n gmock-devel
|
|
|
|
|
|
|
|
%{_includedir}/gmock/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Oct 15 2017 Dan Cermak <dan.cermak@cgc-instruments.com> - 1.8.0-1
|
|
|
|
|
|
|
|
- 1.8.0
|
|
|
|
|
|
|
|
- Merge gtest and gmock (rhbz#1314927)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-11
|
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
@ -140,7 +147,7 @@ install -D -p -m 0644 m4/gtest.m4 %{buildroot}%{_datadir}/aclocal/gtest.m4
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 28 2012 Akira TAGOH <tagoh@redhat.com> - 1.6.0-1
|
|
|
|
* Fri Sep 28 2012 Akira TAGOH <tagoh@redhat.com> - 1.6.0-1
|
|
|
|
- New upstream release.
|
|
|
|
- New upstream release.
|
|
|
|
- Using autotools isn't supported in upstream anymore. switching to cmake.
|
|
|
|
- Using autotools is not supported in upstream anymore. switching to cmake.
|
|
|
|
- undefined reference issues seems gone now. (#813825)
|
|
|
|
- undefined reference issues seems gone now. (#813825)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-7
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-7
|
|
|
|