--- /dev/null
--- /dev/null
++Package using libopencc should always require a tight versioned dependency to
++make sure it depends on the exact upstream minor version to avoid
++incomaptibility.
--- /dev/null
--- /dev/null
++opencc (1.0.4-5) unstable; urgency=medium
++
++ * Make ocd data files arch:any (Closes: #851733)
++
++ -- Aron Xu <aron@debian.org> Fri, 20 Jan 2017 15:15:35 +0800
++
++opencc (1.0.4-4) unstable; urgency=medium
++
++ * Tighter Breaks/Conflicts version (Closes: #847145)
++
++ -- Aron Xu <aron@debian.org> Mon, 19 Dec 2016 23:30:01 +0800
++
++opencc (1.0.4-3) unstable; urgency=medium
++
++ * Correct Breaks/Conflicts version (Closes: #846665)
++
++ -- Aron Xu <aron@debian.org> Sun, 04 Dec 2016 16:39:48 +0800
++
++opencc (1.0.4-2) unstable; urgency=medium
++
++ [ Aron Xu ]
++ * Install data files to libopencc2-data, drop -dbg package
++ (Closes: #836395)
++
++ [ Boyuan Yang ]
++ * Add BSD-3-clause license in d/copyright
++
++ -- Aron Xu <aron@debian.org> Sat, 03 Sep 2016 21:07:26 +0800
++
++opencc (1.0.4-1) unstable; urgency=medium
++
++ * Imported Upstream version 1.0.4
++ * Update d/watch to Github URL
++ * std-ver: 3.9.6 -> 3.9.8, no change
++ * Update VCS-Browser URL to use HTTPS
++
++ -- Aron Xu <aron@debian.org> Mon, 08 Aug 2016 14:43:15 +0800
++
++opencc (1.0.3-1) experimental; urgency=medium
++
++ * New upstream release
++ * Add myself to Uploaders
++ * Drop symbols file, see README.Debian
++
++ -- Aron Xu <aron@debian.org> Wed, 16 Dec 2015 00:34:21 +0800
++
++opencc (1.0.2-1) experimental; urgency=medium
++
++ * Team upload for new upstream release.
++ * SONAME transition: libopencc1 -> libopencc2
++ * Add libjs-jquery, libtclap-dev, darts, rapidjson-dev to B-D.
++ * Patches added/updated:
++ - lib-name-match-soversion.patch: rename library to match SONAME
++ - install-data-file-to-meet-need-of-multi-arch.patch: updated
++ - use-system-libraries.patch: do not use embeded libraries
++ * Use system version of jquery.js instead of embeded one.
++ * Removed python-opencc, upstream abandoned.
++ * Updated symbols file.
++ * Rewrite copyright file to machine-readable format.
++ * Allow parallel building.
++
++ -- Aron Xu <aron@debian.org> Thu, 20 Nov 2014 17:09:31 +0800
++
++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 <osamu@debian.org> 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 <osamu@debian.org> 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 <asias@debian.org> 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 <wzssyqa@gmail.com> 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 <wzssyqa@gmail.com> 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 <koster@debian.org> 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 <asias.hejun@gmail.com> 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 <asias.hejun@gmail.com> 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 <lidaobing@debian.org> 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 <asias.hejun@gmail.com> 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 <lidaobing@debian.org> 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 <lidaobing@debian.org> 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 <lidaobing@debian.org> 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 <lidaobing@debian.org> 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 <lidaobing@debian.org> Tue, 22 Jun 2010 19:08:33 +0800
++
++opencc (0.0.2-1) unstable; urgency=low
++
++ * Initial release (Closes: #585621)
++
++ -- LI Daobing <lidaobing@debian.org> Sat, 19 Jun 2010 18:27:20 +0800
--- /dev/null
--- /dev/null
++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
--- /dev/null
--- /dev/null
++9
--- /dev/null
--- /dev/null
++Source: opencc
++Priority: optional
++Maintainer: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
++Uploaders: LI Daobing <lidaobing@debian.org>,
++ Asias He <asias@debian.org>,
++ YunQiang Su <wzssyqa@gmail.com>,
++ Osamu Aoki <osamu@debian.org>,
++ Aron Xu <aron@debian.org>
++Build-Depends: cmake,
++ darts,
++ debhelper (>= 9),
++ doxygen,
++ libjs-jquery,
++ libtclap-dev,
++ python,
++ rapidjson-dev
++Standards-Version: 3.9.8
++Section: libs
++Homepage: https://github.com/BYVoid/OpenCC
++Vcs-Git: git://anonscm.debian.org/pkg-ime/opencc.git
++Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-ime/opencc.git
++
++Package: opencc
++Section: utils
++Architecture: any
++Multi-Arch: foreign
++Depends: libopencc2 (= ${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: libopencc2
++Architecture: any
++Multi-Arch: same
++Pre-Depends: ${misc:Pre-Depends}
++Depends: ${misc:Depends}, ${shlibs:Depends}, libopencc2-data
++Breaks: libopencc2-data (<< 1.0.4-5~)
++Replaces: libopencc2-data (<< 1.0.4-5~)
++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: libjs-jquery, libopencc2 (= ${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: libopencc2-data
++Architecture: all
++Multi-Arch: foreign
++Depends: ${misc:Depends}
++Breaks: libopencc-dev (<< 1.0.4-5~), libopencc2 (<< 1.0.4-5~)
++Replaces: libopencc-dev (<< 1.0.4-5~), libopencc2 (<< 1.0.4-5~)
++Description: simplified-traditional Chinese conversion library - data files
++ opencc is a library for converting character between traditional Chinese and
++ simplified Chinese.
++ .
++ This package includes the data files.
--- /dev/null
--- /dev/null
++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: opencc
++Source: https://github.com/BYVoid/OpenCC/releases
++
++Files: *
++Copyright: 2010-2014, BYVoid <byvoid.kcp@gmail.com>
++License: Apache-2
++
++Files: debian/*
++Copyright: 2010, LI Daobing <lidaobing@debian.org>
++ 2014, Aron Xu <aron@debian.org>
++License: Apache-2
++
++License: Apache-2
++ 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'.
++
++Files: deps/tclap-1.2.1/*
++Copyright: 2003, Michael E. Smoot
++License: MIT-like
++ 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.
++
++Files: deps/rapidjson-0.11/*
++Copyright: 2011-2014, Milo Yip
++License: Expat
++ 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.
++
++Files: deps/darts-clone/*
++Copyright: 2001-2008, Taku Kudoh <taku@chasen.org>
++License: BSD-3-Clause
++
++Files: deps/gtest-1.7.0/*
++Copyright: 2008, Google Inc.
++License: BSD-3-Clause
++
++License: BSD-3-Clause
++ Redistribution and use in source and binary forms, with or without
++ modification, are permitted provided that the following conditions
++ are met:
++ .
++ 1. Redistributions of source code must retain the above copyright
++ notice, this list of conditions and the following disclaimer.
++ 2. Redistributions in binary form must reproduce the above copyright
++ notice, this list of conditions and the following disclaimer in the
++ documentation and/or other materials provided with the distribution.
++ 3. The name Nara Institute of Science and Technology may not be used to
++ endorse or promote products derived from this software without specific
++ prior written permission.
++ .
++ THIS SOFTWARE IS PROVIDED BY Nara Institute of Science and Technology
++ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
++ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
++ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE Nara Institute
++ of Science and Technology BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
++ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
++ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
++ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
++ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
++ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- /dev/null
--- /dev/null
++AUTHORS
++README.md
++NEWS.md
--- /dev/null
--- /dev/null
++usr/include/*
++usr/lib/*/lib*.so
++usr/lib/*/pkgconfig/*
--- /dev/null
--- /dev/null
++usr/share/opencc/doc/*
++usr/share/opencc/*.json
--- /dev/null
--- /dev/null
++usr/lib/*/lib*.so.*
++usr/share/opencc/*.ocd
--- /dev/null
--- /dev/null
++usr/bin/*
--- /dev/null
--- /dev/null
++Subject: make sure library name matches soname
++From: Aron Xu <aron@debian.org>
++Index: opencc/src/CMakeLists.txt
++===================================================================
++--- opencc.orig/src/CMakeLists.txt
+++++ opencc/src/CMakeLists.txt
++@@ -72,7 +72,7 @@ set_target_properties(
++ OUTPUT_NAME
++ opencc
++ VERSION
++- 1.0.0
+++ 2.0.0
++ SOVERSION
++ 2
++ )
--- /dev/null
--- /dev/null
++lib-name-match-soversion.patch
++use-system-libraries.patch
++use-cmake-install-libdir.patch
--- /dev/null
--- /dev/null
++Index: opencc/CMakeLists.txt
++===================================================================
++--- opencc.orig/CMakeLists.txt
+++++ opencc/CMakeLists.txt
++@@ -69,7 +69,7 @@ set (DIR_INCLUDE ${DIR_PREFIX}/include/)
++ set (DIR_SHARE ${DIR_PREFIX}/share/)
++ set (DIR_ETC ${DIR_PREFIX}/etc/)
++ set (LIB_SUFFIX "")
++-set (DIR_LIBRARY ${DIR_PREFIX}/lib${LIB_SUFFIX}/)
+++set (DIR_LIBRARY ${CMAKE_INSTALL_LIBDIR})
++
++ if (DEFINED SHARE_INSTALL_PREFIX)
++ set (DIR_SHARE ${SHARE_INSTALL_PREFIX})
--- /dev/null
--- /dev/null
++Index: opencc/src/CMakeLists.txt
++===================================================================
++--- opencc.orig/src/CMakeLists.txt
+++++ opencc/src/CMakeLists.txt
++@@ -1,8 +1,7 @@
++ include (GenerateExportHeader)
++
++-include_directories(../deps/darts-clone)
++-include_directories(../deps/rapidjson-0.11)
++-include_directories(../deps/tclap-1.2.1)
+++include_directories(/usr/include/rapidjson)
+++include_directories(/usr/include/tclap)
++
++ # Library
++
--- /dev/null
--- /dev/null
++#!/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 $@ --buildsystem=cmake --parallel
++
++override_dh_auto_configure:
++ dh_auto_configure -- \
++ -DCMAKE_INSTALL_PREFIX=/usr \
++ -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/ \
++ -DCMAKE_BUILD_TYPE=Release \
++ -DBUILD_DOCUMENTATION=ON
++
++override_dh_auto_install:
++ dh_auto_install
++ ln -sf /usr/share/javascript/jquery/jquery.js debian/tmp/usr/share/opencc/doc/html/jquery.js
++
++override_dh_auto_clean:
++ dh_auto_clean
++ find . -name *.pyc -delete
--- /dev/null
--- /dev/null
++3.0 (quilt)
--- /dev/null
--- /dev/null
++version=3
++opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/opencc-$1\.tar\.gz/ \
++ https://github.com/byvoid/opencc/tags .*/ver\.?(\d\S*)\.tar\.gz