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:
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b20e2af4404b4901ab35bba6ad5e3a8aa60bff72413c99288f01018c4cf874e0
|
||||
size 783810
|
||||
oid sha256:6f0c01f5116717a17477224c763bce734e259f200eebd66d44249ab0541c658f
|
||||
size 779414
|
||||
|
||||
@@ -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
|
||||
|
||||
12
pre_checkin.sh
Normal file
12
pre_checkin.sh
Normal 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
|
||||
Reference in New Issue
Block a user