[packages/gtkglext] - refreshed spec, fixes to build with current gcc/glibc and gtk-doc; release 9
qboosh
qboosh at pld-linux.org
Thu Nov 5 19:46:22 CET 2026
commit f35987b1e2a8b541e1b9e85dd35a8083d7f5bea2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Nov 5 19:46:51 2026 +0100
- refreshed spec, fixes to build with current gcc/glibc and gtk-doc; release 9
gtkglext-gtkdoc.patch | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++
gtkglext-index.patch | 21 ++++++++++++++++++
gtkglext.spec | 36 ++++++++++++++++---------------
3 files changed, 99 insertions(+), 17 deletions(-)
---
diff --git a/gtkglext.spec b/gtkglext.spec
index 2a3bbba..fd1c1e9 100644
--- a/gtkglext.spec
+++ b/gtkglext.spec
@@ -2,13 +2,15 @@ Summary: OpenGL extension to GTK
Summary(pl.UTF-8): Rozszerzenie OpenGL dla GTK
Name: gtkglext
Version: 1.2.0
-Release: 8
+Release: 9
License: LGPL v2.1+
Group: X11/Libraries
-Source0: http://downloads.sourceforge.net/gtkglext/%{name}-%{version}.tar.bz2
+Source0: https://downloads.sourceforge.net/gtkglext/%{name}-%{version}.tar.bz2
# Source0-md5: ed7ba24ce06a8630c07f2d0ee5f04ab4
Patch0: %{name}-gtk+2.patch
-URL: http://gtkglext.sourceforge.net/
+Patch1: %{name}-index.patch
+Patch2: %{name}-gtkdoc.patch
+URL: https://gtkglext.sourceforge.net/
BuildRequires: OpenGL-GLU-devel
BuildRequires: autoconf >= 2.54
BuildRequires: automake >= 1:1.7
@@ -19,11 +21,9 @@ BuildRequires: libtool >= 1:1.4.2-9
BuildRequires: pangox-compat-devel >= 0.0.2
BuildRequires: pkgconfig
BuildRequires: xorg-lib-libXmu-devel
-Requires: gtk+2 >= 2:2.19.0
+Requires: gtk+2%{?_isa} >= 2:2.19.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _noautoreqdep libGL.so.1 libGLU.so.1
-
%description
GtkGLExt provides the GDK objects to support OpenGL rendering in GTK,
and GtkWidget API add-ons to make GTK+ widgets OpenGL-capable.
@@ -43,11 +43,11 @@ OpenGL, ale interfejs do używania OpenGL w *KAŻDYM* widgecie GTK+.
Summary: Development files for GtkGLExt
Summary(pl.UTF-8): Pliki programistyczne GtkGLExt
Group: X11/Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: OpenGL-GLU-devel
-Requires: gtk+2-devel >= 2:2.19.0
-Requires: pangox-compat-devel >= 0.0.2
-Requires: xorg-lib-libXmu-devel
+Requires: gtk+2-devel%{?_isa} >= 2:2.19.0
+Requires: pangox-compat-devel%{?_isa} >= 0.0.2
+Requires: xorg-lib-libXmu-devel%{?_isa}
%description devel
Development files for GtkGLExt.
@@ -70,10 +70,12 @@ Statyczne biblioteki GtkGLExt.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4macros
%{__autoconf}
%{__autoheader}
%{__automake}
@@ -102,15 +104,15 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog* README TODO
-%attr(755,root,root) %{_libdir}/libgdkglext-x11-1.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgdkglext-x11-1.0.so.0
-%attr(755,root,root) %{_libdir}/libgtkglext-x11-1.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgtkglext-x11-1.0.so.0
+%{_libdir}/libgdkglext-x11-1.0.so.*.*.*
+%ghost %{_libdir}/libgdkglext-x11-1.0.so.0
+%{_libdir}/libgtkglext-x11-1.0.so.*.*.*
+%ghost %{_libdir}/libgtkglext-x11-1.0.so.0
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libgdkglext-x11-1.0.so
-%attr(755,root,root) %{_libdir}/libgtkglext-x11-1.0.so
+%{_libdir}/libgdkglext-x11-1.0.so
+%{_libdir}/libgtkglext-x11-1.0.so
%{_libdir}/%{name}-1.0
%{_includedir}/%{name}-1.0
%{_pkgconfigdir}/gdkglext-1.0.pc
diff --git a/gtkglext-gtkdoc.patch b/gtkglext-gtkdoc.patch
new file mode 100644
index 0000000..73a5145
--- /dev/null
+++ b/gtkglext-gtkdoc.patch
@@ -0,0 +1,59 @@
+--- gtkglext-1.2.0/docs/reference/gtkglext/Makefile.am.orig 2003-07-29 08:12:20.000000000 +0200
++++ gtkglext-1.2.0/docs/reference/gtkglext/Makefile.am 2026-11-05 18:46:47.275976016 +0100
+@@ -133,19 +133,9 @@ scan-build.stamp: $(HFILE_GLOB)
+ $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES): scan-build.stamp
+ @true
+
+-#### templates ####
+-
+-tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES)
+- @echo '*** Rebuilding template files ***'
+- cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE)
+- touch tmpl-build.stamp
+-
+-tmpl.stamp: tmpl-build.stamp
+- @true
+-
+ #### sgml ####
+
+-sgml-build.stamp: tmpl.stamp $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml
++sgml-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_OVERRIDES) $(CFILE_GLOB) $(srcdir)/tmpl/*.sgml
+ @echo '*** Building SGML ***'
+ cd $(srcdir) && \
+ gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
+@@ -162,7 +152,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_
+ cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+ test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
+ @echo '-- Fixing Crossreferences'
+- cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
++ cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
+ touch html-build.stamp
+ endif
+
+--- gtkglext-1.2.0/examples/lw.c.orig 2002-06-10 03:21:15.000000000 +0200
++++ gtkglext-1.2.0/examples/lw.c 2026-11-05 19:29:05.604032398 +0100
+@@ -1,5 +1,5 @@
+ /*
+- * Copyright (C) 1998 Janne L�f <jlof at mail.student.oulu.fi>
++ * Copyright (C) 1998 Janne Löf <jlof at mail.student.oulu.fi>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+--- gtkglext-1.2.0/examples/lw.h.orig 2003-03-29 21:25:01.000000000 +0100
++++ gtkglext-1.2.0/examples/lw.h 2026-11-05 19:29:30.264195308 +0100
+@@ -1,5 +1,5 @@
+ /*
+- * Copyright (C) 1998 Janne L�f <jlof at mail.student.oulu.fi>
++ * Copyright (C) 1998 Janne Löf <jlof at mail.student.oulu.fi>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+--- gtkglext-1.2.0/examples/viewlw.c.orig 2004-02-20 18:41:02.000000000 +0100
++++ gtkglext-1.2.0/examples/viewlw.c 2026-11-05 19:29:53.856211957 +0100
+@@ -1,5 +1,5 @@
+ /*
+- * Copyright (C) 1998 Janne L�f <jlof at mail.student.oulu.fi>
++ * Copyright (C) 1998 Janne Löf <jlof at mail.student.oulu.fi>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
diff --git a/gtkglext-index.patch b/gtkglext-index.patch
new file mode 100644
index 0000000..f1d668f
--- /dev/null
+++ b/gtkglext-index.patch
@@ -0,0 +1,21 @@
+Avoid conflict with libc function
+--- gtkglext-1.2.0/gdk/gdkglshapes.c.orig 2004-02-20 10:38:12.000000000 +0100
++++ gtkglext-1.2.0/gdk/gdkglshapes.c 2026-11-05 06:24:13.293168685 +0100
+@@ -544,7 +544,7 @@ static GLfloat idata[12][3] =
+ {-Z, -X, 0}
+ };
+
+-static int index[20][3] =
++static int index_[20][3] =
+ {
+ {0, 4, 1},
+ {0, 9, 4},
+@@ -574,7 +574,7 @@ icosahedron(GLenum shadeType)
+ int i;
+
+ for (i = 19; i >= 0; i--) {
+- drawtriangle(i, idata, index, shadeType);
++ drawtriangle(i, idata, index_, shadeType);
+ }
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtkglext.git/commitdiff/f35987b1e2a8b541e1b9e85dd35a8083d7f5bea2
More information about the pld-cvs-commit
mailing list