SHA256
8
0
forked from pool/perl-OpenGL

add pre_checkin.sh to pass legal checks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-OpenGL?expand=0&rev=6
This commit is contained in:
2017-08-08 12:59:44 +00:00
committed by Git OBS Bridge
parent 3b38f865d1
commit 17eaccff81
3 changed files with 16 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0 oid sha256:6f0c01f5116717a17477224c763bce734e259f200eebd66d44249ab0541c658f
size 783810 size 779414

View File

@@ -25,7 +25,8 @@ Summary: Perl bindings to the OpenGL API, GLU, and GLUT/FreeGLUT
License: GPL-1.0+ or Artistic-1.0 License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl 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 #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 Source1: cpanspec.yml
Patch0: 0001-Don-t-check-current-display-for-extensions.patch Patch0: 0001-Don-t-check-current-display-for-extensions.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build

12
pre_checkin.sh Normal file
View File

@@ -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