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
|
|
|
#
|
2015-02-28 10:32:08 +01:00
|
|
|
# Copyright (c) 2015 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
|
|
|
|
2015-02-28 10:32:08 +01:00
|
|
|
%define libname libg%{name}0
|
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/
|
2015-02-28 10:32:08 +01:00
|
|
|
Source0: https://googletest.googlecode.com/files/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.
|
2015-02-28 10:32:08 +01:00
|
|
|
Patch0: googletest-enable-make-install.patch
|
2012-08-12 07:22:11 +02:00
|
|
|
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
|
|
|
|
2015-02-28 10:32:08 +01:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Google C++ Testing Framework
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
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++
|
2015-02-28 10:32:08 +01:00
|
|
|
Requires: %{libname} = %{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}
|
2015-02-28 10:32:08 +01:00
|
|
|
%patch0 -p1
|
2014-07-06 08:45:06 +02:00
|
|
|
autoreconf -fi
|
2011-08-09 15:07:44 +02:00
|
|
|
|
|
|
|
%build
|
2015-02-28 10:32:08 +01:00
|
|
|
%configure \
|
|
|
|
--enable-static=no
|
2011-08-09 15:07:44 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2015-02-28 10:32:08 +01:00
|
|
|
%if 0%{?suse_version} > 1310
|
|
|
|
%check
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
%endif
|
|
|
|
|
2011-08-09 15:07:44 +02:00
|
|
|
%install
|
2015-02-28 10:32:08 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2014-07-06 08:45:06 +02:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 755 scripts/gtest-config %{buildroot}%{_bindir}
|
2015-02-28 10:32:08 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2015-02-28 10:32:08 +01:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2011-08-09 15:07:44 +02:00
|
|
|
|
2015-02-28 10:32:08 +01:00
|
|
|
%files -n %{libname}
|
2011-08-09 15:07:44 +02:00
|
|
|
%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
|