public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10.3: New patch to include <GL/glu.h>. Needed on F17.
@ 2026-11-30 13:57 Laurent Rineau
  0 siblings, 0 replies; only message in thread
From: Laurent Rineau @ 2026-11-30 13:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libQGLViewer
Branch : epel10.3
Commit : 8f81e05049b32d7156937225ec34505884695890
Author : Laurent Rineau <Laurent.Rineau__emacs_git@normalesup.org>
Date   : 2012-02-09T17:54:48+01:00
Stats  : +41/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/8f81e05049b32d7156937225ec34505884695890?branch=epel10.3

Log:
New patch to include <GL/glu.h>. Needed on F17.

---
diff --git a/libQGLViewer-2.3.9-glu.patch b/libQGLViewer-2.3.9-glu.patch
new file mode 100644
index 0000000..5391cf3
--- /dev/null
+++ b/libQGLViewer-2.3.9-glu.patch
@@ -0,0 +1,32 @@
+diff -up libQGLViewer-2.3.9/QGLViewer/camera.cpp~ libQGLViewer-2.3.9/QGLViewer/camera.cpp
+--- libQGLViewer-2.3.9/QGLViewer/camera.cpp~	2010-12-06 10:42:47.000000000 +0100
++++ libQGLViewer-2.3.9/QGLViewer/camera.cpp	2012-02-09 17:49:49.543809979 +0100
+@@ -24,6 +24,12 @@
+ #include "camera.h"
+ #include "qglviewer.h"
+ 
++#ifdef Q_OS_MAC
++# include <OpenGL/glu.h>
++#else
++# include <GL/glu.h>
++#endif
++
+ using namespace std;
+ using namespace qglviewer;
+ 
+diff -up libQGLViewer-2.3.9/QGLViewer/qglviewer.cpp~ libQGLViewer-2.3.9/QGLViewer/qglviewer.cpp
+--- libQGLViewer-2.3.9/QGLViewer/qglviewer.cpp~	2010-12-06 10:42:47.000000000 +0100
++++ libQGLViewer-2.3.9/QGLViewer/qglviewer.cpp	2012-02-09 17:50:07.895132873 +0100
+@@ -25,6 +25,12 @@
+ #include "camera.h"
+ #include "keyFrameInterpolator.h"
+ 
++#ifdef Q_OS_MAC
++# include <OpenGL/glu.h>
++#else
++# include <GL/glu.h>
++#endif
++
+ #if QT_VERSION >= 0x040000
+ # include <QtAlgorithms>
+ # include <QTextEdit>

diff --git a/libQGLViewer.spec b/libQGLViewer.spec
index 476d1b5..71c1bd3 100644
--- a/libQGLViewer.spec
+++ b/libQGLViewer.spec
@@ -1,6 +1,6 @@
 Name:           libQGLViewer
 Version:        2.3.9
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Qt based OpenGL generic 3D viewer library
 
 Group:          System Environment/Libraries
@@ -16,6 +16,9 @@ Patch0:         libQGLViewer-2.3.1-exit.patch
 # them back.
 Patch1:         libQGLViewer-2.3.6-dbg.patch
 
+# Need to include <GL/glu.h> explicitely: <GL/glut.h> is no longer sufficent
+Patch2:         libQGLViewer-2.3.9-glu.patch
+
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  qt4-devel
@@ -52,7 +55,8 @@ BuildArch: noarch
 %prep
 %setup -q -n %{name}-%{version}
 %patch0 -p1 -b .exit
-%patch1 -p1 -b dbg
+%patch1 -p1 -b .dbg
+%patch2 -p1 -b .glu
 
 # Fix the encoding of several files, so that they all use utf-8.
 for f in doc/*.html doc/examples/*.html \
@@ -129,6 +133,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc examples
 
 %changelog
+* Thu Feb  9 2012 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.9-3
+- New patch to include <GL/glu.h>. Needed on F17.
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.9-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:57 [rpms/libQGLViewer] epel10.3: New patch to include <GL/glu.h>. Needed on F17 Laurent Rineau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox