--- libmocha-ruby-0.9.8.orig/debian/rules
+++ libmocha-ruby-0.9.8/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+  
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+
+install/libmocha-ruby::
+	#dh_rdoc -p $(cdbs_curpkg)
+	rdoc --all --inline-source --fileboxes --line-numbers --fmt=html -o debian/libmocha-ruby/usr/share/doc/libmocha-ruby/rdoc README lib
--- libmocha-ruby-0.9.8.orig/debian/libmocha-ruby.docs
+++ libmocha-ruby-0.9.8/debian/libmocha-ruby.docs
@@ -0,0 +1,2 @@
+README
+debian/README.Debian-sources
--- libmocha-ruby-0.9.8.orig/debian/test.rb
+++ libmocha-ruby-0.9.8/debian/test.rb
@@ -0,0 +1,18 @@
+require 'test/unit'
+require 'mocha'
+
+class MochaDebianTest < Test::Unit::TestCase
+
+  def test_should_create_mock_objects
+    obj = mock
+    obj.expects(:something).returns("something")
+    assert_equal "something", obj.something
+  end
+
+  def test_should_mock_real_objects
+    obj = Object.new
+    obj.expects(:data).returns(:x => 7, :y => 9)
+    assert_equal({ :x => 7, :y => 9}, obj.data)
+  end
+
+end
--- libmocha-ruby-0.9.8.orig/debian/copyright
+++ libmocha-ruby-0.9.8/debian/copyright
@@ -0,0 +1,14 @@
+This package was debianized by Antonio Terceiro <terceiro@softwarelivre.org> on
+Tue, 24 Jul 2007 15:27:45 -0300.
+
+It was downloaded from http://mocha.rubyforge.org/
+
+Upstream Author: James Mead <jamesmead@reevoo.com> and others.
+
+Copyright © 2006 Revieworld Ltd.
+
+You may use, copy and redistribute this library under the same terms as Ruby
+itself or under the MIT license.
+
+The Debian packaging is © 2007-2009, Antonio Terceiro <terceiro@softwarelivre.org>
+and is licensed under the same terms as the original package.
--- libmocha-ruby-0.9.8.orig/debian/README.Debian-sources
+++ libmocha-ruby-0.9.8/debian/README.Debian-sources
@@ -0,0 +1,18 @@
+mocha for Debian
+----------------
+
+The mocha tarballs, for some reason, make tar exit with a non-zero status
+code giving "trailing garbage ignored" error message.  I could not verify
+this behaviour by generating the tarball myself using 'rake package' in a
+mocha directory obtained from a pristine upstream tarball.
+
+That said, versions uploaded to Debian will be recompressed to remove this
+error (at least while I can't solve this with upstream, which I am trying to
+do).
+
+More specifically, this problema is caused by two extra bytes at the end of the
+tarball, namely 0d0a in hexadecimal, the popular newline sequence "\n\r". Just
+removing the last two bytes of the tarball with and hex editor (":h
+hex-editing" in vim) is enough to make the tarball uncompress cleanly.
+
+ -- Antonio Terceiro <terceiro@softwarelivre.org>  Tue, 24 Jul 2007 15:27:45 -0300
--- libmocha-ruby-0.9.8.orig/debian/compat
+++ libmocha-ruby-0.9.8/debian/compat
@@ -0,0 +1 @@
+5
--- libmocha-ruby-0.9.8.orig/debian/changelog
+++ libmocha-ruby-0.9.8/debian/changelog
@@ -0,0 +1,64 @@
+libmocha-ruby (0.9.8-1) unstable; urgency=low
+
+  [ Gunnar Wolf ]
+  * Changed section to Ruby as per ftp-masters' request
+
+  [ Antonio Terceiro ]
+  * New upstream release.
+  * debian/copyright:
+    + Updating licensing information according to upstream README file.
+    + Relicensing the Debian packaging under the same terms as the original
+      package.
+  * debian/control: updated Standards version to 3.8.3. No changes needed.
+
+ -- Antonio Terceiro <terceiro@softwarelivre.org>  Fri, 20 Nov 2009 20:06:38 -0300
+
+libmocha-ruby (0.9.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/rules:
+    - clarified version of GPL
+    - added proper copyrigh signs (©)
+  * debian/control:
+    - Added ${misc:Depends} to libmocha-ruby
+
+ -- Antonio Terceiro <terceiro@softwarelivre.org>  Sun, 15 Feb 2009 21:06:03 -0300
+
+libmocha-ruby (0.9.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control: bumped standards to 3.8.0; no changes needed.
+  * debian/rules: calling rdoc by hand without --diagram option. For some
+    reason rdoc generates several identical PNG files when generating
+    diagrams, and dh_rdoc always use --diagram.
+
+ -- Antonio Terceiro <terceiro@softwarelivre.org>  Sun, 29 Jun 2008 18:26:29 -0300
+
+libmocha-ruby (0.5.6-1) unstable; urgency=low
+
+  [ Antonio Terceiro ]
+  * New upstream release.
+  * Generating rdoc HTML and installing to -ruby package.
+  * Bumped standards to 3.7.3; no changes needed.
+  * Removed setup.rb from .diff.gz, now requiring ruby-pkg-tools >= 0.13 to
+    build.
+  * Adding Dm-Upload-Allowed field to debian/control.
+
+  [ Lucas Nussbaum ]
+  * Use new Homepage dpkg header.
+
+  [ Paul van Tilburg ]
+  * Updated debian/control:
+    - added myself to the Uploaders field. 
+    - added Vcs-* fields.
+    - build-depend on ruby1.8 should be on libruby1.8 (only stdlib is used).
+    - changed section from interpreters to libs!
+
+ -- Paul van Tilburg <paulvt@debian.org>  Fri, 04 Apr 2008 21:48:41 +0200
+
+libmocha-ruby (0.5.3-1) unstable; urgency=low
+
+  * Initial Debian release (Closes: #434555).
+
+ -- Antonio Terceiro <terceiro@softwarelivre.org>  Wed,  1 Aug 2007 19:06:38 -0300
+
--- libmocha-ruby-0.9.8.orig/debian/libmocha-ruby.examples
+++ libmocha-ruby-0.9.8/debian/libmocha-ruby.examples
@@ -0,0 +1 @@
+examples/*
--- libmocha-ruby-0.9.8.orig/debian/control
+++ libmocha-ruby-0.9.8/debian/control
@@ -0,0 +1,30 @@
+Source: libmocha-ruby
+Section: ruby
+Priority: optional
+Maintainer: Antonio Terceiro <terceiro@softwarelivre.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>, Paul van Tilburg <paulvt@debian.org>
+Build-Depends: cdbs, debhelper (>= 5), ruby-pkg-tools (>= 0.13)
+Standards-Version: 3.8.3
+Dm-Upload-Allowed: yes
+Homepage: http://mocha.rubyforge.org/
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-ruby-extras/trunk/libmocha-ruby/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-ruby-extras/trunk/libmocha-ruby/
+
+Package: libmocha-ruby
+Architecture: all
+Depends: libmocha-ruby1.8, ${misc:Depends}
+Description: Mocking and stubbing library for Ruby
+ Mocking and stubbing library with JMock/SchMock syntax, which allows mocking
+ and stubbing of methods on real (non-mock) classes. Mocking and stubbing are
+ techiniques used to improve unit testing.
+ .
+ This is a dummy package depending on the library for the current default
+ version of Ruby.
+
+Package: libmocha-ruby1.8
+Architecture: all
+Depends: libruby1.8, ${misc:Depends}
+Description: Mocking and stubbing library for Ruby 1.8
+ Mocking and stubbing library with JMock/SchMock syntax, which allows mocking
+ and stubbing of methods on real (non-mock) classes. Mocking and stubbing are
+ techiniques used to improve unit testing.
--- libmocha-ruby-0.9.8.orig/debian/watch
+++ libmocha-ruby-0.9.8/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=1917 .*mocha-(.*)\.tgz
