[DRE-commits] [ruby-fftw3] 03/07: Refresh patches

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Thu Jul 21 06:26:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

uwabami-guest pushed a commit to branch master
in repository ruby-fftw3.

commit fa3eaebf552e6610b9f5dc850165ae67f9e5c3cf
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Thu Jul 21 14:43:02 2016 +0900

    Refresh patches
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 debian/patches/0001-RefactTestCases.patch          | 89 ----------------------
 debian/patches/0002-Drop-RubyGems-Depends.patch    |  6 +-
 ...-patch-replace-git-execution-from-gemspec.patch |  6 +-
 debian/patches/series                              |  1 -
 4 files changed, 3 insertions(+), 99 deletions(-)

diff --git a/debian/patches/0001-RefactTestCases.patch b/debian/patches/0001-RefactTestCases.patch
deleted file mode 100644
index a3f3f23..0000000
--- a/debian/patches/0001-RefactTestCases.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From: Youhei SASAKI <uwabami at gfd-dennou.org>
-Date: Tue, 15 Oct 2013 17:00:05 +0900
-Subject: RefactTestCases
-
----
- test/complexFFT.rb | 69 +++++++++++++++++++++++++++---------------------------
- 1 file changed, 35 insertions(+), 34 deletions(-)
-
-diff --git a/test/complexFFT.rb b/test/complexFFT.rb
-index e8dde6d..b7e28d5 100644
---- a/test/complexFFT.rb
-+++ b/test/complexFFT.rb
-@@ -3,41 +3,42 @@ require "rubygems"
- rescue LoadError
- end
- require "narray"  # This line is needed for rake test when making a gem package.
-+require "test/unit"
-+require "narray"
- require "numru/fftw3"
- include NumRu
- 
--print "\n**TEST** all dimensions\n\n"
--
--na = NArray.float(8,4).fill(1)  # will be corced to complex
--na[1,1]=5
--p na
--fc = FFTW3.fft(na, -1)/na.length 
--p fc
--p fc.real
--
--p FFTW3.fft(fc, 1).real
--
--print "\n**TEST** single float (treated as single if lib fftw3f exits)\n"
--print " --- see http://www.fftw.org/fftw3_doc/Precision.html for more info\n\n"
--na = NArray.sfloat(8,4).indgen!
--fc = FFTW3.fft(na, -1)/na.length 
--p fc
--p FFTW3.fft(fc, 1).real
--
--print "\n**TEST** dimension selection\n\n"
--
--fc = FFTW3.fft(na, -1, 0)/na.shape[0]
--p fc
--p FFTW3.fft(fc, 1, 0).real
--fc = FFTW3.fft(na, -1, 1)/na.shape[1]
--p fc
--p FFTW3.fft(fc, 1, 1).real
--
--na = NArray.float(4,3,8,3)
--na[1,1,1,0]= 1
--p( fc=FFTW3.fft(na, -1, 0,2) / (na.shape[0]*na.shape[2]) )
--p( fc=FFTW3.fft(na, -1, 1) / na.shape[1] )
--p( fc=FFTW3.fft(na, -1, 0,1,2)  / (na.shape[0]*na.shape[1]*na.shape[2]) )
--p FFTW3.fft(fc, 1, 0,1,2).real
--
-+class ComplexTest < Test::Unit::TestCase
-+
-+  def setup
-+    @na_double = NArray.float(8,4).fill(1.0)
-+    @na_single = NArray.sfloat(8,4).indgen!
-+    @na_complex = NArray.float(4,3,8,3)
-+    @na_complex[1,1,1,0] = 1.0
-+    @sfloat_delta = 5.0e-5
-+    @float_delta = 1.0e-13
-+  end
-+
-+  define_method("test_double_float") do
-+    fc_double = FFTW3.fft(@na_double, -1)/@na_double.length
-+    assert_in_delta @na_double, FFTW3.fft(fc_double, 1).real, @float_delta
-+  end
-+
-+  define_method("test_single_float") do
-+    fc_single = FFTW3.fft(@na_single, -1)/@na_single.length
-+    assert_in_delta @na_single, FFTW3.fft(fc_single, 1).real, @sfloat_delta
-+  end
-+
-+  define_method("test_dimenssion_selection") do
-+    fc_double = FFTW3.fft(@na_double, -1, 0)/@na_double.shape[0]
-+    assert_in_delta @na_double, FFTW3.fft(fc_double, 1, 0).real, @float_delta
-+    fc_single = FFTW3.fft(@na_single, -1, 0)/@na_single.shape[0]
-+    assert_in_delta @na_single, FFTW3.fft(fc_single, 1, 0).real, @sfloat_delta
-+  end
-+
-+  define_method("test_complex") do
-+    fc_complex = FFTW3.fft(@na_complex, -1, 0, 1, 2)/(@na_complex.shape[0]*@na_complex.shape[1]*@na_complex.shape[2])
-+    assert_in_delta @na_complex, FFTW3.fft(fc_complex, 1, 0, 1, 2).real, @float_delta
-+  end
- 
-+end
diff --git a/debian/patches/0002-Drop-RubyGems-Depends.patch b/debian/patches/0002-Drop-RubyGems-Depends.patch
index 16d91d6..20ec5e0 100644
--- a/debian/patches/0002-Drop-RubyGems-Depends.patch
+++ b/debian/patches/0002-Drop-RubyGems-Depends.patch
@@ -8,8 +8,6 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  test/complexFFT.rb | 4 ----
  2 files changed, 9 deletions(-)
 
-diff --git a/lib/numru/fftw3.rb b/lib/numru/fftw3.rb
-index 84f48bb..ebb6abb 100644
 --- a/lib/numru/fftw3.rb
 +++ b/lib/numru/fftw3.rb
 @@ -1,8 +1,3 @@
@@ -21,8 +19,6 @@ index 84f48bb..ebb6abb 100644
  require "numru/fftw3/version"
  require "numru/fftw3/fftw3"
  
-diff --git a/test/complexFFT.rb b/test/complexFFT.rb
-index b7e28d5..9067f70 100644
 --- a/test/complexFFT.rb
 +++ b/test/complexFFT.rb
 @@ -1,7 +1,3 @@
@@ -31,5 +27,5 @@ index b7e28d5..9067f70 100644
 -rescue LoadError
 -end
  require "narray"  # This line is needed for rake test when making a gem package.
+ require "numru/fftw3"
  require "test/unit"
- require "narray"
diff --git a/debian/patches/0003-Add-patch-replace-git-execution-from-gemspec.patch b/debian/patches/0003-Add-patch-replace-git-execution-from-gemspec.patch
index cb45c2b..7e5df9d 100644
--- a/debian/patches/0003-Add-patch-replace-git-execution-from-gemspec.patch
+++ b/debian/patches/0003-Add-patch-replace-git-execution-from-gemspec.patch
@@ -7,16 +7,14 @@ Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
  ruby-fftw3.gemspec | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
-diff --git a/ruby-fftw3.gemspec b/ruby-fftw3.gemspec
-index 29b50f9..1da7053 100644
 --- a/ruby-fftw3.gemspec
 +++ b/ruby-fftw3.gemspec
-@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
+@@ -14,7 +14,7 @@
    spec.homepage         = 'http://www.gfd-dennou.org/arch/ruby/products/ruby-fftw3/'
    spec.licenses         = ["BSD-2-Clause"]
  
 -  spec.files            = `git ls-files -z`.split("\x0")
-+  spec.files            = [".ChangeLog.until20110419",".gitignore","Gemfile","LICENSE.txt","Rakefile","ToDo","doc/ruby-fftw3.html","doc/ruby-fftw3.rd","ext/numru/fftw3/extconf.rb","ext/numru/fftw3/na_fftw3.c","lib/numru/fftw3.rb","lib/numru/fftw3/version.rb","ruby-fftw3.gemspec","test/complexFFT.rb"]
++  spec.files            = [".ChangeLog.until20110419",".gitignore","Gemfile","LICENSE.txt","Rakefile","ToDo","ext/numru/fftw3/extconf.rb","ext/numru/fftw3/na_fftw3.c","lib/numru/fftw3.rb","lib/numru/fftw3/version.rb","ruby-fftw3.gemspec","test/complexFFT.rb","test/r2rFFT.rb"]
    spec.test_files       = spec.files.grep(%r{^test/})
    spec.require_paths = ["ext","lib"]
  
diff --git a/debian/patches/series b/debian/patches/series
index 6c4fc47..50d481f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,2 @@
-0001-RefactTestCases.patch
 0002-Drop-RubyGems-Depends.patch
 0003-Add-patch-replace-git-execution-from-gemspec.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fftw3.git



More information about the Pkg-ruby-extras-commits mailing list