debian/0000755000000000000000000000000012145174005007165 5ustar debian/python-gtkspellcheck-doc.doc-base0000644000000000000000000000114312013730753015472 0ustar Document: pygtkspellcheck Title: Python GTK+ Spellchecker's documentation Author: Maximilian Köhl & Carlos Jenkins Abstract: pygtkspellcheck is a spellchecking library written in Python for Gtk+ based on Enchant It supports both Gtk's Python bindings, PyGObject and PyGtk, and for both Python 2 and 3 with automatic switching and binding autodetection. For automatic translation of the user interface it can use GEdit's translation files. Section: Programming/Python Format: html Index: /usr/share/doc/python-gtkspellcheck-doc/html/index.html Files: /usr/share/doc/python-gtkspellcheck-doc/html/*.html debian/python-gtkspellcheck-doc.examples0000644000000000000000000000006612013730753015636 0ustar examples/simple_pygobject.py examples/simple_pygtk.py debian/rules0000755000000000000000000000176012013730753010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 %: dh $@ --with python2,python3,sphinxdoc override_dh_auto_build: dh_auto_build # Python3 set -ex; for python in $(shell py3versions -r); do \ $$python setup.py build; \ done; override_dh_auto_install: dh_auto_install # Python3 set -ex; for python in $(shell py3versions -r); do \ $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ done; # l10n mkdir -p $(CURDIR)/debian/tmp/usr/share/ set -ex; for python in $(shell py3versions -r); do \ $$python -B $(CURDIR)/l10n/compile_mo.py; \ done; mv $(CURDIR)/l10n/mo $(CURDIR)/debian/tmp/usr/share/locale3 set -ex; for python in $(shell pyversions -r); do \ $$python -B $(CURDIR)/l10n/compile_mo.py; \ done; mv $(CURDIR)/l10n/mo $(CURDIR)/debian/tmp/usr/share/locale2 override_dh_installdocs: python setup.py build_sphinx dh_installdocs override_dh_auto_clean: dh_auto_clean rm -rf build *.egg-info debian/control0000644000000000000000000000413312145171104010566 0ustar Source: pygtkspellcheck Section: python Priority: optional Maintainer: Carlos Miguel Jenkins Pérez Build-Depends: debhelper (>= 8), python (>= 2.7), python-sphinx, python-enchant, python3-all, python3-sphinx, python3-enchant Standards-Version: 3.9.3 Homepage: http://pygtkspellcheck.readthedocs.org/ Vcs-Browser: https://github.com/koehlma/pygtkspellcheck Vcs-Git: git://github.com/koehlma/pygtkspellcheck.git X-Python-Version: >= 2.7 X-Python3-Version: >= 3.2 Package: python-gtkspellcheck Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-enchant, python-gtk2 | python-gi Recommends: iso-codes Description: spellchecking library written in Python for Gtk based on Enchant It supports both Gtk's Python bindings, PyGObject and PyGtk, and for both Python 2 and 3 with automatic switching and binding autodetection. For automatic translation of the user interface it can use GEdit's translation files. . This package contains the Python 2 version with support for PyGtk and PyGObject. Package: python3-gtkspellcheck Architecture: all Depends: ${python3:Depends}, ${misc:Depends}, python3-enchant, python3-gi Recommends: iso-codes, python-gtkspellcheck-docs Description: spellchecking library written in Python for Gtk based on Enchant It supports both Gtk's Python bindings, PyGObject and PyGtk, and for both Python 2 and 3 with automatic switching and binding autodetection. For automatic translation of the user interface it can use GEdit's translation files. . This package contains the Python 3 version with support for PyGObject. Package: python-gtkspellcheck-doc Architecture: all Section: doc Depends: ${sphinxdoc:Depends}, ${misc:Depends} Description: Python GTK Spellcheck common documentation It supports both Gtk's Python bindings, PyGObject and PyGtk, and for both Python 2 and 3 with automatic switching and binding autodetection. For automatic translation of the user interface it can use GEdit's translation files. . This is the common documentation package. debian/source/0000755000000000000000000000000012013730753010467 5ustar debian/source/format0000644000000000000000000000001412013730753011675 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000702212034260007011114 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: PyGtkSpellCheck Upstream-Contact: Carlos Jenkins Source: https://github.com/koehlma/pygtkspellcheck Files: * Copyright: 2012, Maximilian Köhl and Carlos Jenkins License: GPL-3.0+ Files: debian/* Copyright: 2012, Carlos Jenkins License: GPL-2.0+ Files: l10n/pygtkspellcheck/*.po Copyright: 2012, their respective authors. License: BSD-3-clause License: GPL-3.0+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian GNU/Linux systems, the complete text of the GNU General Public License version 3 can be found in '/usr/share/common-licenses/GPL-3'. License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package 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 General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian GNU/Linux systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. 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: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * 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. . * Neither the name of this program nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT HOLDER OR CONTRIBUTORS 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. debian/compat0000644000000000000000000000000212013730753010365 0ustar 8 debian/changelog0000644000000000000000000000073712145173555011057 0ustar pygtkspellcheck (3.0-1.1) unstable; urgency=low * Non-maintainer upload. * debian/control: Build-Depend on python3-all instead of python3 to fix building with multiple supported Python 3 versions. (Closes: #707172) -- Sebastian Ramacher Thu, 16 May 2013 17:07:47 +0200 pygtkspellcheck (3.0-1) unstable; urgency=low * Initial release. Closes: 681528 -- Carlos Miguel Jenkins Pérez Sat, 18 Aug 2012 09:09:23 -0600 debian/patches/0000755000000000000000000000000012033375142010615 5ustar debian/patches/avoid-locales-conflict.diff0000644000000000000000000000260212013730753015771 0ustar --- a/l10n/compile_mo.py +++ b/l10n/compile_mo.py @@ -31,7 +31,7 @@ po_file = os.path.join(po_dir, lang + '.po') lang_dir = os.path.join(locale_dir, lang) mo_dir = os.path.join(lang_dir, 'LC_MESSAGES') - mo_file = os.path.join(mo_dir, APP + '.mo') + mo_file = os.path.join(mo_dir, APP + str(sys.version_info.major) + '.mo') if not os.path.exists(mo_dir): os.makedirs(mo_dir) --- a/src/gtkspellcheck/oxt_import.py +++ b/src/gtkspellcheck/oxt_import.py @@ -27,6 +27,7 @@ """ import os +import sys import xml.dom.minidom import shutil import logging @@ -37,7 +38,7 @@ __all__ = ['deflate_oxt'] logger = logging.getLogger(__name__) -_ = gettext.translation('pygtkspellcheck', fallback=True).gettext +_ = gettext.translation('pygtkspellcheck' + str(sys.version_info.major), fallback=True).gettext def deflate_oxt(oxt_path, extract_path, override=False, move_path=None): """ --- a/src/gtkspellcheck/spellcheck.py +++ b/src/gtkspellcheck/spellcheck.py @@ -70,7 +70,7 @@ _gedit = gettext.translation('gedit', fallback=True).gettext _ = lambda message: _gedit(_GEDIT_MAP[message]).replace('_', '') else: - _ = gettext.translation('pygtkspellcheck', fallback=True).gettext + _ = gettext.translation('pygtkspellcheck' + str(sys.version_info.major), fallback=True).gettext class SpellChecker(object): """ debian/patches/series0000644000000000000000000000003412013730753012030 0ustar avoid-locales-conflict.diff debian/python-gtkspellcheck-doc.docs0000644000000000000000000000003412013730753014743 0ustar README.md build/sphinx/html debian/python-gtkspellcheck.docs0000644000000000000000000000001212013730753014174 0ustar README.md debian/python3-gtkspellcheck.install0000644000000000000000000000006512013730753015005 0ustar usr/lib/python3 usr/share/locale3/* usr/share/locale debian/python3-gtkspellcheck.docs0000644000000000000000000000001212013730753014257 0ustar README.md debian/python-gtkspellcheck.install0000644000000000000000000000006612013730753014723 0ustar usr/lib/python2* usr/share/locale2/* usr/share/locale