Import opencc_1.0.4-5.debian.tar.xz
authorAron Xu <aron@debian.org>
Fri, 20 Jan 2017 07:15:35 +0000 (07:15 +0000)
committerAron Xu <aron@debian.org>
Fri, 20 Jan 2017 07:15:35 +0000 (07:15 +0000)
[dgit import tarball opencc 1.0.4-5 opencc_1.0.4-5.debian.tar.xz]

18 files changed:
README.Debian [new file with mode: 0644]
changelog [new file with mode: 0644]
clean [new file with mode: 0644]
compat [new file with mode: 0644]
control [new file with mode: 0644]
copyright [new file with mode: 0644]
docs [new file with mode: 0644]
libopencc-dev.install [new file with mode: 0644]
libopencc2-data.install [new file with mode: 0644]
libopencc2.install [new file with mode: 0644]
opencc.install [new file with mode: 0644]
patches/lib-name-match-soversion.patch [new file with mode: 0644]
patches/series [new file with mode: 0644]
patches/use-cmake-install-libdir.patch [new file with mode: 0644]
patches/use-system-libraries.patch [new file with mode: 0644]
rules [new file with mode: 0755]
source/format [new file with mode: 0644]
watch [new file with mode: 0644]

diff --git a/README.Debian b/README.Debian
new file mode 100644 (file)
index 0000000..6d3e0fd
--- /dev/null
@@ -0,0 +1,3 @@
+Package using libopencc should always require a tight versioned dependency to
+make sure it depends on the exact upstream minor version to avoid
+incomaptibility.
diff --git a/changelog b/changelog
new file mode 100644 (file)
index 0000000..79c1d85
--- /dev/null
+++ b/changelog
@@ -0,0 +1,215 @@
+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
diff --git a/clean b/clean
new file mode 100644 (file)
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 (file)
index 0000000..ec63514
--- /dev/null
+++ b/compat
@@ -0,0 +1 @@
+9
diff --git a/control b/control
new file mode 100644 (file)
index 0000000..7beb9e9
--- /dev/null
+++ b/control
@@ -0,0 +1,68 @@
+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.
diff --git a/copyright b/copyright
new file mode 100644 (file)
index 0000000..9999e5c
--- /dev/null
+++ b/copyright
@@ -0,0 +1,106 @@
+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.
diff --git a/docs b/docs
new file mode 100644 (file)
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 (file)
index 0000000..7df81cd
--- /dev/null
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/pkgconfig/*
diff --git a/libopencc2-data.install b/libopencc2-data.install
new file mode 100644 (file)
index 0000000..8dbb311
--- /dev/null
@@ -0,0 +1,2 @@
+usr/share/opencc/doc/*
+usr/share/opencc/*.json
diff --git a/libopencc2.install b/libopencc2.install
new file mode 100644 (file)
index 0000000..4e01c53
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/*/lib*.so.*
+usr/share/opencc/*.ocd
diff --git a/opencc.install b/opencc.install
new file mode 100644 (file)
index 0000000..1df36c6
--- /dev/null
@@ -0,0 +1 @@
+usr/bin/*
diff --git a/patches/lib-name-match-soversion.patch b/patches/lib-name-match-soversion.patch
new file mode 100644 (file)
index 0000000..26fd8f7
--- /dev/null
@@ -0,0 +1,15 @@
+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
+ )
diff --git a/patches/series b/patches/series
new file mode 100644 (file)
index 0000000..fe4adf1
--- /dev/null
@@ -0,0 +1,3 @@
+lib-name-match-soversion.patch
+use-system-libraries.patch
+use-cmake-install-libdir.patch
diff --git a/patches/use-cmake-install-libdir.patch b/patches/use-cmake-install-libdir.patch
new file mode 100644 (file)
index 0000000..31e6670
--- /dev/null
@@ -0,0 +1,13 @@
+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})
diff --git a/patches/use-system-libraries.patch b/patches/use-system-libraries.patch
new file mode 100644 (file)
index 0000000..1edb1ca
--- /dev/null
@@ -0,0 +1,15 @@
+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
diff --git a/rules b/rules
new file mode 100755 (executable)
index 0000000..af50c7c
--- /dev/null
+++ b/rules
@@ -0,0 +1,27 @@
+#!/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
diff --git a/source/format b/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/watch b/watch
new file mode 100644 (file)
index 0000000..bc0c338
--- /dev/null
+++ b/watch
@@ -0,0 +1,3 @@
+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