2011-08-09 15:07:44 +02:00
|
|
|
#
|
2012-08-12 16:52:32 +02:00
|
|
|
# spec file for package googletest
|
2011-08-09 15:07:44 +02:00
|
|
|
#
|
2020-02-12 09:59:01 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2011-08-09 15:07:44 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-17 15:51:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-09 15:07:44 +02:00
|
|
|
#
|
|
|
|
|
2013-11-12 07:45:11 +01:00
|
|
|
|
2017-12-30 00:03:11 +01:00
|
|
|
%define _name googlemock
|
2012-08-12 16:52:32 +02:00
|
|
|
Name: googletest
|
2020-02-12 09:59:01 +01:00
|
|
|
Version: 1.10.0
|
2012-08-12 07:22:11 +02:00
|
|
|
Release: 0
|
2011-08-09 15:07:44 +02:00
|
|
|
Summary: Google C++ Testing Framework
|
2013-11-12 07:45:11 +01:00
|
|
|
License: BSD-3-Clause
|
2011-08-09 15:07:44 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-11-17 06:58:08 +01:00
|
|
|
URL: https://github.com/google/googletest
|
|
|
|
Source0: https://github.com/google/googletest/archive/release-%{version}.tar.gz#/%{name}-release-%{version}.tar.gz
|
2017-12-30 00:03:11 +01:00
|
|
|
Source1: googletest-rpmlintrc
|
2018-11-17 06:58:08 +01:00
|
|
|
BuildRequires: cmake >= 2.6.4
|
2012-08-12 07:22:11 +02:00
|
|
|
BuildRequires: gcc-c++
|
2018-11-17 06:58:08 +01:00
|
|
|
BuildRequires: pkgconfig
|
2012-08-12 07:22:11 +02:00
|
|
|
BuildRequires: python
|
2017-12-30 00:03:11 +01:00
|
|
|
BuildRequires: pkgconfig(pthread-stubs)
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%description
|
2018-11-17 15:51:09 +01:00
|
|
|
Google's framework for writing C++ tests on a variety of platforms
|
2012-08-12 07:22:11 +02:00
|
|
|
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian).
|
|
|
|
Based on the xUnit architecture. Supports automatic test discovery,
|
|
|
|
a rich set of assertions, user-defined assertions, death tests,
|
|
|
|
fatal and non-fatal failures, value- and type-parameterized tests,
|
|
|
|
various options for running the tests, and XML test report generation.
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2017-12-30 00:03:11 +01:00
|
|
|
%package -n gtest
|
2018-11-17 15:51:09 +01:00
|
|
|
Summary: Development files for the Google C++ Testing Framework
|
2015-02-28 10:32:08 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-12-30 00:03:11 +01:00
|
|
|
Recommends: %{_name} = %{version}
|
|
|
|
Obsoletes: %{name}-devel < %{version}
|
2017-12-30 00:15:35 +01:00
|
|
|
Obsoletes: lib%{name}0 < %{version}
|
2017-12-30 00:03:11 +01:00
|
|
|
Provides: %{name}-devel = %{version}
|
2015-02-28 10:32:08 +01:00
|
|
|
|
2017-12-30 00:03:11 +01:00
|
|
|
%description -n gtest
|
2018-11-17 15:51:09 +01:00
|
|
|
Google's framework for writing C++ tests on a variety of platforms
|
2015-02-28 10:32:08 +01:00
|
|
|
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian).
|
|
|
|
Based on the xUnit architecture. Supports automatic test discovery,
|
|
|
|
a rich set of assertions, user-defined assertions, death tests,
|
|
|
|
fatal and non-fatal failures, value- and type-parameterized tests,
|
|
|
|
various options for running the tests, and XML test report generation.
|
|
|
|
|
2017-12-30 00:03:11 +01:00
|
|
|
This package provides shared libraries and header files for development
|
|
|
|
with googletest.
|
|
|
|
|
|
|
|
%package -n gmock
|
2018-11-17 15:51:09 +01:00
|
|
|
Summary: Development files for the Google C++ Mocking Framework
|
2011-08-09 15:37:44 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-12-30 00:03:11 +01:00
|
|
|
Recommends: %{name} = %{version}
|
|
|
|
Provides: %{_name}-devel
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
This package provides shared libraries and header files for development
|
|
|
|
with googlemock.
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%prep
|
2015-08-20 10:52:24 +02:00
|
|
|
%setup -q -n %{name}-release-%{version}
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%build
|
2017-12-30 00:03:11 +01:00
|
|
|
%cmake
|
|
|
|
%make_jobs
|
2015-02-28 10:32:08 +01:00
|
|
|
|
2011-08-09 15:07:44 +02:00
|
|
|
%install
|
2017-12-30 00:03:11 +01:00
|
|
|
%cmake_install
|
|
|
|
# Install the source code needed by some applications
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/gmock/src && install -m 0644 googlemock/src/* %{buildroot}%{_includedir}/gmock/src
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/gtest/src && install -m 0644 googletest/src/* %{buildroot}%{_includedir}/gtest/src
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2017-12-30 00:03:11 +01:00
|
|
|
%files -n gtest
|
2018-11-17 06:58:08 +01:00
|
|
|
%license %{name}/LICENSE
|
2020-02-12 09:59:01 +01:00
|
|
|
%doc %{name}/CONTRIBUTORS %{name}/README.md
|
2014-07-06 08:45:06 +02:00
|
|
|
%{_libdir}/libgtest.so
|
|
|
|
%{_libdir}/libgtest_main.so
|
2017-12-30 00:03:11 +01:00
|
|
|
%{_includedir}/gtest
|
2018-11-17 06:58:08 +01:00
|
|
|
%{_libdir}/pkgconfig/gtest*.pc
|
2017-12-30 00:03:11 +01:00
|
|
|
|
|
|
|
%files -n gmock
|
2018-11-17 06:58:08 +01:00
|
|
|
%license %{_name}/LICENSE
|
2020-02-12 09:59:01 +01:00
|
|
|
%doc %{_name}/CONTRIBUTORS %{_name}/README.md
|
2017-12-30 00:03:11 +01:00
|
|
|
%{_libdir}/libgmock.so
|
|
|
|
%{_libdir}/libgmock_main.so
|
|
|
|
%{_includedir}/gmock
|
2018-11-17 06:58:08 +01:00
|
|
|
%{_libdir}/cmake/GTest
|
|
|
|
%{_libdir}/pkgconfig/gmock*.pc
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2017-12-30 00:15:35 +01:00
|
|
|
%changelog
|