# # spec file for package perl-OpenGL # # Copyright (c) 2025 SUSE LLC and contributors # # 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 cpan_name OpenGL Name: perl-OpenGL Version: 0.700.600 Release: 0 # 0.7006 -> normalize -> 0.700.600 %define cpan_version 0.7006 #Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later) License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md Patch0: 0001-Don-t-check-current-display-for-extensions.patch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.88 Provides: perl(OpenGL) = %{version} Provides: perl(OpenGL::Array) = 0.710.100 Provides: perl(OpenGL::Const) = 0.700.300 Provides: perl(OpenGL::GLU) = 0.700.300 Provides: perl(OpenGL::GLUT) = 0.720.200 Provides: perl(OpenGL::GLX) = 0.700.300 Provides: perl(OpenGL::Matrix) = 0.700.300 Provides: perl(OpenGL::Shader) = 1.20.0 Provides: perl(OpenGL::Shader::ARB) = 1.20.0 Provides: perl(OpenGL::Shader::CG) = 1.20.0 Provides: perl(OpenGL::Shader::Common) = 1.20.0 Provides: perl(OpenGL::Shader::GLSL) = 1.20.0 Provides: perl(OpenGL::Shader::Objects) = 1.20.0 Provides: perl(OpenGL::V1) = 0.700.300 Provides: perl(OpenGL::V2) = 0.700.300 Provides: perl(OpenGL::V3) = 0.700.300 %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN %if 0%{suse_version} >= 1500 BuildRequires: Mesa-dri %endif BuildRequires: freeglut-devel BuildRequires: gcc-c++ BuildRequires: xvfb-run BuildRequires: pkgconfig(xi) BuildRequires: pkgconfig(xmu) # MANUAL END %description Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT %prep %autosetup -n %{cpan_name}-%{cpan_version} -p1 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 # MANUAL BEGIN find include -type f \! -name glprocs.h -exec rm {} + # MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" dist=NO_EXCLUSIONS # Certain OpenGL calls may not be present in our OpenGL # implementation, let us just ignore them. sed 's/PERL_DL_NONLAZY=1//' -i Makefile %{__make} %{?_smp_mflags} %check xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes COPYRIGHT examples isosurf.bin KNOWN_PROBLEMS README SUPPORTS test.jpg test.tga TODO %changelog