diff --git a/OpenGL-0.70.tar.gz b/OpenGL-0.70.tar.gz index 0b1829f..99a3063 100644 --- a/OpenGL-0.70.tar.gz +++ b/OpenGL-0.70.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0 -size 783810 +oid sha256:6f0c01f5116717a17477224c763bce734e259f200eebd66d44249ab0541c658f +size 779414 diff --git a/perl-OpenGL.spec b/perl-OpenGL.spec index 649cddc..c7293e3 100644 --- a/perl-OpenGL.spec +++ b/perl-OpenGL.spec @@ -25,7 +25,8 @@ Summary: Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/OpenGL/ -Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHM/OpenGL-0.70.tar.gz +#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 Patch0: 0001-Don-t-check-current-display-for-extensions.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build diff --git a/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..a19e7a9 --- /dev/null +++ b/pre_checkin.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# This script is called automatically during autobuild checkin. +# to remove unneccesary files that make legal checks hard + +if tar tf OpenGL-*.tar.gz|grep -q glu.h ; then + set -x + set -e + gzip -cd OpenGL-*.tar.gz > .tar.tmp + tar --wildcards --delete -f .tar.tmp OpenGL-\*/include/GL/{glu,glut,freeglut}.h + gzip -c9n .tar.tmp > OpenGL-*.tar.gz +fi +true