debian/0000775000000000000000000000000012316540656007200 5ustar debian/source/0000775000000000000000000000000012150427334010471 5ustar debian/source/format0000664000000000000000000000001411342423357011702 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000735512150416303011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: PyStemmer Upstream-Contact: Richard Boulton Source: http://snowball.tartarus.org/ Comment: Repackaged: Removed bundled libstemmer_c from source, as we build against Debian's libstemmer shared library. libstemmer_c was generated from Snowball source, but the source wasn't included, violating DFSG #2. Files: * Copyright: 2006, Richard Boulton License: Expat Comment: It was inspired by an earlier implementation of PyStemmer (version 0.10, which was copyright (c) 2001, Andreas Jung, and also licensed under the MIT license, but no portions of which remain in this package, and had a different API). . Both Andreas Jung's implementation and this implementation are covered by the MIT license. Files: sampledata/englishvoc.txt Copyright: 2001-2006, Dr Martin Porter and Richard Boulton License: 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. Neither the name of the Snowball project 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 OWNER 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. Files: sampledata/puttydoc.txt Copyright: 1997-2006, Simon Tatham Portions copyright Robert de Bath, Joris van Rantwijk, Delian Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry, Justin Bradford, Ben Harris, Malcolm Smith, Ahmad Khalifa, Markus Kuhn, and CORE SDI S.A. License: Expat Files: debian/* Copyright: 2010-2013, Stefano Rivera License: Expat 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 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. debian/changelog0000664000000000000000000000432112316540656011052 0ustar pystemmer (1.3.0+dfsg-1build2) trusty; urgency=medium * No change rebuild to drop python3.3 compiled extension. -- Dimitri John Ledkov Tue, 01 Apr 2014 14:39:58 +0100 pystemmer (1.3.0+dfsg-1build1) trusty; urgency=medium * Rebuild for python3.4 as a supported python version. -- Matthias Klose Sat, 04 Jan 2014 19:32:29 +0000 pystemmer (1.3.0+dfsg-1) unstable; urgency=low [ Stefano Rivera ] * New upstream release. * Refresh patches. * Drop test-exit-code.diff, superseded upstream. * Use CFLAGS, CPPFLAGS, and LDFLAGS from dpkg-buildflags, to pick up hardening flags. * Bump Standards-Version to 3.9.4. - Bump debhelper B-D to >= 8.1, for build-{arch,indep} support. * Bump debhelper compat level to 8. * Bump machine readable copyright format to 1.0. * Re-licence packaging under Expat. * Switch debian/watch URL to https. * Rename get-orig-source target to get-packaged-orig-source, it doesn't meet the policy requirements for get-orig-source. * Add autopkgtests. [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Stefano Rivera Sun, 26 May 2013 17:48:42 +0200 pystemmer (1.2.0+dfsg-1) unstable; urgency=low * New upstream release. - Uses Cython instead of Pyrex - Python3 support. * Build python3 packages. * Split documentation into python-stemmer-doc. * Build-Depend on python-docutils for RST support in epydoc. * Use py_builddir_sh macro from python.mk. - Bump python B-D to >= 2.6.6-14~. * Install .egg-info -- Stefano Rivera Sat, 10 Sep 2011 22:02:24 +0200 pystemmer (1.1.0+dfsg-2) unstable; urgency=low * Forwarded test-exit-code.diff * Switch to dh_python2. - Use X-Python-Version. BD on python >= 2.6.5-13. * Update my e-mail address. * Bump Standards-Version to 3.9.2, no changes needed. * Update copyright format. * Wrap and sort *Depends. * Correct DEP3 headers (first line of Description is the subject). -- Stefano Rivera Sun, 17 Apr 2011 23:00:55 +0200 pystemmer (1.1.0+dfsg-1) unstable; urgency=low * Initial release (Closes: #375441) -- Stefano Rivera Sun, 14 Mar 2010 16:31:11 +0200 debian/control0000664000000000000000000001173712316540656010614 0ustar Source: pystemmer Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Stefano Rivera Build-Depends: cython-dbg, debhelper (>= 8.1), dpkg-dev (>= 1.15.7~), libstemmer-dev, python-all-dbg, python-all-dev (>= 2.6.6-14~), python-docutils, python-epydoc, python3-all-dbg, python3-all-dev (>= 3.1.2-6~) X-Python-Version: >= 2.4 X-Python3-Version: >= 3.0 XS-Testsuite: autopkgtest Standards-Version: 3.9.4 Homepage: http://snowball.tartarus.org/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pystemmer/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pystemmer/trunk/ Package: python-stemmer Architecture: any Suggests: python-stemmer-doc Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Description: Python bindings for libstemmer - snowball stemming algorithms PyStemmer provides access to efficient algorithms for calculating a "stemmed" form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. This is most useful in building search engines and information retrieval software; for example, a search with stemming enabled should be able to find a document containing "cycling" given the query "cycles". . PyStemmer provides algorithms for several (mainly European) languages, by wrapping the libstemmer library from the Snowball project in a Python module. . It also provides access to the classic Porter stemming algorithm for English: although this has been superseded by an improved algorithm, the original algorithm may be of interest to information retrieval researchers wishing to reproduce results of earlier experiments. Package: python-stemmer-dbg Section: debug Priority: extra Architecture: any Depends: python-stemmer (= ${binary:Version}), ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Recommends: python-dbg Description: Python bindings for libstemmer (debug extension) PyStemmer provides access to efficient algorithms for calculating a "stemmed" form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. . PyStemmer provides algorithms for several (mainly European) languages, by wrapping the libstemmer library from the Snowball project in a Python module. . This package contains the extensions built for the Python debug interpreter. Package: python-stemmer-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Replaces: python-stemmer (<< 1.2.0) Description: Python bindings for libstemmer (documentation) PyStemmer provides access to efficient algorithms for calculating a "stemmed" form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. . PyStemmer provides algorithms for several (mainly European) languages, by wrapping the libstemmer library from the Snowball project in a Python module. . This package contains the documentation for the extension. Package: python3-stemmer Architecture: any Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Suggests: python-stemmer-doc Description: Python 3 bindings for libstemmer - snowball stemming algorithms PyStemmer provides access to efficient algorithms for calculating a "stemmed" form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. This is most useful in building search engines and information retrieval software; for example, a search with stemming enabled should be able to find a document containing "cycling" given the query "cycles". . PyStemmer provides algorithms for several (mainly European) languages, by wrapping the libstemmer library from the Snowball project in a Python 3 module. . It also provides access to the classic Porter stemming algorithm for English: although this has been superseded by an improved algorithm, the original algorithm may be of interest to information retrieval researchers wishing to reproduce results of earlier experiments. Package: python3-stemmer-dbg Section: debug Priority: extra Architecture: any Depends: python3-stemmer (= ${binary:Version}), ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Recommends: python3-dbg Description: Python 3 bindings for libstemmer (debug extension) PyStemmer provides access to efficient algorithms for calculating a "stemmed" form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. . PyStemmer provides algorithms for several (mainly European) languages, by wrapping the libstemmer library from the Snowball project in a Python 3 module. . This package contains the extensions built for the Python 3 debug interpreter. debian/python-stemmer-doc.doc-base0000664000000000000000000000046711624274662014346 0ustar Document: pystemmer Title: PyStemmer API Documentation Author: Richard Boulton Abstract: Python bindings for libstemmer - snowball stemming algorithms Section: Programming/Python Format: HTML Index: /usr/share/doc/python-stemmer-doc/html/api/index.html Files: /usr/share/doc/python-stemmer-doc/html/api/*.html debian/rules0000775000000000000000000000510112150417645010252 0ustar #!/usr/bin/make -f include /usr/share/python/python.mk export CFLAGS=$(shell dpkg-buildflags --get CFLAGS) export CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS) export LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS) PYVERS := $(shell pyversions -vr) PY3VERS := $(shell py3versions -vr) %: dh $@ --with python2,python3 override_dh_auto_build: # Rebuild from Cython source rm -f src/*.c set -e -x; \ for py in $(PYVERS) $(PY3VERS); do \ python$$py setup.py build; \ python$$py-dbg setup.py build; \ done mkdir -p debian/html/api epydoc --html -o debian/html/api --name="PyStemmer" \ --url=http://snowball.tartarus.org/ \ build/lib.*-$(shell pyversions -vd)/Stemmer.so override_dh_auto_clean: rm -rf build debian/html rm -f src/*.c override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) set -e -x; \ for py in $(PYVERS) $(PY3VERS); do \ PYTHONPATH=$(call py_builddir_sh,$$py) \ python$$py runtests.py; \ PYTHONPATH=$(call py_builddir_sh,$$py-dbg) \ python$$py-dbg runtests.py; \ done endif override_dh_auto_install: set -e -x; \ for py in $(PYVERS); do \ python$$py setup.py install --skip-build --root debian/python-stemmer \ --install-layout deb; \ python$$py-dbg setup.py install --skip-build --root debian/python-stemmer-dbg \ --install-layout deb; \ done set -e -x; \ for py in $(PY3VERS); do \ python$$py setup.py install --skip-build --root debian/python3-stemmer \ --install-layout deb; \ python$$py-dbg setup.py install --skip-build --root debian/python3-stemmer-dbg \ --install-layout deb; \ done override_dh_compress: dh_compress -X.js override_dh_strip: dh_strip -p python-stemmer -p python-stemmer-dbg --dbg-package=python-stemmer-dbg dh_strip -p python3-stemmer -p python3-stemmer-dbg --dbg-package=python3-stemmer-dbg override_dh_installdocs: dh_installdocs -p python-stemmer -p python-stemmer-dbg --link-doc=python-stemmer dh_installdocs -p python3-stemmer -p python3-stemmer-dbg --link-doc=python3-stemmer dh_installdocs -p python-stemmer-doc get-packaged-orig-source: set -e; \ VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p'); \ uscan --noconf --force-download --rename --download-version=$$VER --destdir=.; \ tar -x --exclude=libstemmer_c -f pystemmer_$$VER.orig.tar.gz; \ rm -f pystemmer_$$VER.orig.tar.gz; \ GZIP=--best tar -cz --owner root --group root --mode a+rX \ -f pystemmer_$$VER+dfsg.orig.tar.gz PyStemmer-$$VER; \ rm -rf PyStemmer-$$VER debian/watch0000664000000000000000000000016712150417033010221 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ https://pypi.python.org/packages/source/P/PyStemmer/PyStemmer-(.*)\.tar.gz debian/patches/0000775000000000000000000000000012150427334010620 5ustar debian/patches/link-libstemmer.diff0000664000000000000000000000323512150420620014542 0ustar Description: Use Debian's libstemmer. Dynamically Link against libstemmer rather than using included libstemmer_c sources. Author: Stefano Rivera Forwarded: not-needed Last-Update: 2011-08-21 --- a/setup.py +++ b/setup.py @@ -9,31 +9,14 @@ except: have_pyrex = 0 -# Directory which libstemmer sources are unpacked in. -library_dir = 'libstemmer_c' - -# Directories in libstemmer which contain libstemmer sources (ie, not -# examples, etc). -library_core_dirs = ('src_c', 'runtime', 'libstemmer', 'include') - -# Read the manifest of files in libstemmer. -src_files = [os.path.join(library_dir, line.strip().replace(' \\', '')) - for line in open(os.path.join(library_dir, 'mkinc_utf8.mak')) - if len(line.strip()) > 2 - and (line.strip().endswith('.c \\') or line.strip().endswith('.c')) - and os.path.split(line.strip().replace(' \\', ''))[0] in library_core_dirs] - -# Set the include path to include libstemmer. -include_dirs = ('src', os.path.join(library_dir, 'include')) - if have_pyrex: # Add the pyrex sources, and a special rule so distutils knows how to # use them. - src_files.append('src/Stemmer.pyx') + src_files = ['src/Stemmer.pyx'] cmdclass = {'build_ext': build_ext} else: # Add just the C sources. - src_files.append('src/Stemmer.c') + src_files = ['src/Stemmer.c'] cmdclass = {} long_description = r""" @@ -114,7 +97,7 @@ ], ext_modules = [Extension('Stemmer', src_files, - include_dirs = include_dirs)], + libraries=['stemmer'])], cmdclass = cmdclass ) debian/patches/series0000664000000000000000000000002512150420005012016 0ustar link-libstemmer.diff debian/compat0000664000000000000000000000000212150415547010372 0ustar 8 debian/tests/0000775000000000000000000000000012150427334010333 5ustar debian/tests/unittests0000775000000000000000000000027112150426101012312 0ustar #!/bin/sh set -efu pythons="$(pyversions -r 2> /dev/null)" cp -a docs runtests.py "$ADTTMP" cd "$ADTTMP" for python in $pythons; do echo "=== $python ===" $python runtests.py done debian/tests/control0000664000000000000000000000015612150426046011737 0ustar Tests: unittests Depends: python-stemmer, python-all Tests: unittests3 Depends: python3-stemmer, python3-all debian/tests/unittests30000775000000000000000000000027212150426105012402 0ustar #!/bin/sh set -efu pythons="$(py3versions -r 2> /dev/null)" cp -a docs runtests.py "$ADTTMP" cd "$ADTTMP" for python in $pythons; do echo "=== $python ===" $python runtests.py done debian/python-stemmer-doc.docs0000664000000000000000000000004112150423466013576 0ustar docs/quickstart*.txt debian/html