# # spec file for package gtkglext # # Copyright (c) 2022 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define git_commit 8c13cc48 %define git_date 20110529 Name: gtkglext Version: 1.2.0git%{git_date} Release: 8.9 Summary: OpenGL Extension to GTK License: GPL-2.0-or-later AND LGPL-2.1-or-later Group: Development/Libraries/C and C++ URL: http://projects.gnome.org/gtkglext/ # git clone git://git.gnome.org/gtkglext # git archive %{git_commit} --prefix=gtkglext-git%{git_date}/ | bzip2 > ../gtkglext-git%{git_date}.tar.bz2 Source: %{name}-git%{git_date}.tar.bz2 BuildRequires: autoconf BuildRequires: automake BuildRequires: freeglut-devel # For directory ownership: BuildRequires: gtk-doc BuildRequires: libdrm-devel BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(gtk+-2.0) >= 2.20 %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 -n libgtkglext-x11-1_0-0 Summary: OpenGL Extension to GTK License: LGPL-2.1-or-later Group: System/Libraries Provides: %{name} = %{version} Obsoletes: %{name} < %{version} %description -n libgtkglext-x11-1_0-0 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 Summary: OpenGL Extension to GTK License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ Requires: Mesa-devel Requires: libgtkglext-x11-1_0-0 = %{version} # Those are listed as Libs in gdkglext-1.0.pc, and therefore are not # automatically added Requires: pkgconfig(gl) %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 Summary: Documentation of the OpenGL Extension to GTK License: LGPL-2.1-or-later Group: Documentation/HTML Requires: libgtkglext-x11-1_0-0 = %{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 -n %{name}-git%{git_date} %build ./bootstrap # Required for gtkglext-1.2.0: export CFLAGS="%{optflags} -fno-strict-aliasing" %configure # example directory removed from the subdirs line in the Makefile # because it throws errors and it is not needed. sed -i '/SUBDIRS/ s/examples//' Makefile make %{?_smp_mflags} %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %post -n libgtkglext-x11-1_0-0 -p /sbin/ldconfig %postun -n libgtkglext-x11-1_0-0 -p /sbin/ldconfig %files -n libgtkglext-x11-1_0-0 # NEWS is empty %license COPYING %doc AUTHORS README TODO %{_libdir}/libgdkglext-x11-1.0.so.* %{_libdir}/libgtkglext-x11-1.0.so.* %files devel # %{_datadir}/aclocal/gtkglext-1.0.m4 %{_libdir}/gtkglext-1.0/ %{_libdir}/libgdkglext-x11-1.0.so %{_libdir}/libgtkglext-x11-1.0.so %{_libdir}/pkgconfig/gdkglext-1.0.pc %{_libdir}/pkgconfig/gdkglext-x11-1.0.pc %{_libdir}/pkgconfig/gtkglext-1.0.pc %{_libdir}/pkgconfig/gtkglext-x11-1.0.pc %{_includedir}/gtkglext-1.0/ %files doc %doc %{_datadir}/gtk-doc/html/gtkglext/ %changelog * Fri Dec 16 2022 Dominique Leuenberger - Drop baselibs.conf: there is no known consumer of the -32bit package. * Wed Feb 28 2018 dimstar@opensuse.org - Modernize spec-file by calling spec-cleaner * Thu Jun 29 2017 jengelh@inai.de - Fix RPM groups and remove redundant %%clean section. * Wed Jan 9 2013 dmitry_r@opensuse.org - -Reintroduce gtkglext and Update to git-20110529 (bnc#799544): * no longer depends on pangox - NOTE: gtkglext is unmaintained and provided as-is for 3rd party packages only. Nothing inside openSUSE is supposed to use it. * Sun Feb 19 2012 coolo@suse.com - Add more explicit requires of devel package: the pkgconfig file references some libraries in Libs (and not Requires), so we need to depend on them. * Thu Dec 22 2011 vuntz@opensuse.org - Explicitly list files we package. * Mon Oct 11 2010 vuntz@opensuse.org - Update packaging to use the shared library packaging policy: + Create libgtkglext-x11-1_0-0 subpackage. + Add Provides/Obsoletes for gtkglext to libgtkglext-x11-1_0-0. + Update baselibs.conf accordingly. * Mon Jul 5 2010 vuntz@opensuse.org - Add gtkglext-no-deprecated-flags.patch to not build gtkglext with the *_DISABLE_DEPRECATED flags. This makes the build more robust when some API is marked as deprecated. Unfortunately, without this, the gtkglext library is looking for unknown symbols that should actually be macros at build time. Fix bnc#617677. - Drop gtkglext-gtk_widget_toplevel.patch: this is not needed anymore thanks to gtkglext-no-deprecated-flags.patch. * Thu Mar 4 2010 dimstar@opensuse.org - Add gtkglext-gtk_widget_toplevel.patch to drop deprecated usage of GTK_WIDGET_TOPLEVEL, bnc#585137, bgo#611803, reported and patched by Guillermo Ballester Valor. - Clean spec file. * Sat Dec 19 2009 jengelh@medozas.de - Add baselibs.conf as a source * 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.