[packages/perl-OpenGL] - fix for missing prototypes, release 2
qboosh
qboosh at pld-linux.org
Sat Sep 27 09:16:35 CEST 2025
commit 5c07157430f5ef81fbd2fe76ff33e81e44322853
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 27 09:19:34 2025 +0200
- fix for missing prototypes, release 2
perl-OpenGL-prototypes.patch | 11 +++++++++++
perl-OpenGL.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/perl-OpenGL.spec b/perl-OpenGL.spec
index aa6c18e..5aa64b4 100644
--- a/perl-OpenGL.spec
+++ b/perl-OpenGL.spec
@@ -6,13 +6,14 @@ Summary: OpenGL - Perl module to display 3D data using OpenGL, GLU, GLUT, and GL
Summary(pl.UTF-8): OpenGL - moduł Perla przedstawiający dane korzystając z bibliotek OpenGL, GLU, GLUT i GLX
Name: perl-OpenGL
Version: 0.7006
-Release: 1
+Release: 2
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: https://www.cpan.org/modules/by-module/OpenGL/OpenGL-%{version}.tar.gz
# Source0-md5: d5ace37b2e3355a1278080e90f3438d8
Patch0: %{name}-build.patch
+Patch1: %{name}-prototypes.patch
URL: https://metacpan.org/dist/OpenGL
BuildRequires: OpenGL-devel
BuildRequires: freeglut-devel
@@ -41,6 +42,7 @@ dla GLUT jest dostępna także niewielka część API GLX i X11.
%prep
%setup -q -n OpenGL-%{version}
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__perl} Makefile.PL \
diff --git a/perl-OpenGL-prototypes.patch b/perl-OpenGL-prototypes.patch
new file mode 100644
index 0000000..379e482
--- /dev/null
+++ b/perl-OpenGL-prototypes.patch
@@ -0,0 +1,11 @@
+Unblock (used) prototypes from <GL/glext.h>
+--- OpenGL-0.7006/Makefile.PL.orig 2025-09-26 22:12:03.254141853 +0200
++++ OpenGL-0.7006/Makefile.PL 2025-09-27 08:56:28.623030160 +0200
+@@ -642,7 +642,6 @@ sub get_defines {
+ $out = cfile_text('GL/freeglut.h', $INCS);
+ $defs .= " -DHAVE_FREEGLUT -DHAVE_FREEGLUT_H"
+ if $out =~ m|glutMainLoopEvent|;
+- $defs .= " -DGL_GLEXT_LEGACY";
+ }
+ $defs;
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-OpenGL.git/commitdiff/5c07157430f5ef81fbd2fe76ff33e81e44322853
More information about the pld-cvs-commit
mailing list