--- pinyin-database-1.2.99.orig/debian/watch +++ pinyin-database-1.2.99/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://code.google.com/p/ibus/downloads/list?can=1&q=pinyin-database \ +http://ibus.googlecode.com/files/pinyin-database-([0-9].*)\.tar\.bz2 --- pinyin-database-1.2.99.orig/debian/copyright +++ pinyin-database-1.2.99/debian/copyright @@ -0,0 +1,41 @@ +This work was packaged for Debian by: + + LI Daobing on Tue, 29 Sep 2009 20:53:45 +0800 + +It was downloaded from: + + http://code.google.com/p/ibus/downloads/list?can=4&q=pinyin-database + +Upstream Author: + + Huang Peng + +Copyright: + + Copyright © 2007-2009 Huang Peng + +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 + +and is licensed under the GPL version 2, see above. + --- pinyin-database-1.2.99.orig/debian/rules +++ pinyin-database-1.2.99/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DIST=$(shell lsb_release -i -s) + +ifeq "$(DIST)" "Ubuntu" + DEB_DH_BUILDDEB_ARGS := -- -Zlzma +else + DEB_DH_BUILDDEB_ARGS := -- -Zbzip2 +endif + +%: + dh $@ + +build: + dh build --before auto_build + mkdir db; \ + cp create_index.sql main.db db; \ + cd db; \ + sqlite3 main.db ".read create_index.sql" + dh build --after auto_build + +binary: + dh $@ --before auto_install + mkdir -p $(CURDIR)/debian/pinyin-database/usr/share/pinyin-database; \ + cp db/main.db $(CURDIR)/debian/pinyin-database/usr/share/pinyin-database + dh $@ --before builddeb + dh_builddeb $(DEB_DH_BUILDDEB_ARGS) + dh $@ --after builddeb + +clean: + dh clean --before auto_clean + rm -rf db + dh clean --after auto_clean + + --- pinyin-database-1.2.99.orig/debian/compat +++ pinyin-database-1.2.99/debian/compat @@ -0,0 +1 @@ +7 --- pinyin-database-1.2.99.orig/debian/changelog +++ pinyin-database-1.2.99/debian/changelog @@ -0,0 +1,22 @@ +pinyin-database (1.2.99-3) unstable; urgency=low + + * provide main.db instead of a source tarball + - debian/control: build depends on sqlite3 + - debian/rules: updated. + * compress with bzip2 or lzma + - debian/control: build depends on lsb-release, pre-depends on dpkg + - debian/rules: updated. + + -- LI Daobing Thu, 08 Oct 2009 12:11:25 +0800 + +pinyin-database (1.2.99-2) unstable; urgency=low + + * debian/rules: fix typo in tar file name. + + -- LI Daobing Tue, 29 Sep 2009 22:03:54 +0800 + +pinyin-database (1.2.99-1) unstable; urgency=low + + * Initial release (Closes: #548895) + + -- LI Daobing Tue, 29 Sep 2009 21:44:29 +0800 --- pinyin-database-1.2.99.orig/debian/control +++ pinyin-database-1.2.99/debian/control @@ -0,0 +1,17 @@ +Source: pinyin-database +Section: utils +Priority: optional +Maintainer: LI Daobing +Build-Depends: debhelper (>= 7), sqlite3, lsb-release +Standards-Version: 3.8.3 +Homepage: http://code.google.com/p/ibus +Vcs-Bzr: lp:~lidaobing/ibus/pinyin-database +Vcs-Browser: https://code.launchpad.net/~lidaobing/ibus/pinyin-database + +Package: pinyin-database +Architecture: all +Pre-Depends: dpkg (>= 1.13.25) +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: PinYin database used by ibus-pinyin + This package provide pinyin-database-.tar.bz2 which is required when + compile ibus-pinyin.