LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gtkglext.spec of Package gtkglext (Project home:popinet)

#
# spec file for package gtkglext (Version 1.2.0)
#
# Copyright (c) 2010 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/
#



Name:           gtkglext
Version:        1.2.0
Release:        183.<RELEASE1>
License:        GPLv2+
Summary:        OpenGL Extension to GTK
Url:            http://www.k-3d.org/gtkglext/
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gtkglext-no-deprecated-flags.patch bnc617677 vuntz@opensuse.org -- Don't hardcode *_DISBLE_DEPRECATED flags. Also done upstream in git as e49bf7381c3aec86044445bc83c35d1b1f3ffa4c
Patch0:         gtkglext-no-deprecated-flags.patch
Source99:       baselibs.conf
BuildRequires:  freeglut-devel
# For directory ownership:
BuildRequires:  gtk-doc
BuildRequires:  gtk2-devel
BuildRequires:  libdrm-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
that support OpenGL rendering in GTK and GtkWidget API add-ons, to make
GTK+ widgets OpenGL-capable.

%package devel
License:        GPLv2+
Summary:        OpenGL Extension to GTK
Group:          System/Libraries
Requires:       %{name} = %{version}
Requires:       Mesa-devel
Requires:       glib2-devel
Requires:       gtk2-devel
Requires:       pango-devel

%description devel
GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
which support OpenGL rendering in GTK, and GtkWidget API add-ons to
make GTK+ widgets OpenGL-capable.

%package doc
License:        GPLv2+
Summary:        Documentation of the OpenGL Extension to GTK
Group:          System/Libraries
Requires:       %{name} = %{version}

%description doc
This package contains additional documentation for gtkglext.

GtkGLExt is an OpenGL extension to GTK. It provides the GDK objects
which support OpenGL rendering in GTK, and GtkWidget API add-ons to
make GTK+ widgets OpenGL-capable.

%prep
%setup -q
%patch0 -p1

%build
# Required for gtkglext-1.2.0:
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --with-pic \
	--disable-static
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr (-, root, root)
# NEWS is empty
%doc AUTHORS COPYING COPYING.LIB ChangeLog INSTALL README TODO
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_datadir}/aclocal/*.m4
%{_libdir}/gtkglext-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

%files doc
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/*

%changelog