--- gemanx-gtk2-0.1.0.3.orig/debian/watch
+++ gemanx-gtk2-0.1.0.3/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://code.google.com/p/gemanx/downloads/list \
+http://gemanx.googlecode.com/files/gemanx-gtk2-([\d.]+)\.tar\.gz
--- gemanx-gtk2-0.1.0.3.orig/debian/copyright
+++ gemanx-gtk2-0.1.0.3/debian/copyright
@@ -0,0 +1,50 @@
+This package was debianized by:
+
+    LI Daobing <lidaobing@debian.org> on Sun, 01 Nov 2009 19:14:42 +0800
+
+It was downloaded from:
+
+    http://code.google.com/p/gemanx
+
+Upstream Authors:
+
+	Ruizhe Li <liruizhe@gmail.com>
+	Henry Hu <henry.hu.sh@gmail.com>
+
+Copyright:
+
+	Copyright (c) 1999 Elliot Lee <sopwith@redhat.com>, Red Hat, Inc.
+	Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
+	Copyright (C) 2003-2004 Gary Kramlich
+	Copyright (C) 2004-2005 PCMan <pcman.tw@gmail.com>
+	Copyright (C) 2005 Chia I Wu
+	Copyright (C) 2005 Kanru Chen <koster@debian.org.tw>
+	Copyright (C) 2005 Youchen Lee ( utcr.org )
+	Copyright (C) 2005 Jim Huang <jserv@kaffe.org>
+	Copyright (C) 2007-2008 Jason Xia <jasonxh@gmail.com>
+	Copyright (C) 2007 yllan.org
+
+License:
+
+    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 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+On Debian systems, the complete text of the GNU General
+Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 LI Daobing <lidaobing@debian.org>
+
+and is licensed under the GPL version 2, see above.
--- gemanx-gtk2-0.1.0.3.orig/debian/clean
+++ gemanx-gtk2-0.1.0.3/debian/clean
@@ -0,0 +1,2 @@
+config.guess
+config.sub
--- gemanx-gtk2-0.1.0.3.orig/debian/rules
+++ gemanx-gtk2-0.1.0.3/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	ln -s /usr/share/misc/config.sub .
+	ln -s /usr/share/misc/config.guess .
+	dh_auto_configure
--- gemanx-gtk2-0.1.0.3.orig/debian/compat
+++ gemanx-gtk2-0.1.0.3/debian/compat
@@ -0,0 +1 @@
+7
--- gemanx-gtk2-0.1.0.3.orig/debian/docs
+++ gemanx-gtk2-0.1.0.3/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
--- gemanx-gtk2-0.1.0.3.orig/debian/README.source
+++ gemanx-gtk2-0.1.0.3/debian/README.source
@@ -0,0 +1,16 @@
+license problem of src/core/encoding.*
+======================================
+
+src/core/encoding.h and src/core/encoding.cpp is derived from the source
+files[1] of nally project, which is also licensed under GPL2. for more
+information, check [2]
+
+[1] 
+http://code.google.com/p/nally/source/browse/trunk/encoding.h
+http://code.google.com/p/nally/source/browse/trunk/encoding.c
+
+[2]
+http://code.google.com/p/gemanx/issues/detail?id=6
+
+
+
--- gemanx-gtk2-0.1.0.3.orig/debian/changelog
+++ gemanx-gtk2-0.1.0.3/debian/changelog
@@ -0,0 +1,12 @@
+gemanx-gtk2 (0.1.0.3-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/rules: enable test. 
+
+ -- LI Daobing <lidaobing@debian.org>  Sat, 26 Dec 2009 21:58:39 +0800
+
+gemanx-gtk2 (0.1.0.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #553597)
+
+ -- LI Daobing <lidaobing@debian.org>  Mon, 07 Dec 2009 13:50:15 +0800
--- gemanx-gtk2-0.1.0.3.orig/debian/control
+++ gemanx-gtk2-0.1.0.3/debian/control
@@ -0,0 +1,39 @@
+Source: gemanx-gtk2
+Section: net
+Priority: optional
+Maintainer: LI Daobing <lidaobing@debian.org>
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, libgtk2.0-dev, intltool
+Standards-Version: 3.8.3
+Homepage: http://code.google.com/p/gemanx
+Vcs-Browser: https://code.launchpad.net/~lidaobing/gemanx/debian-gemanx-gtk2
+Vcs-Bzr: lp:~lidaobing/gemanx/debian-gemanx-gtk2
+
+Package: gemanx-gtk2
+Architecture: any
+Depends: libgemanx-core0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Description: Term BBS Client beyond PCMan X
+ PCMan X is a newly developed GPL'd version of PCMan, a full-featured
+ famous BBS client. It aimed to be an easy-to-use yet full-featured telnet
+ client facilitating BBS browsing with the ability to process double-byte
+ characters. Some handy functions like tabbed-browsing, auto-login and
+ a built-in ANSI editor enabling colored text editing are also provided.
+ .
+ gemanx-gtk2 is a fork of PCMan X, including many patches to make it works
+ better with BBS in mainland China.
+
+Package: libgemanx-core0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: core library of gemanx
+ PCMan X is a newly developed GPL'd version of PCMan, a full-featured
+ famous BBS client. It aimed to be an easy-to-use yet full-featured telnet
+ client facilitating BBS browsing with the ability to process double-byte
+ characters. Some handy functions like tabbed-browsing, auto-login and
+ a built-in ANSI editor enabling colored text editing are also provided.
+ .
+ gemanx-gtk2 is a fork of PCMan X, including many patches to make it works
+ better with BBS in mainland China.
+ .
+ This package contains the core function of gemanx in dynamic linked library
+ format.
--- gemanx-gtk2-0.1.0.3.orig/debian/gemanx.1
+++ gemanx-gtk2-0.1.0.3/debian/gemanx.1
@@ -0,0 +1,21 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH GEMANX "1" "December 2009" "gemanx 0.1.0.2" "User Commands"
+.SH NAME
+gemanx \- Term BBS Client beyond PCMan X
+.SH "SYNOPSIS"
+.B gemanx
+.SH DESCRIPTION
+.SS "Help Options:"
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Show help options
+.SS "Application Options:"
+.TP
+\fB\-m\fR, \fB\-\-multiple\-instance\fR=\fIN\fR
+Allow multiple instances
+.SH "SEE ALSO"
+.BR qterm (1),
+.BR pcmanx (1),
+.BR fqterm (1),
+.BR telnet (1),
+.BR ssh (1)
--- gemanx-gtk2-0.1.0.3.orig/debian/libgemanx-core0.install
+++ gemanx-gtk2-0.1.0.3/debian/libgemanx-core0.install
@@ -0,0 +1 @@
+usr/lib/libgemanx_core.so.0*
--- gemanx-gtk2-0.1.0.3.orig/debian/gemanx-gtk2.install
+++ gemanx-gtk2-0.1.0.3/debian/gemanx-gtk2.install
@@ -0,0 +1,2 @@
+usr/bin/*
+usr/share/*
--- gemanx-gtk2-0.1.0.3.orig/debian/dirs
+++ gemanx-gtk2-0.1.0.3/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- gemanx-gtk2-0.1.0.3.orig/debian/manpages
+++ gemanx-gtk2-0.1.0.3/debian/manpages
@@ -0,0 +1 @@
+debian/gemanx.1
