--- m17n-lib-1.5.4.orig/debian/docs +++ m17n-lib-1.5.4/debian/docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +TODO --- m17n-lib-1.5.4.orig/debian/libm17n-0.install +++ m17n-lib-1.5.4/debian/libm17n-0.install @@ -0,0 +1,2 @@ +usr/lib/libm17n*.so.* +usr/lib/libmimx*.so.* usr/lib/m17n-lib --- m17n-lib-1.5.4.orig/debian/compat +++ m17n-lib-1.5.4/debian/compat @@ -0,0 +1 @@ +7 --- m17n-lib-1.5.4.orig/debian/control +++ m17n-lib-1.5.4/debian/control @@ -0,0 +1,105 @@ +Source: m17n-lib +Section: utils +Priority: optional +Maintainer: Harshula Jayasuriya +Build-Depends: debhelper (>= 7), autotools-dev, dpatch, libxt-dev, libx11-dev, libxaw7-dev, libxmu-dev, libfribidi-dev, libotf-dev (>= 0.9.4), libfreetype6-dev, libxft-dev, libxrender-dev, libfontconfig1-dev, libgd2-xpm-dev, libxml2-dev, libanthy-dev, libthai-dev +Standards-Version: 3.8.1 +Homepage: http://www.m17n.org/ + +Package: libm17n-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: m17n-db, m17n-contrib +Suggests: m17n-docs +Description: a multilingual text processing library - runtime + The m17n library is a multilingual text processing library for the C + language. This library has following features: + - The m17n library is an open source software. + - The m17n library for any Linux/Unix applications. + - The m17n library realizes multilingualization of many aspects of + applications. + - The m17n library represents multilingual text as an object named + M-text. M-text is a string with attributes called text properties, + and designed to substitute for string in C. Text properties carry any + information required to input, display and edit the text. + - The m17n library supports functions to handle M-texts. + . + m17n is an abbreviation of Multilingualization. + . + This package contains the runtime part of m17n-lib. + +Package: libm17n-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libm17n-0 (= ${binary:Version}), libxml2-dev, libthai-dev +Suggests: m17n-docs +Description: a multilingual text processing library - development + The m17n library is a multilingual text processing library for the C + language. This library has following features: + . + - The m17n library is an open source software. + - The m17n library for any Linux/Unix applications. + - The m17n library realizes multilingualization of many aspects of + applications. + - The m17n library represents multilingual text as an object named + M-text. M-text is a string with attributes called text properties, + and designed to substitute for string in C. Text properties carry any + information required to input, display and edit the text. + - The m17n library supports functions to handle M-texts. + . + m17n is an abbreviation of Multilingualization. + . + This package contains the header and development files needed to build + programs and packages using m17n-lib. + +Package: libm17n-0-dbg +Section: debug +Priority: extra +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libm17n-0 (= ${binary:Version}) +Suggests: m17n-docs +Description: a multilingual text processing library - debugging symbols + The m17n library is a multilingual text processing library for the C + language. This library has following features: + . + - The m17n library is an open source software. + - The m17n library for any Linux/Unix applications. + - The m17n library realizes multilingualization of many aspects of + applications. + - The m17n library represents multilingual text as an object named + M-text. M-text is a string with attributes called text properties, + and designed to substitute for string in C. Text properties carry any + information required to input, display and edit the text. + - The m17n library supports functions to handle M-texts. + . + m17n is an abbreviation of Multilingualization. + . + This package contains unstripped shared libraries. it is provided + primarily to provide a backtrace with names in a debugger, this makes + it somewhat easier to interpret core dumps. The libraries are installed + in /usr/lib/debug and can be used by placing that directory in + LD_LIBRARY_PATH. + Most people will not need this package. + +Package: m17n-lib-bin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libm17n-0 (= ${binary:Version}) +Suggests: m17n-docs +Description: a multilingual text processing library - utilities + The m17n library is a multilingual text processing library for the C + language. This library has following features: + . + - The m17n library is an open source software. + - The m17n library for any Linux/Unix applications. + - The m17n library realizes multilingualization of many aspects of + applications. + - The m17n library represents multilingual text as an object named + M-text. M-text is a string with attributes called text properties, + and designed to substitute for string in C. Text properties carry any + information required to input, display and edit the text. + - The m17n library supports functions to handle M-texts. + . + m17n is an abbreviation of Multilingualization. + . + This package contains the utilities which use m17n-lib. --- m17n-lib-1.5.4.orig/debian/copyright +++ m17n-lib-1.5.4/debian/copyright @@ -0,0 +1,49 @@ +This package was debianized by Hidetaka Iwai on +Sat, 10 Apr 2004 15:09:57 +0900. + +The current Debian maintainer is Harshula Jayasuriya . + +It was downloaded from: +http://www.m17n.org/m17n-lib-download/m17n-lib-1.5.4.tar.gz + +Home Page: + + http://www.m17n.org/ + +Upstream Authors: + + Kenichi Handa + Mikiko Nishikimi + Naoto Takahashi + Satoru Tomura + +Copyright: + + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 + National Institute of Advanced Industrial Science and Technology (AIST) + Registration Number H15PRO112 + +License: + + The m17n library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public License + as published by the Free Software Foundation; either version 2.1 of + the License, or (at your option) any later version. + + The m17n library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the m17n library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + + +The Debian packaging is Copyright (C) 2008-2009, Harshula Jayasuriya + and is licensed under the GPL, +see `/usr/share/common-licenses/GPL'. + +The complete text of the GNU Lesser General Public License can be found in +`/usr/share/common-licenses/LGPL'. --- m17n-lib-1.5.4.orig/debian/watch +++ m17n-lib-1.5.4/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.m17n.org/m17n-lib-en/download.html ../m17n-lib-download/m17n-lib-(.*)\.tar\.gz --- m17n-lib-1.5.4.orig/debian/changelog +++ m17n-lib-1.5.4/debian/changelog @@ -0,0 +1,175 @@ +m17n-lib (1.5.4-1build1) karmic; urgency=low + + * Rebuild against new libdatrie. + + -- Daniel Holbach Mon, 04 May 2009 09:28:01 +0200 + +m17n-lib (1.5.4-1) unstable; urgency=low + + * New upstream release 1.5.4. + * Do not add the *.la files to the -dev package. (Closes: 510330) + * Update Standards-Version to Debian Policy 3.8.1. (No changes) + * debian/control: + - inherit Section from source package. + - the -dbg package moved to the debug section. + * debian/copyright: + - add the string "Copyright" as instructed by Lintian. + - update the copyright dates. + * debian/rules: + - BUGFIX: add the required "\" to the multi-line configure call. + - BUGFIX: remove space between "-Wl," and "--as-needed". + - replace dh_clean -k with dh_prep. + - add "-Wl,-z,defs". + - dynamically discover the version and major number. + + -- Harshula Jayasuriya Thu, 09 Apr 2009 22:03:37 +1000 + +m17n-lib (1.5.2-1) unstable; urgency=low + + * New upstream release 1.5.2. + * Update Standards-Version to Debian Policy 3.8.0. (No changes) + * Fixed upstream, removed: debian/patches/40_makefile_link_with_libs.dpatch. + + -- Harshula Jayasuriya Tue, 22 Jul 2008 00:32:53 +1000 + +m17n-lib (1.5.1-1) unstable; urgency=low + + * New upstream release 1.5.1. (Closes: #434041) + * debian/control: changed to Section: utils. + * debian/{copyright,rules}: updated. + * Updated to debhelper 7. + * Enable patch fix_loadable_modules_path. + + -- Harshula Jayasuriya Mon, 23 Jun 2008 23:02:47 +1000 + +m17n-lib (1.3.4-2) unstable; urgency=high + + * libm17n-dev Depends on libxml2-dev and libthai-dev. (Closes: #473957) + + -- Harshula Jayasuriya Fri, 04 Apr 2008 23:15:32 +1100 + +m17n-lib (1.3.4-1) unstable; urgency=low + + * New upstream release 1.3.4. (Closes: #376077) + * New Maintainer. + * Update Standards-Version to Debian Policy 3.7.3. (No changes) + * Update debian/{compat,control,copyright,rules}. + * Add debian/{docs,watch}. + * Remove debian/libm17n-0.dirs. + * Disable patches fix_no_family, fix_loadable_modules_path. + * Add patch debian/patches/40_makefile_link_with_libs.dpatch. + + -- Harshula Jayasuriya Mon, 10 Mar 2008 00:21:19 +1100 + +m17n-lib (1.3.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Hardlink dlopen to use .so.0-files - not too nice, but works for now, and + reduces severity of bug #325528 to "only" important. Closes: #325528 + + -- Andreas Barth Fri, 1 Dec 2006 14:15:15 +0000 + +m17n-lib (1.3.1-1) unstable; urgency=low + + * New upstream release. + * Previous NMU acknowledged (Closes: #348806, #325528, #347002). + * Changed to make use of dpatch. + * Added a new package for debugging; libm17n-0-dbg. + * Moved libmimx* to /usr/lib/m17n-lib subdirectory. + + -- Hidetaka Iwai Mon, 13 Feb 2006 23:03:40 +0900 + +m17n-lib (1.2.0-5.1) unstable; urgency=low + + * Non-Maintainer Upload. + * Handle fonts with no "family"; patch from Brendan O'Dea. + (Closes: #325528) + * Replace xlibs-dev build-dependency with explicit build-dependencies on + the required libraries. (Closes: #347002) + + -- Steinar H. Gunderson Thu, 19 Jan 2006 02:09:17 +0100 + +m17n-lib (1.2.0-5) unstable; urgency=high + + * debian/control: Added build-dependencies on libgd2-xpm-dev. This + change will not affect the ABI compatibility (closes: #325520). + * Adapted to debian policy 3.6.2. + + -- Hidetaka Iwai Tue, 30 Aug 2005 03:56:10 +0900 + +m17n-lib (1.2.0-4) unstable; urgency=high + + * Applied tha patch which fixes FTBFS on Hurd due to PATH_MAX. + Thank to Michael Banck (closes: #314528). + + -- Hidetaka Iwai Sat, 25 Jun 2005 00:39:02 +0900 + +m17n-lib (1.2.0-3) unstable; urgency=low + + * debian/control: Added build-dependencies on libfontconfig1-dev. This + change will not affect the ABI compatibility. + + -- Hidetaka Iwai Mon, 13 Jun 2005 03:44:41 +0900 + +m17n-lib (1.2.0-2) unstable; urgency=low + + * debian/rules, debian/libm17n-dev.install: Fixed to install + /usr/lib/pkgconfig/* (closes: #298409). + + -- Hidetaka Iwai Sun, 3 Apr 2005 07:23:50 +0900 + +m17n-lib (1.2.0-1) unstable; urgency=low + + * New upstream release + + -- Hidetaka Iwai Tue, 28 Dec 2004 21:22:48 +0900 + +m17n-lib (1.1.0+0.0.cvs20041208-1) unstable; urgency=low + + * CVS update(trunk) + * Upstream fixed the problem with multiple M17N_FINI calling and now + gtk programs terminate correclty even with both scim-m17n and scim-uim. + (closes: #283126) + * debian/control: Add dependency on libxml2-dev (closes: #284405) + + -- Hidetaka Iwai Wed, 8 Dec 2004 20:51:55 +0900 + +m17n-lib (1.1.0-3) unstable; urgency=low + + * src/input.c: Applied the patch from Kenichi Handa + (for detail, please see + http://freedesktop.org/pipermail/scim/2004-October/001102.html) + + -- Hidetaka Iwai Sun, 29 Aug 2004 00:59:05 +0900 + +m17n-lib (1.1.0-2) unstable; urgency=low + + * debian/control: Add versioned dependency on libotf (closes: #268666) + + -- Hidetaka Iwai Sun, 29 Aug 2004 00:52:15 +0900 + +m17n-lib (1.1.0-1) unstable; urgency=low + + * New upstream release + + -- Hidetaka Iwai Thu, 26 Aug 2004 23:07:03 +0900 + +m17n-lib (1.0.2-3) unstable; urgency=low + + * debian/control: Add build dependency on xlibs-dev (closes: #250469). + + -- Hidetaka Iwai Sun, 23 May 2004 16:33:58 +0900 + +m17n-lib (1.0.2-2) unstable; urgency=low + + * debian/rules: defined DLOPEN_SHLIB_EXT explicitly to avoid + loading libmimx-*.so with no version (closes: #250297). + + -- Hidetaka Iwai Sun, 23 May 2004 03:23:32 +0900 + +m17n-lib (1.0.2-1) unstable; urgency=low + + * Initial Release. Close wnpp bug (closes: #244373). + + -- Hidetaka Iwai Mon, 19 Apr 2004 20:46:54 +0900 + --- m17n-lib-1.5.4.orig/debian/m17n-lib-bin.install +++ m17n-lib-1.5.4/debian/m17n-lib-bin.install @@ -0,0 +1,6 @@ +usr/bin/m17n-conv +usr/bin/m17n-date +usr/bin/m17n-dump +usr/bin/m17n-edit +usr/bin/m17n-view +usr/share/lintian/overrides/m17n-lib-bin --- m17n-lib-1.5.4.orig/debian/rules +++ m17n-lib-1.5.4/debian/rules @@ -0,0 +1,131 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# This file was modified by Harshula Jayasuriya. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +SRC_PKG = m17n-lib +LIB_PKG = libm17n-0 +INSTALLDIR = $(CURDIR)/debian/$(SRC_PKG) +INSTALLLIBDIR = $(CURDIR)/debian/$(LIB_PKG) +LINTIAN_OVERRIDE_DIR = $(INSTALLDIR)/usr/share/lintian/overrides + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + +# shared library versions, option 1 +#version=0.3.0 +#major=0 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +version=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +major=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="-Wl,--as-needed -Wl,-z,defs" + +build: build-stamp + +build-stamp: patch config.status + dh_testdir + $(MAKE) + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + [ ! -f Makefile ] || $(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + rm -f config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + rm -f config.guess +endif + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) DESTDIR=$(INSTALLDIR) install + mkdir -p $(LINTIAN_OVERRIDE_DIR) + echo "m17n-lib-bin binary: binary-without-manpage" \ + > $(LINTIAN_OVERRIDE_DIR)/m17n-lib-bin + echo "libm17n-dev binary: binary-without-manpage" \ + > $(LINTIAN_OVERRIDE_DIR)/libm17n-dev + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples + dh_install --sourcedir=$(INSTALLDIR) --list-missing +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip --dbg-package=$(LIB_PKG)-dbg + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_makeshlibs -p$(LIB_PKG) + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch \ + clean-patched --- m17n-lib-1.5.4.orig/debian/libm17n-dev.install +++ m17n-lib-1.5.4/debian/libm17n-dev.install @@ -0,0 +1,8 @@ +usr/bin/m17n-config +usr/include/* +usr/lib/libm17n*.a +usr/lib/libm17n*.so +usr/lib/libmimx*.a usr/lib/m17n-lib +usr/lib/libmimx*.so usr/lib/m17n-lib +usr/lib/pkgconfig/* +usr/share/lintian/overrides/libm17n-dev --- m17n-lib-1.5.4.orig/debian/patches/fix_soversion.dpatch +++ m17n-lib-1.5.4/debian/patches/fix_soversion.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## fix_soversion.dpatch by Andreas Barth +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Replace .so with .so.0 to allow running without the -dev-package +## DP: see bug #325528 for details + +@DPATCH@ +diff -ur m17n-lib-1.3.1~~/configure ../m17n-lib-1.3.1/configure +--- m17n-lib-1.3.1~~/configure 2006-01-16 06:53:28.000000000 +0000 ++++ m17n-lib-1.3.1/configure 2006-12-01 14:15:00.000000000 +0000 +@@ -26635,7 +26635,7 @@ + CPPFLAGS="$CPPFLAGS $X_CFLAGS" + + +-SHLIB_EXT=".so" ++SHLIB_EXT=".so.0" + case $host_os in + darwin* | rhapsody*) + SHLIB_EXT=".dylib";; +diff -ur m17n-lib-1.3.1~~/configure.ac ../m17n-lib-1.3.1/configure.ac +--- m17n-lib-1.3.1~~/configure.ac 2006-01-16 02:11:54.000000000 +0000 ++++ m17n-lib-1.3.1/configure.ac 2006-12-01 14:15:09.000000000 +0000 +@@ -419,7 +419,7 @@ + dnl [ --enable-xom build and install XOM library.], + dnl XOM="$enableval") + +-SHLIB_EXT=".so" ++SHLIB_EXT=".so.0" + case $host_os in + darwin* | rhapsody*) + SHLIB_EXT=".dylib";; --- m17n-lib-1.5.4.orig/debian/patches/00list +++ m17n-lib-1.5.4/debian/patches/00list @@ -0,0 +1,3 @@ +#fix_no_family +fix_loadable_modules_path +fix_soversion --- m17n-lib-1.5.4.orig/debian/patches/fix_no_family.dpatch +++ m17n-lib-1.5.4/debian/patches/fix_no_family.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## fix_no_family.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=325528#17 + +@DPATCH@ +diff -urNad m17n-lib~/src/m17n-X.c m17n-lib/src/m17n-X.c +--- m17n-lib~/src/m17n-X.c 2005-12-13 10:13:31.000000000 +0900 ++++ m17n-lib/src/m17n-X.c 2006-01-28 09:17:47.000000000 +0900 +@@ -502,6 +502,9 @@ + char *base_end; + int base_len; + int fields; ++ ++ if (!family) ++ continue; + + if (p && MPLIST_KEY (p) != family) + p = mplist_find_by_key (plist, family); --- m17n-lib-1.5.4.orig/debian/patches/fix_loadable_modules_path.dpatch +++ m17n-lib-1.5.4/debian/patches/fix_loadable_modules_path.dpatch @@ -0,0 +1,34 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_fix_loadable_modules_path.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set /usr/lib/m17n-lib/ as the location for m17n loadable modules. + +@DPATCH@ +diff --git a/src/input.c b/src/input.c +index 635efb9..0afbd48 100644 +--- a/src/input.c ++++ b/src/input.c +@@ -163,6 +163,8 @@ + #include "database.h" + #include "charset.h" + ++#define LOADABLE_MODULES_PATH "/usr/lib/m17n-lib/" ++ + static int mdebug_flag = MDEBUG_INPUT; + + static int fully_initialized; +@@ -1177,9 +1179,11 @@ load_external_module (MInputMethodInfo *im_info, MPlist *plist) + module = msymbol ((char *) MTEXT_DATA (MPLIST_MTEXT (plist))); + else if (MPLIST_SYMBOL_P (plist)) + module = MPLIST_SYMBOL (plist); +- module_file = alloca (strlen (MSYMBOL_NAME (module)) ++ module_file = alloca (strlen (LOADABLE_MODULES_PATH) ++ + strlen (MSYMBOL_NAME (module)) + + strlen (DLOPEN_SHLIB_EXT) + 1); +- sprintf (module_file, "%s%s", MSYMBOL_NAME (module), DLOPEN_SHLIB_EXT); ++ sprintf (module_file, "%s%s%s", LOADABLE_MODULES_PATH, ++ MSYMBOL_NAME (module), DLOPEN_SHLIB_EXT); + + handle = dlopen (module_file, RTLD_NOW); + if (MFAILP (handle))