--- khmerconverter-1.4.orig/debian/changelog +++ khmerconverter-1.4/debian/changelog @@ -0,0 +1,59 @@ +khmerconverter (1.4-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Port from python-support to dh_python (Closes: #786219) + + -- Andrey Rahmatullin Sat, 22 Aug 2015 22:19:41 +0500 + +khmerconverter (1.4-1) unstable; urgency=low + + * Package adopted from Paul Wise + * New upstream release + - Change the focus from using tab to mouse + - Add support for additional fonts: Content, Muol Light, Muol Pali, + Siemreap + * Minor build changes: + - Switching from `quilt' to `dpatch' + - Change from "Apps" to "Applications" in the menu item + - Remove "Encoding=UTF-8" from khmerconvert.desktop + + -- Soputtra San Fri, 07 Sep 2007 22:58:43 +1000 + +khmerconverter (1.3-3) unstable; urgency=low + + * Generate the manual page in the current dir instead (Closes: #422641) + * Run the failing tests but ignore their results for now + + -- Paul Wise Tue, 08 May 2007 17:45:56 +1000 + +khmerconverter (1.3-2) unstable; urgency=low + + * Upload to unstable + + -- Paul Wise Thu, 19 Apr 2007 17:43:02 +1000 + +khmerconverter (1.3-1) experimental; urgency=low + + * New upstream release + - remove python2.3-support.patch (accepted upstream) + * Change my email address now that I'm a Debian Developer + * Suggest ttf-khmeros for viewing Khmer Unicode documents + * Strip useless info from README.TXT, ship as README + * Strip some blank lines from TODO.TXT, ship as TODO + * Use a proper short description in the manual page + * Enable some of the tests that now complete successfully + * Don't use dh_python since it is depreciated + * Don't ship fontdata.dtd since it is not needed + * Ship fontdata.xml outside the python modules directory + * Convert upstream .ico to PNG and XPM and use in menus + * Make khmerconverter.desktop file valid + * Clean up debian/rules a bit + + -- Paul Wise Tue, 20 Feb 2007 23:07:58 +0900 + +khmerconverter (1.0-1) unstable; urgency=low + + * Initial release (Closes: #333331) + + -- Paul Wise Tue, 27 Jun 2006 17:22:58 +0800 + --- khmerconverter-1.4.orig/debian/compat +++ khmerconverter-1.4/debian/compat @@ -0,0 +1 @@ +5 --- khmerconverter-1.4.orig/debian/control +++ khmerconverter-1.4/debian/control @@ -0,0 +1,24 @@ +Source: khmerconverter +Section: text +Priority: optional +Maintainer: Soputtra San +Build-Depends: debhelper (>= 5.0.37.2), dpatch (>= 2.0.27) +Build-Depends-Indep: imagemagick, help2man, python (>= 2.3), dh-python +Standards-Version: 3.7.2 + +Package: khmerconverter +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Recommends: python-tk, tix +Suggests: ttf-khmeros +Description: converts between legacy Khmer encodings and Unicode + khmerconverter converts files between Unicode and the legacy Khmer + encodings based on fonts using the ASCII/ANSI range. + . + It currently supports plain text files, OpenDocument files (ODT) and + HTML files encoded with UTF-8 and the ABC, ABC-ZWSP, Baidok, Fk, Khek, + Limon and Truth legacy Khmer fonts. + . + Please install python-tk and tix to use the graphical interface (GUI). + . + Homepage: http://www.khmeros.info/drupal/?q=en/download/converter --- khmerconverter-1.4.orig/debian/copyright +++ khmerconverter-1.4/debian/copyright @@ -0,0 +1,32 @@ +This package was adopted by Soputtra San on +Fri, 07 Sep 2007 22:58:43 +1000 + +This package was debianized by Paul Wise on +Tue, 23 May 2006 10:06:43 +0800. + +It was downloaded from http://www.khmeros.info/drupal/?q=en/download/converter + +Authors: + + Hok Kakada + Keo Sophon + San Titvirak + Seth Chanratha + +Copyright: + + Copyright (c) 2006 The WordForge Foundation, all rights reserved. + +License: + + This program 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. + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in /usr/share/common-licenses/LGPL. + +Debian packaging: + + Placed in the Public Domain in 2006 by Paul Wise --- khmerconverter-1.4.orig/debian/dirs +++ khmerconverter-1.4/debian/dirs @@ -0,0 +1,4 @@ +usr/bin +usr/share/khmerconverter/modules +usr/share/applications +usr/share/pixmaps --- khmerconverter-1.4.orig/debian/docs +++ khmerconverter-1.4/debian/docs @@ -0,0 +1,2 @@ +build/README +build/TODO --- khmerconverter-1.4.orig/debian/install +++ khmerconverter-1.4/debian/install @@ -0,0 +1,6 @@ +khmerconverter usr/bin +modules/*.py usr/share/khmerconverter/modules +modules/fontdata.xml usr/share/khmerconverter +debian/khmerconverter.desktop usr/share/applications +build/khmerconverter.xpm usr/share/pixmaps +build/khmerconverter.png usr/share/pixmaps --- khmerconverter-1.4.orig/debian/khmerconverter.desktop +++ khmerconverter-1.4/debian/khmerconverter.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Khmer Converter +Name[km]=កម្មវិធី​បម្លែង​ពុម្ព​អក្សរ​ខ្មែរ +Comment=Convert Khmer between Unicode and legacy Khmer encodings. +#Comment[km]= +Exec=khmerconverter +Icon=khmerconverter.png +Type=Application +Terminal=false +Categories=Translation;Utility; --- khmerconverter-1.4.orig/debian/manpages +++ khmerconverter-1.4/debian/manpages @@ -0,0 +1 @@ +build/khmerconverter.1 --- khmerconverter-1.4.orig/debian/menu +++ khmerconverter-1.4/debian/menu @@ -0,0 +1,4 @@ +?package(khmerconverter,python-tk,tix):needs="X11" section="Applications/Text" \ +title="Khmer Converter" command="/usr/bin/khmerconverter" \ +longtitle="Convert Khmer between Unicode and legacy Khmer encodings." \ +icon="/usr/share/pixmaps/khmerconverter.xpm" --- khmerconverter-1.4.orig/debian/patches/00list +++ khmerconverter-1.4/debian/patches/00list @@ -0,0 +1 @@ +search-dir.dpatch --- khmerconverter-1.4.orig/debian/patches/search-dir.dpatch +++ khmerconverter-1.4/debian/patches/search-dir.dpatch @@ -0,0 +1,40 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## search-dir.dpatch by Soputtra San +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Search for the modules and data in /usr/share/khmerconverter + +@DPATCH@ +diff -urNad khmerconverter-1.4~/khmerconverter.py khmerconverter-1.4/khmerconverter.py +--- khmerconverter-1.4~/khmerconverter.py 2007-09-11 16:12:07.000000000 +1000 ++++ khmerconverter-1.4/khmerconverter.py 2007-09-11 16:14:14.000000000 +1000 +@@ -20,10 +20,12 @@ + # This program creates a Plain Text, OpenOffice.org Writer (odt), or HTML file + # in Khmer Unicode/Legacy format from Legacy/Unicode input file respectively. + ++import sys ++sys.path.insert(0,'/usr/share/khmerconverter') ++ + from optparse import OptionParser + from modules import FontDataXML +-import __version__ +-import sys ++from modules import __version__ + import os + + if (sys.argv[0].endswith('py')): +diff -urNad khmerconverter-1.4~/modules/FontDataXML.py khmerconverter-1.4/modules/FontDataXML.py +--- khmerconverter-1.4~/modules/FontDataXML.py 2007-09-11 15:46:46.000000000 +1000 ++++ khmerconverter-1.4/modules/FontDataXML.py 2007-09-11 16:15:19.000000000 +1000 +@@ -183,7 +183,10 @@ + try: + datasource = open('modules/' + filename) + except IOError: +- raise IOError('Cannot open ' + filename + ' for reading!') ++ try: ++ datasource = open('/usr/share/khmerconverter/' + filename) ++ except IOError: ++ raise IOError('Cannot open ' + filename + ' for reading!') + + FontData.dom = parse(datasource) + FontData.fontNames = dict() --- khmerconverter-1.4.orig/debian/pyversions +++ khmerconverter-1.4/debian/pyversions @@ -0,0 +1 @@ +2.3- --- khmerconverter-1.4.orig/debian/rules +++ khmerconverter-1.4/debian/rules @@ -0,0 +1,93 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + mkdir build + + sed -e 's/^# //g' -e 's/\r//g' \ + -e '/^USAGE:/,/^IMPORTANT NOTE:/{d}' \ + < README.TXT > build/README + cat -s TODO.TXT > build/TODO + + cp -f khmerconverter.py khmerconverter + + # copy __version__ to modules + cp __version__.py modules/ + help2man -n 'convert between legacy Khmer encodings and Unicode' \ + -s 1 -N -o build/khmerconverter.1 'python khmerconverter' + + convert converter.ico build/a.xpm + convert converter.ico build/a.png + mv build/a-1.xpm build/khmerconverter.xpm + mv build/a-2.png build/khmerconverter.png + rm -f build/a-*.* + + # Perform tests (ignored ones fail) + python modules/FontDataXML.py + python modules/test_fontdata.py + python modules/legacyReorder.py + python modules/legacyConverter.py + -python modules/legacyConvertOdt.py + python modules/legacyConvertHTML.py + python modules/legacyConvertText.py + python modules/unicodeReorder.py + python modules/unicodeProcess.py + -python modules/unicodeConvertOdt.py + python modules/unicodeConvertHTML.py + python modules/unicodeConvertText.py + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -rf khmerconverter build build-stamp modules/*.pyc modules/__version__.py + dh_clean +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install + rm -f debian/khmerconverter/usr/share/khmerconverter/modules/test_fontdata.py + chmod a-x debian/khmerconverter/usr/share/khmerconverter/modules/* + chmod a+x \ + debian/khmerconverter/usr/share/khmerconverter/modules/FontDataXML.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/legacyReorder.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/legacyConverter.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/legacyConvertOdt.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/legacyConvertHTML.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/legacyConvertText.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/unicodeReorder.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/unicodeProcess.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/unicodeConvertHTML.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/unicodeConvertText.py \ + debian/khmerconverter/usr/share/khmerconverter/modules/unicodeConvertOdt.py + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGELOG.TXT + dh_installdocs + dh_installman + dh_installmenu + dh_desktop + dh_python2 + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- khmerconverter-1.4.orig/debian/watch +++ khmerconverter-1.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/khmer/khmerconverter([\d\.]+)\.tar\.gz