debian/0000775000000000000000000000000012247550354007177 5ustar debian/rules0000775000000000000000000000017012247547626010265 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_strip: dh_strip --dbg-package=ruby-grib-dbg debian/watch0000664000000000000000000000014312247547626010236 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/rb-grib .*/rb-grib-(.*).tar.gz debian/changelog0000664000000000000000000000207612247550347011060 0ustar ruby-grib (0.2.2-3build1) trusty; urgency=low * No-change rebuild for new grib-api and ruby. -- Logan Rosen Wed, 04 Dec 2013 01:46:05 -0500 ruby-grib (0.2.2-3) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Youhei SASAKI Sat, 30 Jun 2012 00:54:10 +0900 ruby-grib (0.2.2-2) unstable; urgency=low * Refresh patches: using gbp-pq - Fix for FTBFS(hardening), Thanks to Lucas, Andreas! (Closes: #676196) - Fix RSpec LOAD_PATH in order to running RSpec during Build * Execute RSpec during build * Add Depends: libgrib-api-tools -- Youhei SASAKI Sun, 17 Jun 2012 17:39:12 +0900 ruby-grib (0.2.2-1) unstable; urgency=low * New upstream version: 0.2.2 * Add libgrib-api-tools to Build-Depends * Bump Standard Version: 3.9.3 -- Youhei SASAKI Thu, 22 Mar 2012 01:02:41 +0900 ruby-grib (0.2.0-1) unstable; urgency=low * Initial release (Closes: #655538) -- Youhei SASAKI Mon, 09 Jan 2012 21:28:15 +0900 debian/compat0000664000000000000000000000000212247547626010405 0ustar 7 debian/copyright0000664000000000000000000001102512247547626011141 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: rb-grib Source: http://ruby.gfd-dennou.org/products/rb-grib/ Files: * Copyright: 2011 Seiya Nisizawa and GFD Dennou Club License: BSD-2-Clause or Ruby's Files: debian/* Copyright: 2011 Youhei SASAKI License: BSD-2-Clause Files: data/* Copyright: Copyright (C) 2005-2007, ECMWF (The European Centre for Medium-Range Weather Forecasts) License: LGPL-3 License: LGPL-3 Licensed under the GNU Lesser General Public License which incorporates the terms and conditions of version 3 of the GNU General Public License. The texts of these two licenses can be found in /usr/share/common-licenses/GPL-3 and /usr/share/common-licenses/LGPL-3 License: BSD-2-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. 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. . THIS SOFTWARE IS PROVIDED BY THE AUTHORS 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 AUTHOR 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: Ruby's You can redistribute it and/or modify it under either the terms of the 2-clause BSDL (see the file BSDL), or the conditions below: . 1. You may make and give away verbatim copies of the source form of the software without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. . 2. You may modify your copy of the software in any way, provided that you do at least ONE of the following: . a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or by allowing the author to include your modifications in the software. . b) use the modified software only within your corporation or organization. . c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 3. You may distribute the software in object code or binary form, provided that you do at least ONE of the following: . a) distribute the binaries and library files of the software, together with instructions (in the manual page or equivalent) on where to get the original distribution. . b) accompany the distribution with the machine-readable source of the software. . c) give non-standard binaries non-standard names, with instructions on where to get the original software distribution. . d) make other distribution arrangements with the author. . 4. You may modify and include the part of the software into any other software (possibly commercial). But some files in the distribution are not written by the authors, so that they are not under these terms. . The data files in the "data" directory are provided by GRIB API (http://www.ecmwf.int/products/data/software/grib_api.html) under the GNU Lesser General Public License. . 5. The scripts and library files supplied as input to or produced as output from the software do not automatically fall under the copyright of the software, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this software. . 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. debian/source/0000775000000000000000000000000012247550354010477 5ustar debian/source/format0000664000000000000000000000001412247547626011715 0ustar 3.0 (quilt) debian/source/include-binaries0000664000000000000000000000004012247547626013641 0ustar spec/GRIB1.tmpl spec/GRIB2.tmpl debian/ruby-tests.rake0000664000000000000000000000024312247547626012173 0ustar # -*- mode: ruby; coding: utf-8; -*- require "rspec/core/rake_task" task :default => [:spec] RSpec::Core::RakeTask.new do |t| t.pattern = 'spec/*_spec.rb' end debian/ruby-grib.docs0000664000000000000000000000001412247547626011756 0ustar README.rdoc debian/control0000664000000000000000000000302512247547626010612 0ustar Source: ruby-grib Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Youhei SASAKI DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), rake, ruby-rspec, ruby-narray, ruby-narray-miss, libgrib-api-dev, libgrib-api-tools Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-rb-grib.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-rb-grib.git;a=summary Homepage: http://ruby.gfd-dennou.org/products/rb-grib/ XS-Ruby-Versions: all Package: ruby-grib Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, libgrib-api-tools Description: Ruby interface to the ECMWF GRIB API RUBY-GRIB is a Ruby library to handle GRIB(GRidded Binary) file, a mathematically concise data format commonly used in meteorology to store historical and forecast weather data. Package: ruby-grib-dbg Section: debug Priority: extra Architecture: any Depends: ruby-grib (=${binary:Version}), ${misc:Depends} Description: Ruby interface to the ECMWF GRIB API (debug symbol) RUBY-GRIB is a Ruby library to handle GRIB(GRidded Binary) file, a mathematically concise data format commonly used in meteorology to store historical and forecast weather data. . This package is primarily to provide a backtrace with names in a debugger, this make it somewhat easier to interpret core dumps. Most people will not need this package. debian/patches/0000775000000000000000000000000012247550354010626 5ustar debian/patches/series0000664000000000000000000000007712247547626012057 0ustar 0001-Fix-RSpec-LOAD_PATH.patch 0002-Ad-hoc-fix-Hardening.patch debian/patches/0002-Ad-hoc-fix-Hardening.patch0000664000000000000000000000105412247547626016012 0ustar From: Youhei SASAKI Date: Tue, 12 Jun 2012 10:02:04 +0900 Subject: Ad hoc fix Hardening Signed-off-by: Youhei SASAKI --- ext/grib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/grib.c b/ext/grib.c index 1cf886a..53ee66c 100644 --- a/ext/grib.c +++ b/ext/grib.c @@ -11,7 +11,7 @@ static void check_error(int code) { - if (code) rb_raise(rb_eRuntimeError, grib_get_error_message(code)); + if (code) rb_raise(rb_eRuntimeError, "%s", grib_get_error_message(code)); }; debian/patches/0001-Fix-RSpec-LOAD_PATH.patch0000664000000000000000000000174512247547626015335 0ustar From: Debian Ruby Extras Maintainers Date: Sun, 17 Jun 2012 17:37:56 +0900 Subject: Fix RSpec LOAD_PATH --- spec/spec_helper.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a9cc64a..596f836 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,8 @@ -$LOAD_PATH.unshift File.expand_path(File.join('..','ext'), File.dirname(__FILE__)) -$LOAD_PATH.unshift File.expand_path(File.join('..','lib'), File.dirname(__FILE__)) -alias :_require :require -def require(arg) - arg = "grib.so" if arg == "numru/grib.so" - _require(arg) -end +#$LOAD_PATH.unshift File.expand_path(File.join('..','ext'), File.dirname(__FILE__)) +#$LOAD_PATH.unshift File.expand_path(File.join('..','lib'), File.dirname(__FILE__)) +#alias :_require :require +#def require(arg) +# arg = "grib.so" if arg == "numru/grib.so" +# _require(arg) +#end require "numru/grib" spec/GRIB1.tmpl0000664000000000000000000000015312247547626010420 0ustar GRIBk4€b˙€dô 0001 ˙hľ_€_zXčč €Dš}n7777spec/GRIB2.tmpl0000664000000000000000000000027012247547626010421 0ustar GRIB˙˙¸b× Hđ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙“‡0ÉÀ„€„€"˙€˙˙˙˙˙˙˙˙˙˙˙đ?€€ ˙7777