File gtkglarea.spec of Package gtkglarea
#
# spec file for package gtkglarea
#
# 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: gtkglarea
Summary: An OpenGL Widget for GTK+
Group: System/Libraries
License: LGPL-2.1+ and 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: libgtkgl-2_0-1 = %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
find %buildroot -name '*.la' | xargs rm
%clean
rm -rf %buildroot
%post -n libgtkgl-2_0-1 -p /sbin/ldconfig
%postun -n libgtkgl-2_0-1 -p /sbin/ldconfig
%files -n libgtkgl-2_0-1
%defattr(-,root,root)
%doc COPYING
%_libdir/libgtkgl-2.0.so.1
%_libdir/libgtkgl-2.0.so.1.0.1
%files devel
%defattr(-,root,root)
%doc AUTHORS ChangeLog README docs/*.txt
%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.so
%_libdir/pkgconfig/gtkgl-2.0.pc
%changelog