A new user interface for you!

File gtkglarea2.spec of Package gtkglarea2

# spec file for package gtkglarea2
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Lars Vogdt
# 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:           gtkglarea2
Summary:        An OpenGL Widget for GTK+
Group:          System/Libraries
License:        GPL-2.0+
Url:            http://www.mono-project.com/GtkGLArea
Version:        2.0.1
Release:        1
Requires:       libgtkgl-2_0-1 = %version
BuildRequires:  freeglut-devel libdrm-devel libtiff-devel xorg-x11-devel
BuildRequires:  gtk2-devel glib2-devel pango-devel Mesa-devel
BuildRequires:  atk-devel 
Source:         gtkglarea-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains a widget for the GTK+ toolkit, which allows you
to program OpenGL under GTK+. It is needed by XTraceroute.

%package -n libgtkgl-2_0-1
Summary:        Shared Library of GtkGLArea
Group:          System/Libraries

%description -n libgtkgl-2_0-1
This package contains just the shared library for GtkGLArea applications.

%package devel
Summary:        Development files for gtkglarea
Group:          Development/Languages/C and C++
Requires:       %name = %version
Requires:       gtk2-devel

%description devel
This package contains files to develop applications using gtkglarea.

%setup -q -n gtkglarea-%{version}

export CFLAGS="%optflags -fno-strict-aliasing"
export LDFLAGS="$LDFLAGS -lm"
%configure --disable-static
make %{?jobs:-j%jobs}


rm -rf %buildroot

%post -n libgtkgl-2_0-1 -p /sbin/ldconfig

%postun -n libgtkgl-2_0-1 -p /sbin/ldconfig

%doc AUTHORS COPYING ChangeLog README docs/*.txt

%files -n libgtkgl-2_0-1

%files devel
%dir %_includedir/gtkgl-2.0
%dir %_includedir/gtkgl-2.0/gtkgl