Compare commits

3 Commits

4 changed files with 25 additions and 6 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-OpenGL/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-OpenGL)

View File

@@ -1,13 +1,12 @@
# http://pkgs.fedoraproject.org/cgit/perl-OpenGL.git/tree/
patches:
0001-Don-t-check-current-display-for-extensions.patch: -p1
OpenGL-0.6704-Prefer-system-GL-gl.h-on-non-Win32.patch: -p1
OpenGL-0.6704-Delete-functions-removed-from-Mesa.patch: -p1
preamble: |-
%if 0%{suse_version} >= 1500
BuildRequires: Mesa-dri
%endif
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: xvfb-run
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xmu)

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 20 17:22:31 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Fix cpanspec.yaml (it had entries that weren't used in the spec, and
entries were missing that were used in the spec)
-------------------------------------------------------------------
Mon Mar 4 13:57:05 UTC 2024 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-OpenGL
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -22,12 +22,13 @@ Release: 0
#Upstream: CHECK(GPL-1.0+ or Artistic-1.0)
%define cpan_name OpenGL
Summary: Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT
License: GPL-1.0+ or Artistic-1.0
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/OpenGL/
URL: http://search.cpan.org/dist/OpenGL/
#Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHM/OpenGL-0.70.tar.gz # modified by pre_checkin.sh
Source0: OpenGL-0.70.tar.gz
Source1: cpanspec.yml
Source100: README.md
Patch0: 0001-Don-t-check-current-display-for-extensions.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -60,6 +61,7 @@ find include -type f \! -name glprocs.h -exec rm {} +
# 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