A new user interface for you! Read more...

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

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


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

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

%install
%makeinstall

%clean
rm -rf %buildroot

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

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

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README docs/*.txt


%files -n libgtkgl-2_0-1
%defattr(-,root,root)
%_libdir/libgtkgl-2.0.so.1
%_libdir/libgtkgl-2.0.so.1.0.1


%files devel
%defattr(-,root,root)
%dir %_includedir/gtkgl-2.0
%dir %_includedir/gtkgl-2.0/gtkgl
%_includedir/gtkgl-2.0/gtkgl/gdkgl.h
%_includedir/gtkgl-2.0/gtkgl/gtkglarea.h
%_libdir/libgtkgl-2.0.la
%_libdir/libgtkgl-2.0.so
%_libdir/pkgconfig/gtkgl-2.0.pc


%changelog