debian/0000775000000000000000000000000012321545073007172 5ustar debian/rules0000775000000000000000000000137712321545051010256 0ustar #!/usr/bin/make -f export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems export DH_RUBY_IGNORE_TESTS=ruby1.9.1 ruby2.0 ruby2.1 # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec export rake=/usr/bin/rake clobber && /usr/bin/rake install #export rake=/usr/bin/rake %: dh $@ --buildsystem=ruby --with ruby override_dh_installexamples: dh_installexamples find debian/ruby-opengl/usr/share/doc/ruby-opengl/examples/ -name "*.rb" -exec chmod a-x '{}' \; get-orig: debian/repack.sh debian/watch0000664000000000000000000000022312321316612010213 0ustar version=3 options="dversionmangle=s/\+dfsg\d//" \ http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ruby-opengl .*/ruby-opengl-(.*).tar.gz debian/ruby-tests.rb0000664000000000000000000000005312321316612011631 0ustar Dir['test/tc_*.rb'].each { |f| require f } debian/changelog0000664000000000000000000001334712321545073011054 0ustar ruby-opengl (0.60.1+dfsg2-3ubuntu1) trusty; urgency=medium * Readd ruby1.9.1 to DH_RUBY_IGNORE_TESTS, as the test still fails. -- Logan Rosen Thu, 10 Apr 2014 12:43:23 -0400 ruby-opengl (0.60.1+dfsg2-3) unstable; urgency=medium * Team upload. * Update DH_RUBY_IGNORE_TESTS ruby versions (Closes: #743987) -- Christian Hofstaedtler Wed, 09 Apr 2014 21:26:04 +0200 ruby-opengl (0.60.1+dfsg2-2) unstable; urgency=medium * Team upload. * Update Build-Depends for ruby2.0, drop ruby1.8 support * Ignore test failures on ruby2.0, as the tests need X11 * Bump Standards-Version to 3.9.5 (no changes) -- Christian Hofstaedtler Tue, 24 Dec 2013 01:02:06 +0100 ruby-opengl (0.60.1+dfsg2-1) unstable; urgency=medium * Set urgency to medium as RC bugs are fixed. * Repack upstream tarball to remove examples/NeHe as it does not have a clear license (Closes: #713820). * debian/copyright: link GPL-1+ to /usr/share/common-licenses/GPL-1 * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URI in Vcs-* fields + update my email address + bump Standards-Version to 3.9.4 (no changes needed) + drop transitional packages * Do not rely on obsolete Rake file to clean (Closes: #713145). * Remove lintian overrides, about transitional packages. -- Cédric Boutillier Sun, 30 Jun 2013 09:52:13 +0200 ruby-opengl (0.60.1+dfsg1-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Cédric Boutillier Tue, 26 Jun 2012 14:14:51 +0200 ruby-opengl (0.60.1+dfsg1-1) unstable; urgency=low * Transition to gem2deb packaging (Closes: #651702) + renaming source and binary packages * convert debian/copyright to DEP5 * debian/patches + 0100_remove_rubygems.patch: remove requirement on rubygems + 0300_fix_STR2CSTR.patch: replace deprecated STR2CSTR by StringValuePtr (Closes: #650605) + 0500_fix_metadata_for_extensions.patch: fix metadata to build correctly extensions + 0900_fix_orangebook_examples.patch: fix syntax in some examples * Ignore test results during build for the moment. * Override lintian warning about duplicate descriptions for transitional packages * Bump Standards-Version: to 3.9.3 (no changes needed) * Repack upstream source tarball to remove non-free example -- Cédric Boutillier Mon, 23 Apr 2012 00:02:25 +0200 libopengl-ruby (0.60.1-1) unstable; urgency=low * New upstream release * debian/control + added DMUA flag. + added myself to uploaders. + ported to ruby1.9.1. + remove quilt as BD. * debian/copyright + added Debian's specific copyright information and updated copyright information. * debian/patches + added patch for adding ruby version's C flags. + added patch for backward compatibility. * debian/rules + removed patchsys-quilt.mk, not required now. + removed ruby-extconf-rb.mk and added ruby-setup-rb.mk. * debian/watch + updated source location. -- Deepak Tripathi Tue, 08 Jun 2010 17:28:13 +0530 libopengl-ruby (0.32g-1) unstable; urgency=low * New upstream release. * Maintenance transfered to the Debian/Ruby Extras team. * debian/control: - Set the maintainer to the team and myself as uploader. - Changed the section to ruby. - Added homepage and VCS fields. - Added libopengl-ruby{1.8,1.9.1} packages, transformed libopengl-ruby into a dummy package. - Bumped the standards version to 3.8.4. - Dropped the Ruby 1.9.1 package; upstream is not ready yet. - Added ${misc:Depends} to libopengl-ruby and libopengl-ruby1.8. - Changed xlibmesa-gl-dev build depend into libgl1-mesa-dev. - Added build depend on quilt. * debian/rules: - Rewritted to use CDBS and ruby-pkg-tools. * debian/libopengl-ruby.docs, debian/libopengl.examples: Added! * debian/source/format: Switched the source format to 3.0 (quilt). -- Paul van Tilburg Sat, 10 Apr 2010 12:30:45 +0200 libopengl-ruby (0.32f-2.1) unstable; urgency=low * Non-maintainer upload. * Build-depend on freeglut3-dev instead of libglut-dev. Closes: #545632. -- Matt Kraai Thu, 22 Oct 2009 22:18:14 -0700 libopengl-ruby (0.32f-2) unstable; urgency=low * Apply patch from Daniel Brockman to fix typo in the API. Closes: #320741. -- Dafydd Harries Tue, 9 Aug 2005 12:46:50 +0100 libopengl-ruby (0.32f-1) unstable; urgency=low * New upstream release. * debian/control: - Update Standards-Version to 3.6.1. No changes necessary. - Improve the package description. - Specify ">= 1.8" for Ruby build-dependency. - Specify xlibmesa-gl-dev as the default for the build-dependency on the libgl-dev virtual package. * Add a watch file. * Make example files non-executable. -- Dafydd Harries Mon, 2 Aug 2004 01:15:35 +0100 libopengl-ruby (0.32d-2) unstable; urgency=low * Remove CVS directories from upstream tarball. -- Dafydd Harries Wed, 3 Mar 2004 18:28:54 +0000 libopengl-ruby (0.32d-1) unstable; urgency=low * New upstream release. * Persuaded upstream to include a copyright notice. My understanding is that the licence is DFSG-free. * debian/copyright: Updated to reflect the new COPYRIGHT file. * debian/control: Add build-depends on ruby, ruby1.8-dev (in order to be able to run extconf.rb), libgl-dev and libglut-dev -- Dafydd Harries Tue, 2 Mar 2004 18:21:07 +0000 libopengl-ruby (0.32c-1) unstable; urgency=low * Initial Debianization. -- Dafydd Harries Tue, 18 Nov 2003 20:50:57 +0000 debian/compat0000664000000000000000000000000212321316612010363 0ustar 7 debian/README.source0000664000000000000000000000100012321316612011333 0ustar This package uses the Debian 3.0 (quilt) source package format. The source has been repacked to comply to to Debian Free Software Guidelines: - examples/misc/fbo_test.rb has been removed, as distribution of modified versions is not allowed. - examples/NeHe/* have been removes, as a proper could not be found (#713820) This operation is done automatically by the script debian/repack.sh, called in the get-orig-source: target in debian/rules. Cédric Boutillier Last update: 2013-06-30 debian/copyright0000664000000000000000000001332012321316612011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ruby-opengl Source: http://rubyforge.org/projects/ruby-opengl/ Comment: Source has been repacked to respect the DFSG the file example/misc/fbo_test.rb has been removed, as it does not allow the distribution of modified versions. the files examples/NeHe/* as a proper license could not be found. Files: * Copyright: 2004 Yoshiyuki Kusano 2005-2010 Alain Hoang 2005-2010 Jan Dvorak 2005-2010 Minh Thu Vo 2005-2010 James Adam License: Expat Files: examples/Redbook/* Copyright: 1993-1997, Silicon Graphics, Inc. 1994 Mark J. Kilgard License: SGI Files: examples/OrangeBook/* Copyright: 2002-2005 3Dlabs Inc. Ltd. License: BSD-3 Files: examples/NeHe/* Copyright: NeHe License: Specific Licensed under free license. Files: example/misc/* Copyright: 2007 Jan Dvorak License: Expat Files: example/misc/OGLBench.rb example/misc/trislam.rb Copyright: 2004-2006 Geoff Broadwell License: GPL-1+ or Artistic Files: debian/* Copyright: 2011-2012 Cédric Boutillier License: Expat License: Artistic On Debian systems, the full text of this license is contained in the file /usr/share/common-licenses/Artistic. License: BSD-3 All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of 3Dlabs Inc. Ltd. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GPL-1+ On Debian systems, the full text of this license is contained in the file /usr/share/common-licenses/GPL-1. License: SGI ALL RIGHTS RESERVED Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both the copyright notice and this permission notice appear in supporting documentation, and that the name of Silicon Graphics, Inc. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. . THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON GRAPHICS, INC. BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE. . US Government Users Restricted Rights Use, duplication, or disclosure by the Government is subject to restrictions set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or in similar or successor clauses in the FAR or the DOD or NASA FAR Supplement. Unpublished-- rights reserved under the copyright laws of the United States. Contractor/manufacturer is Silicon Graphics, Inc., 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311. debian/source/0000775000000000000000000000000012321317161010465 5ustar debian/source/format0000664000000000000000000000001412321316612011673 0ustar 3.0 (quilt) debian/repack.sh0000775000000000000000000000216512321316612010775 0ustar #!/bin/sh # repack.sh - removes non-free bits from the content of the upstream # source tarball to provide a DFSG-compliant tarball for the Debian package. # # In this case the files removed are: # - examples/misc/fbo_test.rb # - examples/NeHe set -e DEB_UPSTREAM_VERSION=$(dpkg-parsechangelog | sed -rne 's/^Version: ([^+]+).*/\1/p') uscan --noconf --verbose --force-download --rename --download-current-version --destdir=. rm -rf opengl-${DEB_UPSTREAM_VERSION} # unpack upstream tarball tar -xf ruby-opengl_${DEB_UPSTREAM_VERSION}.orig.tar.gz rm ruby-opengl_${DEB_UPSTREAM_VERSION}.orig.tar.gz # remove example not allowing distribution if modified rm ruby-opengl-$DEB_UPSTREAM_VERSION/examples/misc/fbo_test.rb # remove NeHe examples, without clear license rm -rf ruby-opengl-$DEB_UPSTREAM_VERSION/examples/NeHe # repack the tarball mv ruby-opengl-$DEB_UPSTREAM_VERSION ruby-opengl-$DEB_UPSTREAM_VERSION.orig GZIP=--best tar --create --gzip --owner root --group root --mode a+rX \ --file ../ruby-opengl_$DEB_UPSTREAM_VERSION+dfsg2.orig.tar.gz ruby-opengl-$DEB_UPSTREAM_VERSION.orig rm -r ruby-opengl-$DEB_UPSTREAM_VERSION.orig debian/ruby-opengl.examples0000664000000000000000000000001312321316612013162 0ustar examples/* debian/ruby-opengl.docs0000664000000000000000000000006712321316612012305 0ustar doc/tutorial.txt doc/extensions.* debian/README.source debian/clean0000664000000000000000000000006312321316612010171 0ustar ext/*/Rakefile ext/*/*.o ext/*/*.so ext/*/mkrf.log debian/control0000664000000000000000000000226412321545074010602 0ustar Source: ruby-opengl Section: ruby Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Ruby Extras Maintainers Uploaders: Paul van Tilburg , Deepak Tripathi , Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.6.0~), rake, ruby-mkrf (>=0.2.3+dfsg-5~), freeglut3-dev, libgl1-mesa-dev Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-opengl.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-opengl.git;a=summary Homepage: http://ruby-opengl.rubyforge.org XS-Ruby-Versions: all Package: ruby-opengl Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: OpenGL Interface for Ruby OpenGL (Open Graphics Library) is a standard cross-platform API for writing applications to produce two-dimensional and three-dimensional computer graphics. . This library allows programs written in Ruby to use the OpenGL API for two-dimensional and three-dimensional graphics. debian/patches/0000775000000000000000000000000012321316612010614 5ustar debian/patches/series0000664000000000000000000000017512321316612012034 0ustar 0100_remove_rubygems.patch 0300_fix_STR2CSTR.patch 0500_fix_metadata_for_extensions.patch 0900_fix_orangebook_examples.patch debian/patches/0900_fix_orangebook_examples.patch0000664000000000000000000000336312321316612017204 0ustar Description: fix syntax in some examples of the OrangeBook Author: Cédric Boutillier Forwarded: no Last-Update: 2012-04-22 --- ruby-opengl-0.60.1.orig/examples/OrangeBook/brick.rb +++ ruby-opengl-0.60.1/examples/OrangeBook/brick.rb @@ -139,13 +139,13 @@ display = lambda do glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) case $gleModel[0] - when :teapot : + when :teapot glutSolidTeapot(0.6) - when :torus : + when :torus glutSolidTorus(0.2, 0.6, 64, 64) - when :sphere : + when :sphere glutSolidSphere(0.6, 64, 64) - when :cube : + when :cube drawCube() end glFlush() @@ -257,7 +257,7 @@ end special = lambda do |key,x,y| case key - when GLUT_KEY_HOME: + when GLUT_KEY_HOME $fXDiff = 0 $fYDiff = 35 $fZDiff = 0 @@ -266,13 +266,13 @@ special = lambda do |key,x,y| $fXInertia = -0.5 $fYInertia = 0 $fScale = 1.0 - when GLUT_KEY_LEFT: + when GLUT_KEY_LEFT $fXDiff -= 1 - when GLUT_KEY_RIGHT: + when GLUT_KEY_RIGHT $fXDiff += 1 - when GLUT_KEY_UP: + when GLUT_KEY_UP $fYDiff -= 1 - when GLUT_KEY_DOWN: + when GLUT_KEY_DOWN $fYDiff += 1 end end --- ruby-opengl-0.60.1.orig/examples/OrangeBook/particle.rb +++ ruby-opengl-0.60.1/examples/OrangeBook/particle.rb @@ -289,7 +289,7 @@ end special = lambda do |key,x,y| case key - when GLUT_KEY_HOME: + when GLUT_KEY_HOME $fXDiff = 206 $fYDiff = 16 $fZDiff = 10 @@ -299,13 +299,13 @@ special = lambda do |key,x,y| $fYInertia = 0 $fScale = 0.25 $particleTime = 0 - when GLUT_KEY_LEFT: + when GLUT_KEY_LEFT $fXDiff -= 1 - when GLUT_KEY_RIGHT: + when GLUT_KEY_RIGHT $fXDiff += 1 - when GLUT_KEY_UP: + when GLUT_KEY_UP $fYDiff -= 1 - when GLUT_KEY_DOWN: + when GLUT_KEY_DOWN $fYDiff += 1 end end debian/patches/0500_fix_metadata_for_extensions.patch0000664000000000000000000000140312321316612020052 0ustar Description: fix metadata to correctly build extensions Author: Cédric Boutillier Last-Update: 2012-04-22 --- a/Rakefile +++ b/Rakefile @@ -153,7 +153,7 @@ s.platform = Gem::Platform::RUBY s.summary = "OpenGL Interface for Ruby" s.files = gem_files - s.extensions << 'Rakefile' + s.extensions << 'ext/gl/mkrf_conf.rb' <<'ext/glu/mkrf_conf.rb'<<'ext/glut/mkrf_conf.rb' s.require_path = "lib" s.autorequire = "gl" s.has_rdoc = false --- a/metadata.yml +++ b/metadata.yml @@ -40,7 +40,9 @@ executables: [] extensions: -- Rakefile +- ext/gl/mkrf_conf.rb +- ext/glu/mkrf_conf.rb +- ext/glut/mkrf_conf.rb extra_rdoc_files: [] files: debian/patches/0300_fix_STR2CSTR.patch0000664000000000000000000000073412321316612014377 0ustar Description: replace deprecated STR2CSTR by StringValuePtr http://www.ruby-forum.com/topic/215406 Author: Cédric Boutillier Last-Update: 2011-12-20 --- a/ext/glut/glut.c +++ b/ext/glut/glut.c @@ -93,7 +93,7 @@ largc = RARRAY_LEN(orig_arg); largv = ALLOCA_N(char*, largc); for (i = 0; i < largc; i++) - largv[i] = STR2CSTR(RARRAY_PTR(orig_arg)[i]); + largv[i] = StringValuePtr(RARRAY_PTR(orig_arg)[i]); glutInit(&largc, largv); debian/patches/0100_remove_rubygems.patch0000664000000000000000000000256712321316612015521 0ustar Description: remove requirements on rubygems Author: Cédric Boutillier Last-Update: 2012-04-22 --- a/Rakefile +++ b/Rakefile @@ -13,11 +13,11 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -begin - require 'rubygems' -rescue LoadError - nil -end +#begin +# require 'rubygems' +#rescue LoadError +# nil +#end require 'rake' require 'rake/clean' --- a/ext/gl/mkrf_conf.rb +++ b/ext/gl/mkrf_conf.rb @@ -13,7 +13,7 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -require 'rubygems' +#require 'rubygems' require 'mkrf' require 'rbconfig' --- a/ext/glu/mkrf_conf.rb +++ b/ext/glu/mkrf_conf.rb @@ -13,7 +13,7 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -require 'rubygems' +#require 'rubygems' require 'mkrf' RUBYVER = " -DRUBY_VERSION=" + RUBY_VERSION.split(".").join --- a/ext/glut/mkrf_conf.rb +++ b/ext/glut/mkrf_conf.rb @@ -13,7 +13,7 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -require 'rubygems' +#require 'rubygems' require 'mkrf' RUBYVER = " -DRUBY_VERSION=" + RUBY_VERSION.split(".").join