File Mesa-demo.spec of Package Mesa-demo

#
# spec file for package Mesa-demo
#
# Copyright (c) 2012 SUSE LINUX Products 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/
#


Version:        8.0.1
Release:        0

Name:           Mesa-demo
Summary:        Mesa demo programs for the OpenGL stack
License:        MIT
Group:          System/Libraries
Url:            http://www.mesa3d.org
Source:         mesa-demos-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         u_mesa-demos_missing-libs.diff
BuildRequires:  autoconf >= 2.59
BuildRequires:  automake
BuildRequires:  freeglut-devel
BuildRequires:  gcc-c++
BuildRequires:  glew-devel
BuildRequires:  libexpat-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
syntax or state machine, it is being used with authorization from
Silicon Graphics, Inc.(SGI). However, the author does not possess an
OpenGL license from SGI, and makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with SGI. Those who
want a licensed implementation of OpenGL should contact a licensed
vendor.

Please do not refer to the library as MesaGL (for legal reasons). It's
just Mesa or The Mesa 3-D graphics library.

This package contains the demos shipped with Mesa.

* OpenGL is a trademark of Silicon Graphics Incorporated.

%prep
%setup -qn mesa-demos-%{version} -b0
%patch0 -p0

%build
%configure --bindir=%_libdir/mesa-demos/bin
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_libdir}
cp -r src %{buildroot}%{_libdir}/mesa-demos
find %{buildroot}%{_libdir}/mesa-demos -depth \( -name Makefile\* -o -name .\?\?\* -o -name \*.\[acho] \) -exec rm -rf \{\} \;
find %{buildroot}%{_libdir}/mesa-demos -depth -type d -exec rmdir --ignore-fail-on-non-empty \{\} \;
find %{buildroot}%{_libdir}/mesa-demos -name \*.py -exec chmod 755 \{\} \;
chmod -R go=rX %{buildroot}/usr

%files
%defattr(-,root,root)
%{_libdir}/mesa-demos

%changelog
openSUSE Build Service is sponsored by