opencc (1.0.5-2) unstable; urgency=medium
authorBoyuan Yang <byang@debian.org>
Thu, 20 Sep 2018 19:07:38 +0000 (20:07 +0100)
committerBoyuan Yang <byang@debian.org>
Thu, 20 Sep 2018 19:07:38 +0000 (20:07 +0100)
  * Team upload.
  * Rebuild against gcc 8.
  * debian/control:
    + Update uploaders email address and use the @debian.org one.
    + Bump Standards-Version to 4.2.1 (no changes needed).
  * debian/rules: Avoid explicit invocation to dpkg-architecture.

[dgit import unpatched opencc 1.0.5-2]

20 files changed:
1  2 
debian/README.Debian
debian/TODO
debian/changelog
debian/clean
debian/compat
debian/control
debian/copyright
debian/docs
debian/libopencc-dev.install
debian/libopencc2-data.install
debian/libopencc2.install
debian/libopencc2.shlibs
debian/opencc.install
debian/patches/lib-name-match-soversion.patch
debian/patches/series
debian/patches/use-cmake-install-libdir.patch
debian/patches/use-system-libraries.patch
debian/rules
debian/source/format
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6d3e0fd9bb3ddb3e711eb647592ee38bad172c79
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,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 --cc debian/TODO
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a2899b0cdaef1e19554389c94d569e3e5c16bc5c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++* We need to pack nodejs module provided by opencc when possible.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..30e75a69dcfac49c7bd2ae52cb3d69768603a30a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,248 @@@
++opencc (1.0.5-2) unstable; urgency=medium
++
++  * Team upload.
++  * Rebuild against gcc 8.
++  * debian/control:
++    + Update uploaders email address and use the @debian.org one.
++    + Bump Standards-Version to 4.2.1 (no changes needed).
++  * debian/rules: Avoid explicit invocation to dpkg-architecture.
++
++ -- Boyuan Yang <byang@debian.org>  Thu, 20 Sep 2018 15:07:38 -0400
++
++opencc (1.0.5-1) unstable; urgency=medium
++
++  * Team upload.
++  * New upstream Release.
++  * Remove libopencc2 M-A:same mark for now since ocd files exist.
++    (Closes: #874227)
++  * Remove LI Daobing from Uploaders list. (Closes: #841792)
++    Thank you for your previous work!
++  * Apply "wrap-and-sort -abst".
++  * d/patches: Refresh patches.
++  * d/changelog: Remove trailing spaces.
++  * d/control: Use debian-input-method maillist in Maintainer field.
++    Closes: #899625.
++  * d/control: Use Vcs URL on Salsa platform.
++  * d/control: Bump Standards-Version to 4.1.4.
++  * d/control: Bump debhelper compat to v11.
++  * d/rules: Use NEWS.md as upstream changelog.
++  * d/rules: Use "dh_missing --fail-missing".
++  * d/shlibs: Explicitly require the latest library version.
++
++ -- Boyuan Yang <073plan@gmail.com>  Thu, 21 Jun 2018 11:18:37 +0800
++
++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 --cc debian/clean
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..07772306872fc1d0b077ff8b15e5cbf7bd102853
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,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 --cc debian/compat
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b4de3947675361a7770d29b8982c407b0ec6b2a0
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++11
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4fb18e37032919c9a662bd8cba0491da3340f5a9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,82 @@@
++Source: opencc
++Priority: optional
++Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
++Uploaders:
++ Asias He <asias@debian.org>,
++ YunQiang Su <syq@debian.org>,
++ Osamu Aoki <osamu@debian.org>,
++ Aron Xu <aron@debian.org>,
++Build-Depends:
++ cmake,
++ darts,
++ debhelper (>= 11~),
++ doxygen,
++ libjs-jquery,
++ libtclap-dev,
++ python,
++ rapidjson-dev,
++Standards-Version: 4.2.1
++Section: libs
++Homepage: https://github.com/BYVoid/OpenCC
++Vcs-Git: https://salsa.debian.org/debian/opencc.git
++Vcs-Browser: https://salsa.debian.org/debian/opencc
++
++Package: libopencc-dev
++Section: libdevel
++Architecture: any
++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
++Architecture: any
++Pre-Depends:
++ ${misc:Pre-Depends},
++Depends:
++ libopencc2-data,
++ ${misc:Depends},
++ ${shlibs:Depends},
++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: 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.
++
++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.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9999e5cdf1a36b2b183b41bb4a8eb1311b08fb9d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,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 --cc debian/docs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0b6e0f3219b8b17db3ce29ab6794fcf656bfaaa8
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++AUTHORS
++README.md
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7df81cd9f2a1282cd8d7222dd9b841258c579f78
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++usr/include/*
++usr/lib/*/lib*.so
++usr/lib/*/pkgconfig/*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..759378ea8c72d82e41ea3d8e4b1794017d4d37d7
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++usr/share/opencc/*.json
++usr/share/opencc/doc/*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4e01c5355604f9de7cc4ad8bfe73fff0886f7386
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++usr/lib/*/lib*.so.*
++usr/share/opencc/*.ocd
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..d01b5d7059e8a8a18cfa2ec8efb1f95db64c41cd
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++libopencc 2 libopencc2 (>= 1.0.5)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1df36c612fb7cd107795e240186fbddfc0f953b9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++usr/bin/*
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..98e9437b1b18e067bc2167c5df2055fcd1d7d186
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,22 @@@
++From: Aron Xu <aron@debian.org>
++Date: Mon, 9 Oct 2017 22:02:39 +0800
++Subject: make sure library name matches soname
++
++===================================================================
++---
++ src/CMakeLists.txt | 2 +-
++ 1 file changed, 1 insertion(+), 1 deletion(-)
++
++diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
++index 498a4f6..6e36db1 100644
++--- a/src/CMakeLists.txt
+++++ b/src/CMakeLists.txt
++@@ -75,7 +75,7 @@ set_target_properties(
++     OUTPUT_NAME
++       opencc
++     VERSION
++-      1.0.0
+++      2.0.0
++     SOVERSION
++       2
++ )
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..fe4adf11c95b05daee1e8f973305e79301db4725
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++lib-name-match-soversion.patch
++use-system-libraries.patch
++use-cmake-install-libdir.patch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3dcdec08ca62d93c21e71182aeaea430351f2fc6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,22 @@@
++From: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
++Date: Mon, 9 Oct 2017 22:02:39 +0800
++Subject: use-cmake-install-libdir
++
++===================================================================
++---
++ CMakeLists.txt | 2 +-
++ 1 file changed, 1 insertion(+), 1 deletion(-)
++
++diff --git a/CMakeLists.txt b/CMakeLists.txt
++index 2a29415..abbac00 100644
++--- a/CMakeLists.txt
+++++ b/CMakeLists.txt
++@@ -68,7 +68,7 @@ set (DIR_PREFIX ${CMAKE_INSTALL_PREFIX})
++ set (DIR_INCLUDE ${DIR_PREFIX}/include/)
++ set (DIR_SHARE ${DIR_PREFIX}/share/)
++ set (DIR_ETC ${DIR_PREFIX}/etc/)
++-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})
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..0d31e5a19204bc6636d3fc4f53d8f7ff2ee12f86
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,24 @@@
++From: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
++Date: Mon, 9 Oct 2017 22:02:39 +0800
++Subject: use-system-libraries
++
++===================================================================
++---
++ src/CMakeLists.txt | 5 ++---
++ 1 file changed, 2 insertions(+), 3 deletions(-)
++
++diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
++index 6e36db1..299a062 100644
++--- a/src/CMakeLists.txt
+++++ b/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 --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6563bbb96e82859f409e6bb7901ad119692b5478
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,38 @@@
++#!/usr/bin/make -f
++# -*- makefile -*-
++# Uncomment this to turn on verbose mode.
++# export DH_VERBOSE=1
++
++# see FEATURE AREAS in dpkg-buildflags(1)
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
++
++# CMake doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to enable the
++# missing (hardening) flags.
++CFLAGS += $(CPPFLAGS)
++
++include /usr/share/dpkg/architecture.mk
++
++%:
++      dh $@ --buildsystem=cmake
++
++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
++
++override_dh_installchangelogs:
++      dh_installchangelogs -k NEWS.md
++
++override_dh_missing:
++      dh_missing --fail-missing
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bc0c338561f37cf4097700f9cd764281e634583a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,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