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
|
|
|
#
|
2014-07-06 08:45:06 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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
|
|
|
|
2012-08-12 16:52:32 +02:00
|
|
|
Name: googletest
|
2013-11-12 07:45:11 +01:00
|
|
|
Version: 1.7.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++
|
2013-11-12 07:45:11 +01:00
|
|
|
Url: http://code.google.com/p/googletest/
|
2012-08-12 16:52:32 +02:00
|
|
|
Source0: gtest-%{version}.zip
|
2014-07-06 08:45:06 +02:00
|
|
|
#PATCH-FIX-UPSTREAM marguerite@opensuse.org Google thinks `make install`
|
|
|
|
#is dangerous, but I don't think so.
|
|
|
|
Patch: googletest-enable-make-install.patch
|
2012-08-12 07:22:11 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2014-07-06 08:45:06 +02:00
|
|
|
BuildRequires: libtool
|
2012-08-12 07:22:11 +02:00
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: unzip
|
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
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for googletest
|
2011-08-09 15:37:44 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-08-12 07:22:11 +02:00
|
|
|
Requires: %{name} = %{version}
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use googletest.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gtest-%{version}
|
2014-07-06 08:45:06 +02:00
|
|
|
%patch -p1
|
|
|
|
autoreconf -fi
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%build
|
2014-07-06 08:45:06 +02:00
|
|
|
%configure --disable-static
|
2011-08-09 15:07:44 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-07-06 08:45:06 +02:00
|
|
|
%makeinstall
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 755 scripts/gtest-config %{buildroot}%{_bindir}
|
|
|
|
find %{buildroot}%{_libdir} -name "*.la" -type f -delete -print
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2011-08-09 16:25:57 +02:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2013-11-12 07:45:11 +01:00
|
|
|
%doc README LICENSE CONTRIBUTORS CHANGES
|
2014-07-06 08:45:06 +02:00
|
|
|
%{_libdir}/libgtest.so.0
|
|
|
|
%{_libdir}/libgtest.so.0.0.0
|
|
|
|
%{_libdir}/libgtest_main.so.0
|
|
|
|
%{_libdir}/libgtest_main.so.0.0.0
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2014-07-06 08:45:06 +02:00
|
|
|
%{_bindir}/gtest-config
|
2011-08-09 16:25:57 +02:00
|
|
|
%{_includedir}/gtest
|
2014-07-06 08:45:06 +02:00
|
|
|
%{_libdir}/libgtest.so
|
|
|
|
%{_libdir}/libgtest_main.so
|
|
|
|
%{_datadir}/aclocal/gtest.m4
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%changelog
|