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
|
|
|
#
|
2017-12-30 00:03:11 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
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
|
2017-12-30 00:03:11 +01:00
|
|
|
Version: 1.8.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++
|
2015-08-20 10:52:24 +02:00
|
|
|
Url: https://github.com/google/googletest
|
2017-12-30 00:15:35 +01:00
|
|
|
# download URL: https://github.com/google/googletest/archive/release-%{version}.tar.gz
|
|
|
|
Source0: %{name}-release-%{version}.tar.gz
|
2017-12-30 00:03:11 +01:00
|
|
|
Source1: googletest-rpmlintrc
|
|
|
|
# PATCH-FIX-UPSTREAM googletest-fix-cmake-libdir-install.patch luc14n0@linuxmail.org -- enable the use of /usr/lib(64) instead of /usr/local/lib(64).
|
|
|
|
Patch0: googletest-fix-cmake-libdir-install.patch
|
|
|
|
BuildRequires: cmake
|
2012-08-12 07:22:11 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: python
|
2017-12-30 00:03:11 +01:00
|
|
|
BuildRequires: pkgconfig(pthread-stubs)
|
2011-08-09 15:48:38 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%description
|
2012-08-12 07:22:11 +02:00
|
|
|
Google\'s framework for writing C++ tests on a variety of platforms
|
|
|
|
(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
|
|
|
|
Summary: Google C++ Testing Framework - Development files
|
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
|
2015-02-28 10:32:08 +01:00
|
|
|
Google\'s framework for writing C++ tests on a variety of platforms
|
|
|
|
(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
|
|
|
|
Summary: Google C++ Mocking Framework - Development files
|
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}
|
2015-02-28 10:32:08 +01:00
|
|
|
%patch0 -p1
|
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
|
2011-08-09 15:07:44 +02:00
|
|
|
%defattr(-, root, root)
|
2017-12-30 00:03:11 +01:00
|
|
|
%doc %{name}/CHANGES %{name}/CONTRIBUTORS %{name}/LICENSE %{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
|
|
|
|
|
|
|
|
%files -n gmock
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_name}/CHANGES %{_name}/CONTRIBUTORS %{_name}/LICENSE %{_name}/README.md
|
|
|
|
%{_libdir}/libgmock.so
|
|
|
|
%{_libdir}/libgmock_main.so
|
|
|
|
%{_includedir}/gmock
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2017-12-30 00:15:35 +01:00
|
|
|
%changelog
|