forked from pool/perl-OpenGL
- Fix cpanspec.yaml (it had entries that weren't used in the spec, and entries were missing that were used in the spec) OBS-URL: https://build.opensuse.org/request/show/1254803 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-OpenGL?expand=0&rev=13
24 lines
813 B
YAML
24 lines
813 B
YAML
# http://pkgs.fedoraproject.org/cgit/perl-OpenGL.git/tree/
|
|
patches:
|
|
0001-Don-t-check-current-display-for-extensions.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)
|
|
license: GPL-1.0+ or Artistic-1.0
|
|
post_prep: |-
|
|
find include -type f \! -name glprocs.h -exec rm {} +
|
|
custom_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}
|
|
custom_test: |-
|
|
xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" %{__make} test
|