File xorg-gtest.spec of Package xorg-gtest

#
# spec file for package xorg-gtest
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#

Name:           xorg-gtest
Version:        0.7.1
Release:        1
License:        MIT
Summary:        Google Test environment for starting and stopping an Xserver
Url:            git://anongit.freedesktop.org/git/xorg/test/xorg-gtest
Group:          System/X11/Utilities
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  pkg-config
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  gcc-c++
BuildRequires:  doxygen
BuildRequires:  pkgconfig(xorg-macros) >= 1.7
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xorg-server)
#BuildRequires:  pkgconfig(evemu) >= 1.0.10
BuildRequires:  pkgconfig(xi)
BuildRequires:  googletest-devel
BuildRequires:  xf86-video-dummy
Requires:       googletest
Requires:       xf86-video-dummy
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Provides a Google Test environment for starting and stopping 
a X server for testing purposes. The actual environment is defined in header
environment.h. Please refer to the Google test documentation for information
on how to add a custom environment.
Moreover, a custom main() function that takes care of setting up the 
environment is provided in xorg-gtest_main.cpp. This can be used as a 
replacement for libgtest_main.a.
%prep
%setup -q

%build
autoreconf -fi
%configure
make %{?_smp_mflags}

%install
%make_install

%files
%defattr(-,root,root)
%doc README COPYING
%{_includedir}/gtest
%{_includedir}/xorg/gtest
%{_libdir}/pkgconfig/xorg-gtest.pc
%exclude %{_includedir}/xorg/gtest/evemu/xorg-gtest-device.h
%config /usr/share/X11/xorg.conf.d/99-virtual-test-devices.conf
%config /usr/share/xorg/gtest/dummy.conf
%{_datadir}/aclocal/xorg-gtest.m4
/usr/src/xorg-gtest/

%changelog
openSUSE Build Service is sponsored by