LogoopenSUSE Build Service > Projects
Sign Up | Log In

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

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

# norootforbuild


Name:           gtkglext
BuildRequires:  freeglut-devel gtk2-devel libdrm-devel
# For directory ownership:
BuildRequires:  gtk-doc
Version:        1.2.0
Release:        177.5
Url:            http://www.k-3d.org/gtkglext/
Group:          System/Libraries
License:        GPL v2 or later
Summary:        OpenGL Extension to GTK
Source:         %{name}-%{version}.tar.bz2
Patch0:	        %{name}.patch
AutoReqProv:    on
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.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>

%package devel
License:        GPL v2 or later
Group:          System/Libraries
Summary:        OpenGL Extension to GTK
Requires:       %{name} = %{version} glib2-devel gtk2-devel pango-devel Mesa-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.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>

%package doc
License:        GPL v2 or later
Group:          System/Libraries
Summary:        Documentation of the OpenGL Extension to GTK
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.



Authors:
--------
    Naofumi Yasufuku <naofumi@users.sourceforge.net>
    Alif Wahid <awah005@users.sourceforge.net>
    Igor Fernandez de Bustos <impfedei@bi.ehu.es>

%prep
%setup -q 
%if %suse_version >= 1120
%patch0 -p0
%endif

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

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

%clean
rm -rf $RPM_BUILD_ROOT

%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
* Tue Mar 02 2009 gbv@oxixares.com
- Added patch for obsolete GTK_WIDGET_TOPLEVEL() for gtk > 2.20
* Wed Jul  9 2008 crrodriguez@suse.de
- missing Mesa-devel dependency on -devel package causes
  python-gtkglext build faliure
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Wed Feb  7 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552).
* Tue Jan 30 2007 sbrabec@suse.cz
- Updated to version 1.2.0:
  * Build GtkGLExt against GTK+ >= 2.8.
  * Typo fixes, documentation update.
- Prefix changed to /usr.
- Spec file cleanup.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Feb 11 2005 sbrabec@suse.cz
- New SuSE package, version 1.0.6.