[Python-modules-commits] [pygtkspellcheck] 03/19: Import pygtkspellcheck_3.0-1.1.dsc

Raphaël Hertzog hertzog at moszumanska.debian.org
Mon Nov 21 21:02:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

hertzog pushed a commit to branch master
in repository pygtkspellcheck.

commit a8d5158ed91b1bfa50b89780dc4bffa7ab020353
Author: Raphaël Hertzog <hertzog at debian.org>
Date:   Mon Nov 21 20:49:15 2016 +0100

    Import pygtkspellcheck_3.0-1.1.dsc
---
 debian/changelog                           | 14 ++++++
 debian/compat                              |  1 +
 debian/control                             | 54 ++++++++++++++++++++
 debian/copyright                           | 80 ++++++++++++++++++++++++++++++
 debian/patches/avoid-locales-conflict.diff | 41 +++++++++++++++
 debian/patches/series                      |  1 +
 debian/python-gtkspellcheck-doc.doc-base   | 13 +++++
 debian/python-gtkspellcheck-doc.docs       |  2 +
 debian/python-gtkspellcheck-doc.examples   |  2 +
 debian/python-gtkspellcheck.docs           |  1 +
 debian/python-gtkspellcheck.install        |  2 +
 debian/python3-gtkspellcheck.docs          |  1 +
 debian/python3-gtkspellcheck.install       |  2 +
 debian/rules                               | 44 ++++++++++++++++
 debian/source/format                       |  1 +
 15 files changed, 259 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7c43ce7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,14 @@
+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 <sramacher at debian.org>  Thu, 16 May 2013 17:07:47 +0200
+
+pygtkspellcheck (3.0-1) unstable; urgency=low
+
+  * Initial release. Closes: 681528
+
+ -- Carlos Miguel Jenkins Pérez <carlos at jenkins.co.cr>  Sat, 18 Aug 2012 09:09:23 -0600
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c2b1430
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,54 @@
+Source: pygtkspellcheck
+Section: python
+Priority: optional
+Maintainer: Carlos Miguel Jenkins Pérez <carlos at jenkins.co.cr>
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9088377
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,80 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PyGtkSpellCheck
+Upstream-Contact: Carlos Jenkins <carlos at jenkins.co.cr>
+Source: https://github.com/koehlma/pygtkspellcheck
+
+Files: *
+Copyright: 2012, Maximilian Köhl <linuxmaxi at googlemail.com> and Carlos Jenkins <carlos at jenkins.co.cr>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2012, Carlos Jenkins <carlos at jenkins.co.cr>
+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 <http://www.gnu.org/licenses/>.
+ .
+ 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 <http://www.gnu.org/licenses/>
+ .
+ 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.
+
diff --git a/debian/patches/avoid-locales-conflict.diff b/debian/patches/avoid-locales-conflict.diff
new file mode 100644
index 0000000..f413a02
--- /dev/null
+++ b/debian/patches/avoid-locales-conflict.diff
@@ -0,0 +1,41 @@
+--- 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):
+     """
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cc75e2f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+avoid-locales-conflict.diff
diff --git a/debian/python-gtkspellcheck-doc.doc-base b/debian/python-gtkspellcheck-doc.doc-base
new file mode 100644
index 0000000..a326b4b
--- /dev/null
+++ b/debian/python-gtkspellcheck-doc.doc-base
@@ -0,0 +1,13 @@
+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
diff --git a/debian/python-gtkspellcheck-doc.docs b/debian/python-gtkspellcheck-doc.docs
new file mode 100644
index 0000000..5ff3dd5
--- /dev/null
+++ b/debian/python-gtkspellcheck-doc.docs
@@ -0,0 +1,2 @@
+README.md
+build/sphinx/html
diff --git a/debian/python-gtkspellcheck-doc.examples b/debian/python-gtkspellcheck-doc.examples
new file mode 100644
index 0000000..5178ff9
--- /dev/null
+++ b/debian/python-gtkspellcheck-doc.examples
@@ -0,0 +1,2 @@
+examples/simple_pygobject.py
+examples/simple_pygtk.py
diff --git a/debian/python-gtkspellcheck.docs b/debian/python-gtkspellcheck.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/python-gtkspellcheck.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/python-gtkspellcheck.install b/debian/python-gtkspellcheck.install
new file mode 100644
index 0000000..bc14eaa
--- /dev/null
+++ b/debian/python-gtkspellcheck.install
@@ -0,0 +1,2 @@
+usr/lib/python2*
+usr/share/locale2/* usr/share/locale
diff --git a/debian/python3-gtkspellcheck.docs b/debian/python3-gtkspellcheck.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/python3-gtkspellcheck.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/python3-gtkspellcheck.install b/debian/python3-gtkspellcheck.install
new file mode 100644
index 0000000..9f39371
--- /dev/null
+++ b/debian/python3-gtkspellcheck.install
@@ -0,0 +1,2 @@
+usr/lib/python3
+usr/share/locale3/* usr/share/locale
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3b7aacb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,44 @@
+#!/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
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pygtkspellcheck.git



More information about the Python-modules-commits mailing list