From 0bcab1ee4ef96f28e7802877912651366a8dc40f Mon Sep 17 00:00:00 2001 From: Osamu Aoki Date: Sat, 2 Nov 2013 03:17:51 +0000 Subject: [PATCH 1/1] Import opencc_0.4.3-2.debian.tar.gz [dgit import tarball opencc 0.4.3-2 opencc_0.4.3-2.debian.tar.gz] --- changelog | 152 ++++++++++++++++++ clean | 17 ++ compat | 1 + control | 70 ++++++++ copyright | 36 +++++ docs | 3 + libopencc-dev.install | 4 + libopencc1.install | 3 + libopencc1.symbols | 10 ++ opencc.install | 2 + ...stall-data-file-to-meet-need-of-multi-arch | 15 ++ patches/series | 1 + python-opencc.install | 1 + rules | 23 +++ source/format | 1 + watch | 4 + 16 files changed, 343 insertions(+) create mode 100644 changelog create mode 100644 clean create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 docs create mode 100644 libopencc-dev.install create mode 100644 libopencc1.install create mode 100644 libopencc1.symbols create mode 100644 opencc.install create mode 100644 patches/install-data-file-to-meet-need-of-multi-arch create mode 100644 patches/series create mode 100644 python-opencc.install create mode 100755 rules create mode 100644 source/format create mode 100644 watch diff --git a/changelog b/changelog new file mode 100644 index 0000000..f6b8eb1 --- /dev/null +++ b/changelog @@ -0,0 +1,152 @@ +opencc (0.4.3-2) unstable; urgency=low + + * Add the python-opencc package to support the Python binding. + Closes: #694993 + * Bump standard version to 3.9.5. + + -- Osamu Aoki Sat, 02 Nov 2013 12:17:51 +0900 + +opencc (0.4.3-1) experimental; urgency=low + + * New upstream release. + * Update watch file. + * Clean up debian/control and wrap-and-sort. + * Update symbols file. + + -- Osamu Aoki Sun, 15 Sep 2013 00:13:31 +0900 + +opencc (0.4.0-1) experimental; urgency=low + + * New upstream release + * fix-new-test-cases.patch in upstream + * part of more_clear_man_c_option.patch is in upstream + the rest is in install-data-file-to-meet-need-of-multi-arch.path + + -- Asias He Fri, 05 Apr 2013 10:52:29 +0800 + +opencc (0.3.0-3) unstable; urgency=low + + * Rebuild to + generate little endian mo file on any arch (Closes: #670016). + * add an - before include buildflags.mk + + -- YunQiang Su Sun, 10 Jun 2012 19:35:51 +0800 + +opencc (0.3.0-2) unstable; urgency=low + + * Multi-arch it. + * Add libopencc-dbg package. + * Bump standard version to 3.9.3. + * Add YunQiang Su to Uploaders. + * Enable CPPFLAGS hardening flags (Closes: #665322). + * Better explanation for the -c option arguments of opencc, + give the path of these files out. (Closes: #656201). + + -- YunQiang Su Thu, 29 Mar 2012 03:22:51 +0800 + +opencc (0.3.0-1) unstable; urgency=low + + * Team upload. + + [ Kan-Ru Chen ] + * New upstream release + * debian/control: + - Remove autotools-dev and quilt from Build-Depends + * debian/rules: + - Support `nostrip' DEB_BUILD_OPTIONS + - Enable hardening flags. + * debian/docs: Install NEWS + * debian/copyright: Update update url + * debian/watch: Update upstream url + * debian/patches/fix-big-endian-build.diff: merged upstream + * debian/patches/fix-new-test-cases.patch: New patch. + + -- Kan-Ru Chen Sat, 17 Dec 2011 16:41:49 +0800 + +opencc (0.2.0-2) unstable; urgency=low + + * Fix "Please fix FTBFS on mips, ppc, s390 and sparc" (Closes: #624562) + * debian/control: bump standards version to 3.9.2. + * Set DM-Upload-Allowed to yes + + -- Asias He Mon, 16 May 2011 20:46:03 +0800 + +opencc (0.2.0-1) unstable; urgency=low + + * New upstream release + * Move usr/share/locale to package opencc + * Add cmake to Build-Depends + * Change Homepage to http://code.google.com/p/opencc + * Set Vcs to git.debian.org + + -- Asias He Thu, 17 Mar 2011 21:36:41 +0800 + +opencc (0.1.2-1) unstable; urgency=low + + * New upstream release. + * debian/libopencc1.symbols: updated. + + -- LI Daobing Wed, 22 Sep 2010 20:40:54 +0800 + +opencc (0.1.1-2) unstable; urgency=low + + *debian/control: add Conflicts to libopencc0 (Closes: #596434) + + -- Asias He Sun, 12 Sep 2010 14:58:18 +0800 + +opencc (0.1.1-1) unstable; urgency=low + + [ Asias He ] + * New upstream release (closes: #591076). + * debian/control: bump standards version to 3.9.1. + * debian/watch: use googlecode.debian.net. + + [ LI Daobing ] + * debian/clean: added. + + -- LI Daobing Wed, 11 Aug 2010 22:04:12 +0800 + +opencc (0.1.0-1) unstable; urgency=low + + * New upstream release. + * debian/control: + - bump standards version to 3.9.1. + - libopencc0 -> libopecc1 (closes: #590473). + - libopencc1 replaces libopencc0. + * libopencc0 -> libopencc1: + - debian/libopencc0.install => debian/libopencc1.install + - debian/libopencc0.symbols => debian/libopencc1.symbols + + -- LI Daobing Thu, 29 Jul 2010 23:05:17 +0800 + +opencc (0.0.5-1) unstable; urgency=low + + * New upstream release. + * debain/control: no longer build depends on python. + * debian/opencc.install: move .mo files to libopencc0. + * debian/libopencc0.install: install .mo files. + * debian/opencc_dict.1: deleted. + * debian/opencc.manpages: deleted. + + -- LI Daobing Wed, 21 Jul 2010 22:42:32 +0800 + +opencc (0.0.4-1) unstable; urgency=low + + * New upstream release. + * debian/control: bump standards version to 3.9.0. + + -- LI Daobing Fri, 16 Jul 2010 23:52:08 +0800 + +opencc (0.0.3-1) unstable; urgency=low + + * New upstream release. + * debian/opencc.install: updated. + * debian/control: opencc depends on libopencc0 at the same version. + + -- LI Daobing Tue, 22 Jun 2010 19:08:33 +0800 + +opencc (0.0.2-1) unstable; urgency=low + + * Initial release (Closes: #585621) + + -- LI Daobing Sat, 19 Jun 2010 18:27:20 +0800 diff --git a/clean b/clean new file mode 100644 index 0000000..0777230 --- /dev/null +++ b/clean @@ -0,0 +1,17 @@ +test/mix2zhs.ans +test/mix2zhs.in +test/mix2zhs.ini +test/mix2zht.ans +test/mix2zht.in +test/mix2zht.ini +test/opencc +test/simp_to_trad_characters.ocd +test/simp_to_trad_phrases.ocd +test/trad_to_simp_characters.ocd +test/trad_to_simp_phrases.ocd +test/zhs2zht.ans +test/zhs2zht.in +test/zhs2zht.ini +test/zht2zhs.ans +test/zht2zhs.in +test/zht2zhs.ini diff --git a/compat b/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +9 diff --git a/control b/control new file mode 100644 index 0000000..113dd89 --- /dev/null +++ b/control @@ -0,0 +1,70 @@ +Source: opencc +Priority: optional +Maintainer: IME Packaging Team +Uploaders: LI Daobing , + Asias He , + YunQiang Su , + Osamu Aoki +Build-Depends: cmake, debhelper (>= 9), python-all +Standards-Version: 3.9.5 +Section: libs +Homepage: http://code.google.com/p/opencc +Vcs-Git: git://anonscm.debian.org/pkg-ime/opencc.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ime/opencc.git + +Package: opencc +Section: utils +Architecture: any +Multi-Arch: foreign +Depends: libopencc1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: simplified-traditional chinese conversion tool + opencc is a library for converting character between traditional chinese and + simplified chinese. + . + This package includes the conversion tool. + +Package: libopencc1 +Architecture: any +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${shlibs:Depends} +Replaces: libopencc0 +Conflicts: libopencc0 +Description: simplified-traditional chinese conversion library - runtime + opencc is a library for converting character between traditional chinese and + simplified chinese. + . + This package includes the shared library. + +Package: libopencc-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libopencc1 (= ${binary:Version}), ${misc:Depends} +Description: simplified-traditional chinese conversion library - development + opencc is a library for converting character between traditional chinese and + simplified chinese. + . + This package includes the development support files. + +Package: python-opencc +Section: python +Architecture: all +Depends: libopencc1, ${misc:Depends}, ${python:Depends} +Description: simplified-traditional chinese conversion library - Python support + opencc is a library for converting character between traditional chinese and + simplified chinese. + . + This package includes the Python binding. + +Package: libopencc-dbg +Section: debug +Priority: extra +Architecture: any +Multi-Arch: same +Depends: libopencc1 (= ${binary:Version}), ${misc:Depends} +Description: simplified-traditional chinese conversion library - debug + opencc is a library for converting character between traditional chinese and + simplified chinese. + . + This package includes the debug symbols which is useful when debug. diff --git a/copyright b/copyright new file mode 100644 index 0000000..839ea56 --- /dev/null +++ b/copyright @@ -0,0 +1,36 @@ +This work was packaged for Debian by: + + LI Daobing on Fri, 11 Jun 2010 19:54:13 +0800 + +It was downloaded from http://code.google.com/p/opencc + +Upstream Author: + + BYVoid + +Copyright: + + Copyright (C) 2010 BYVoid + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +On Debian systems, the complete text of the Apache version 2.0 license +can be found in `/usr/share/common-licenses/Apache-2.0'. + +The Debian packaging is: + + Copyright (C) 2010 LI Daobing + +and is licensed under Apache License, Version 2.0. diff --git a/docs b/docs new file mode 100644 index 0000000..0564498 --- /dev/null +++ b/docs @@ -0,0 +1,3 @@ +AUTHORS +README.md +NEWS.md diff --git a/libopencc-dev.install b/libopencc-dev.install new file mode 100644 index 0000000..76f28fa --- /dev/null +++ b/libopencc-dev.install @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so +usr/lib/*/pkgconfig/* diff --git a/libopencc1.install b/libopencc1.install new file mode 100644 index 0000000..f4191f2 --- /dev/null +++ b/libopencc1.install @@ -0,0 +1,3 @@ +usr/lib/*/lib*.so.* +usr/lib/*/opencc/* +usr/share/locale/* diff --git a/libopencc1.symbols b/libopencc1.symbols new file mode 100644 index 0000000..bf9cc26 --- /dev/null +++ b/libopencc1.symbols @@ -0,0 +1,10 @@ +libopencc.so.1 libopencc1 #MINVER# + opencc_close@Base 0.1.0 + opencc_convert@Base 0.1.0 + opencc_convert_utf8@Base 0.1.0 + opencc_convert_utf8_free@Base 0.4.3 + opencc_dict_load@Base 0.1.0 + opencc_errno@Base 0.1.0 + opencc_open@Base 0.1.0 + opencc_perror@Base 0.1.0 + opencc_set_conversion_mode@Base 0.1.2 diff --git a/opencc.install b/opencc.install new file mode 100644 index 0000000..68671de --- /dev/null +++ b/opencc.install @@ -0,0 +1,2 @@ +usr/bin/* +usr/share/man/man1/* diff --git a/patches/install-data-file-to-meet-need-of-multi-arch b/patches/install-data-file-to-meet-need-of-multi-arch new file mode 100644 index 0000000..c57c46d --- /dev/null +++ b/patches/install-data-file-to-meet-need-of-multi-arch @@ -0,0 +1,15 @@ +Description: install data file to meet the need of multi-arch + Install data files to ${DIR_LIBRARY} instead of ${DIR_SHARE} +Author: Asias He +--- +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -96,7 +96,7 @@ + set (DIR_ETC ${SYSCONF_INSTALL_DIR}) + endif (DEFINED SYSCONF_INSTALL_DIR) + +-set (DIR_SHARE_OPENCC ${DIR_SHARE}/opencc) ++set (DIR_SHARE_OPENCC ${DIR_LIBRARY}/opencc) + set (DIR_SHARE_LOCALE ${DIR_SHARE}/locale) + + ######## Configuration diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..c6810a5 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +install-data-file-to-meet-need-of-multi-arch diff --git a/python-opencc.install b/python-opencc.install new file mode 100644 index 0000000..8afd143 --- /dev/null +++ b/python-opencc.install @@ -0,0 +1 @@ +src/wrapper/python/opencc.py usr/share/pyshared diff --git a/rules b/rules new file mode 100755 index 0000000..36a5a8e --- /dev/null +++ b/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +-include /usr/share/dpkg/buildflags.mk +# CMake doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to enable the +# missing (hardening) flags. +CFLAGS += $(CPPFLAGS) + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +%: + dh $@ --with python2 + +override_dh_auto_configure: + dh_auto_configure -- \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/ \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_GETTEXT:BOOL=ON + +override_dh_strip: + dh_strip -plibopencc1 --dbg-package=libopencc-dbg + dh_strip diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/watch b/watch new file mode 100644 index 0000000..b51ea81 --- /dev/null +++ b/watch @@ -0,0 +1,4 @@ +version=3 +opts=downloadurlmangle=s%.*name=(.*?)&.*%https://opencc\.googlecode\.com/files/$1%,filenamemangle=s/.*name=(.*?)&.*/$1/ \ +http://code.google.com/p/opencc/downloads/list?can=1&q= \ +.*name=opencc(?:-|\.|_|_v|)(\d\S*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz)&\S* -- 2.30.2