LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gtest.spec of Package gtest (Project GNOME:Ayatana)

# Written by: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

Name:		gtest
Version:	1.6.0
Release:	1
License:	BSD-3-Clause
Summary:	Google C++ Testing Framework
Url:		http://code.google.com/p/googletest/
Group:		System/Libraries
Source:		http://googletest.googlecode.com/files/gtest-%{version}.zip
Patch0:		0001_Allow_make_install.patch

BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	gcc-c++
BuildRequires:	libtool
BuildRequires:	unzip

BuildRequires:	pkgconfig(python2)

%description
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.


%package -n libgtest0
Summary:	Google C++ testing framework - Shared Libraries
Group:		System/Libraries

%description -n libgtest0
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.


%package -n libgtest-devel
Summary:	Google C++ testing framework - Development Files
Group:		Development/Libraries/C and C++

Requires:	libgtest0 = %{version}-%{release}

%description -n libgtest-devel
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.


%prep
%setup -q

%patch0 -p1

autoreconf -vfi


%build
%configure --disable-static
make %{?_smp_mflags}


%install
%make_install

# Remove libtool files
find $RPM_BUILD_ROOT -type f -name '*.la' -delete


%post -n libgtest0 -p /sbin/ldconfig

%postun -n libgtest0 -p /sbin/ldconfig


%files -n libgtest0
%defattr(-,root,root)
%{_libdir}/libgtest.so.0*
%{_libdir}/libgtest_main.so.0*


%files -n libgtest-devel
%defattr(-,root,root,0755)
%{_libdir}/libgtest.so
%{_libdir}/libgtest_main.so
%{_includedir}/gtest/
%{_datadir}/aclocal/gtest.m4


%changelog
* Tue Aug 21 2012 Xiao-Long Chen <chenxiaolong@cxl.epac.to> - 1.6.0-1
- Rewrite
- Version 1.6.0