--- yapra-0.1.2.orig/debian/compat
+++ yapra-0.1.2/debian/compat
@@ -0,0 +1 @@
+5
--- yapra-0.1.2.orig/debian/docs
+++ yapra-0.1.2/debian/docs
@@ -0,0 +1,2 @@
+History.txt
+README.txt
--- yapra-0.1.2.orig/debian/rules
+++ yapra-0.1.2/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+
+RUBYLIBDIR = $(shell ruby -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
+
+install/yapra::
+	install -m 755 bin/yapra $(DEB_DESTDIR)/usr/bin/yapra
+	find plugins -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/usr/share/yapra/{}
+	find legacy_plugins -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/usr/share/yapra/{}
+	find lib-plugins -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/usr/share/yapra/{}
+	cd lib && find . -name '*.rb' -print0 | xargs -0ri install -D -m 644 {} $(DEB_DESTDIR)/$(RUBYLIBDIR)/{}
+	perl -i -npe '$$.==1 and m|#!(.*?)?ruby( .*)?$$| and $$_="#!/usr/bin/ruby1.8 -KU\n"' $(DEB_DESTDIR)/usr/bin/yapra
--- yapra-0.1.2.orig/debian/changelog
+++ yapra-0.1.2/debian/changelog
@@ -0,0 +1,22 @@
+yapra (0.1.2-3) unstable; urgency=low
+
+  * Suppress warnings
+
+ -- Taku YASUI <tach@debian.org>  Mon, 11 Oct 2010 15:21:15 +0900
+
+yapra (0.1.2-2) unstable; urgency=low
+
+  * Initial official release (closes: #544306)
+  * Fix debian/copyright
+    - Write correct copyright/license information
+    - Write disclaimer about difference of copyright holder name
+
+ -- Taku YASUI <tach@debian.org>  Thu, 10 Sep 2009 21:58:04 +0900
+
+yapra (0.1.2-1) unstable; urgency=low
+
+  * Initial release
+  * Fix filter/deduped plugin
+    - Use twice directory hashing instead of flat directory
+
+ -- Taku YASUI <tach@debian.org>  Fri, 04 Sep 2009 21:37:51 +0900
--- yapra-0.1.2.orig/debian/dirs
+++ yapra-0.1.2/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/yapra
--- yapra-0.1.2.orig/debian/manpages
+++ yapra-0.1.2/debian/manpages
@@ -0,0 +1 @@
+debian/yapra.1
--- yapra-0.1.2.orig/debian/control
+++ yapra-0.1.2/debian/control
@@ -0,0 +1,23 @@
+Source: yapra
+Section: net
+Priority: extra
+Maintainer: Taku YASUI <tach@debian.org>
+Build-Depends: cdbs, dpatch, debhelper (>= 5)
+Standards-Version: 3.8.3
+Homepage: http://yapra.rubyforge.org/
+
+Package: yapra
+Architecture: all
+Depends: ruby1.8, ${misc:Depends}
+Recommends: libwww-mechanize-ruby1.8, libopenssl-ruby1.8, libhpricot-ruby1.8, libtwitter-ruby1.8
+Suggests: rubygems1.8
+Description: Yet Another Pragger implementation
+ Yapra is yet another Pragger implementation.  Pragger is a pluggable RSS/Atom
+ feed aggregator written in Ruby. It has following advantages
+ against Pragger.
+ .
+  * Class-based plugin mechanism
+  * Loadpath-based plugin searching/reading
+  * Import logger into system core
+  * Use "Yapra" namespace for Plugin class
+  * Support config file like Python habu
--- yapra-0.1.2.orig/debian/README.source
+++ yapra-0.1.2/debian/README.source
@@ -0,0 +1,38 @@
+This package uses dpatch to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To get the fully patched source after unpacking the source package, cd
+to the root level of the source package and run:
+
+    debian/rules patch
+
+Removing a patch is as simple as removing its entry from the
+debian/patches/00list file, and please also remove the patch file
+itself.
+
+Creating a new patch is done with "dpatch-edit-patch patch XX_patchname"
+where you should replace XX with a new number and patchname with a
+descriptive shortname of the patch. You can then simply edit all the
+files your patch wants to edit, and then simply "exit 0" from the shell
+to actually create the patch file.
+
+To tweak an already existing patch, call "dpatch-edit-patch XX_patchname"
+and replace XX_patchname with the actual filename from debian/patches
+you want to use.
+
+To clean up afterwards again, "debian/rules unpatch" will do the
+work for you - or you can of course choose to call
+"fakeroot debian/rules clean" all together.
+
+
+--- 
+
+this documentation is part of dpatch package, and may be used by
+packages using dpatch to comply with policy on README.source. This
+documentation is meant to be useful to users who are not proficient in
+dpatch in doing work with dpatch-based packages. Please send any
+improvements to the BTS of dpatch package.
+
+original text by Gerfried Fuchs, edited by Junichi Uekawa <dancer@debian.org>
+10 Aug 2008.
--- yapra-0.1.2.orig/debian/copyright
+++ yapra-0.1.2/debian/copyright
@@ -0,0 +1,69 @@
+Format-Specification:
+    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=455
+Upstream-Maintainer: Yuanying Ohtsuka
+Upstream-Source: http://yapra.rubyforge.org/
+Upstream-Name: Yapra
+Disclaimer:
+    Copyright holder name is different from each file.  I heard it is
+    upstream author mistake and fixed it at original source in github.com:
+    http://github.com/yuanying/yapra/commit/1cb827fb1c2702c4f9732da083735112dea572e4
+    http://github.com/yuanying/yapra/commit/05b21dca0aca67e58556ef2eb92906ba3ddb786a
+    The name will be fixed at next upstream release.
+
+Files: *
+Copyright: 2008, Yuanying Ohtsuka
+License: MIT
+
+Files: setup.rb
+Copyright: 2000-2005 Minero Aoki
+License: LGPL-2.1
+
+Files: website/javascripts/rounded_corners_lite.inc.js
+Copyright: 2006 Cameron Cooke
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2009, Taku YASUI <tach@debian.org>
+License: GPL-2+
+
+License: MIT
+    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: LGPL-2.1
+    This library is free software; you can redistribute it and/or modify
+    it under the terms of the GNU Lesser General Public License as
+    published by the Free Software Foundation; either version 2.1 of the
+    License.
+    On Debian GNU/Linux systems, the complete text of the GNU General
+    Public License can be found in `/usr/share/common-licenses/LGPL-2.1'
+
+License: LGPL-2.1+
+    This library is free software; you can redistribute it and/or modify
+    it under the terms of the GNU Lesser General Public License as
+    published by the Free Software Foundation; either version 2.1 of the
+    License, or (at your option) any later version.
+    On Debian GNU/Linux systems, the complete text of the GNU General
+    Public License can be found in `/usr/share/common-licenses/LGPL-2.1'
+
+License: GPL-2+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2, or (at your option)
+    any later version.
+    On Debian GNU/Linux systems, the complete text of the GNU General
+    Public License can be found in `/usr/share/common-licenses/GPL-2'
--- yapra-0.1.2.orig/debian/yapra.1
+++ yapra-0.1.2/debian/yapra.1
@@ -0,0 +1,62 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH YAPRA 1 "2009-09-08" "Man Page" "pluggable RSS/Atom feed aggregator"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+yapra \- pluggable RSS/Atom feed aggregator
+.SH SYNOPSIS
+.B yapra
+.RI [ options ]
+.SH DESCRIPTION
+Aggregate RSS/Atom feed or any other data and filter/publish them.
+You write configuration file (default: config.yaml) as YAML
+format and run 
+.B yapra
+command.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+.TP
+.B \-c \fR\fICONFIGFILE\fB, \-\-configfile \fR\fICONFIGFILE
+Specify configuration file (default: config.yaml)
+.TP
+.B \-d \fR\fICONFIGDIR\fB, \-\-configfile-directory \fR\fICONFIGDIR
+Specify configuration directory. yapra read all '.yaml' files in this
+directory.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-\-log-level \fR\fILEVEL
+Specify log level. Possible \fILEVEL\fP is "fatal", "error", "warn", "info"
+and "debug" (default: warn).
+.TP
+.B \-p \fR\fIPLUGINDIR\fB, \-\-plugindir \fR\fIPLUGINDIR
+Append \fIPLUGINDIR\fP to legacy plugin directories.
+.TP
+.B \-m \fR\fIMODE\fB, \-\-mode \fR\fIMODE
+Specify run mode. Possible \fIMODE\fP is "compatible" and "advance".
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+Yapra homepage: \fB\fIhttp://yapra.rubyforge.org/
+.SH AUTHOR
+yapra was written by Yuanying Ohtsuka.
+.PP
+This manual page was written by Taku YASUI <tach@debian.org>,
+for the Debian project (and may be used by others).
--- yapra-0.1.2.orig/debian/watch
+++ yapra-0.1.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=6487 .*/yapra-v?(\d[\d_.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$
--- yapra-0.1.2.orig/debian/patches/10_debianize_directory.dpatch
+++ yapra-0.1.2/debian/patches/10_debianize_directory.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 10_debianize_directory.dpatch by Taku YASUI <tach@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/bin/yapra trunk/bin/yapra
+--- trunk~/bin/yapra	2009-06-23 21:39:50.000000000 +0900
++++ trunk/bin/yapra	2009-06-24 02:00:33.906645055 +0900
+@@ -6,7 +6,7 @@
+ require 'pathname'
+ require 'base64'
+ 
+-YAPRA_ROOT = File.join(File.dirname(__FILE__), '..')
++YAPRA_ROOT = File.join('/usr/share/yapra')
+ 
+ $:.insert(0, *[
+   File.join(YAPRA_ROOT, 'lib-plugins'),
--- yapra-0.1.2.orig/debian/patches/00list
+++ yapra-0.1.2/debian/patches/00list
@@ -0,0 +1,3 @@
+10_debianize_directory
+20_deduped_directory_hashing
+90_independent_of_rubygems
--- yapra-0.1.2.orig/debian/patches/90_independent_of_rubygems.dpatch
+++ yapra-0.1.2/debian/patches/90_independent_of_rubygems.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 90_independent_of_rubygems.dpatch by Taku YASUI <tach@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/lib/yapra.rb trunk/lib/yapra.rb
+--- trunk~/lib/yapra.rb	2009-06-23 21:39:50.000000000 +0900
++++ trunk/lib/yapra.rb	2009-09-08 01:42:02.914339024 +0900
+@@ -37,6 +37,6 @@
+ require 'rss/2.0'
+ require 'rss/dublincore'
+ require 'rss/maker'
+-require 'rubygems'
++#require 'rubygems'
+ 
+ require 'yapra/inflector'
--- yapra-0.1.2.orig/debian/patches/20_deduped_directory_hashing.dpatch
+++ yapra-0.1.2/debian/patches/20_deduped_directory_hashing.dpatch
@@ -0,0 +1,37 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 20_deduped_directory_hashing.dpatch by Taku YASUI <tach@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad trunk~/lib-plugins/yapra/plugin/filter/deduped.rb trunk/lib-plugins/yapra/plugin/filter/deduped.rb
+--- trunk~/lib-plugins/yapra/plugin/filter/deduped.rb	2009-06-23 21:39:50.000000000 +0900
++++ trunk/lib-plugins/yapra/plugin/filter/deduped.rb	2009-09-04 21:37:37.719146332 +0900
+@@ -33,7 +33,8 @@
+         if attribute && d.respond_to?(attribute)
+           v = d.__send__(attribute).to_s
+         end
+-        hashpath = File.join(cachepath.to_s, Digest::MD5.hexdigest(v))
++        digest = Digest::MD5.hexdigest(v)
++        hashpath = File.join(cachepath.to_s, digest[0,2], digest[2,2], digest)
+         if File.exists?(hashpath)
+           false
+         else
+@@ -41,6 +42,9 @@
+             File.open(hashpath, "wb").write(v)
+             @cache_paths << hashpath
+             true
++          rescue Errno::ENOENT
++            FileUtils.mkdir_p(File.dirname(hashpath))
++            retry
+           rescue 
+             false
+           end
+@@ -54,4 +58,4 @@
+       FileUtils.rm(@cache_paths, {:force => true})
+     end
+   end
+-end
+\ No newline at end of file
++end
