[Python-modules-commits] r23184 - in packages/python-dawg/trunk (13 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Tue Dec 18 22:44:11 UTC 2012


    Date: Tuesday, December 18, 2012 @ 22:44:09
  Author: jwilk
Revision: 23184

[svn-inject] Applying Debian modifications (0.5.1-1) to trunk

Added:
  packages/python-dawg/trunk/debian/
  packages/python-dawg/trunk/debian/changelog
  packages/python-dawg/trunk/debian/compat
  packages/python-dawg/trunk/debian/control
  packages/python-dawg/trunk/debian/copyright
  packages/python-dawg/trunk/debian/patches/
  packages/python-dawg/trunk/debian/patches/series
  packages/python-dawg/trunk/debian/patches/use-system-libraries.diff
  packages/python-dawg/trunk/debian/rules
  packages/python-dawg/trunk/debian/source/
  packages/python-dawg/trunk/debian/source/format
  packages/python-dawg/trunk/debian/source/options
  packages/python-dawg/trunk/debian/watch


Property changes on: packages/python-dawg/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/python-dawg/trunk/debian/changelog
===================================================================
--- packages/python-dawg/trunk/debian/changelog	                        (rev 0)
+++ packages/python-dawg/trunk/debian/changelog	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,5 @@
+python-dawg (0.5.1-1) UNRELEASED; urgency=low
+
+  * Initial release (closes: #695289).
+
+ -- Jakub Wilk <jwilk at debian.org>  Thu, 29 Nov 2012 20:58:38 +0100

Added: packages/python-dawg/trunk/debian/compat
===================================================================
--- packages/python-dawg/trunk/debian/compat	                        (rev 0)
+++ packages/python-dawg/trunk/debian/compat	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1 @@
+7

Added: packages/python-dawg/trunk/debian/control
===================================================================
--- packages/python-dawg/trunk/debian/control	                        (rev 0)
+++ packages/python-dawg/trunk/debian/control	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,31 @@
+Source: python-dawg
+Section: python
+Priority: optional
+Maintainer: Jakub Wilk <jwilk at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-dawg/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-dawg/trunk/
+Build-Depends: debhelper (>= 7),
+ dpkg-dev (>= 1.15.7~),
+ python-all (>= 2.6), python-support,
+ python3-all (>= 3.1.2-7~),
+ libdawgdic-dev,
+ libb64-dev,
+XS-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+Standards-Version: 3.9.4
+Homepage: http://pypi.python.org/pypi/DAWG
+
+Package: python-dawg
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}
+Description: Python library for DAWG dictionaries
+ python-dawg is a Python library for building and accessing dictionaries
+ implemented with directed acyclic word graphs (DAWGs).
+
+Package: python3-dawg
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, ${python3:Depends}
+Description: Python 3 library for DAWG dictionaries
+ python3-dawg is a Python 3 library for building and accessing dictionaries
+ implemented with directed acyclic word graphs (DAWGs).

Added: packages/python-dawg/trunk/debian/copyright
===================================================================
--- packages/python-dawg/trunk/debian/copyright	                        (rev 0)
+++ packages/python-dawg/trunk/debian/copyright	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: DAWG
+Upstream-Contact: Mikhail Korobov <kmike84 at gmail.com>
+Source: http://pypi.python.org/pypi/DAWG
+
+Files: *
+Copyright:
+ 2012, Mikhail Korobov <kmike84 at gmail.com>
+License: Expat
+
+Files: debian/*
+Copyright:
+ 2012, Jakub Wilk <jwilk at debian.org>
+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
+ AUTHORS OR 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.

Added: packages/python-dawg/trunk/debian/patches/series
===================================================================
--- packages/python-dawg/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-dawg/trunk/debian/patches/series	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1 @@
+use-system-libraries.diff

Added: packages/python-dawg/trunk/debian/patches/use-system-libraries.diff
===================================================================
--- packages/python-dawg/trunk/debian/patches/use-system-libraries.diff	                        (rev 0)
+++ packages/python-dawg/trunk/debian/patches/use-system-libraries.diff	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,150 @@
+Description: use system libraries instead of the embedded copies
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-needed
+Last-Update: 2012-12-06
+
+--- a/src/_base_types.pxd
++++ b/src/_base_types.pxd
+@@ -1,4 +1,4 @@
+-cdef extern from "../lib/dawgdic/base-types.h" namespace "dawgdic":
++cdef extern from "<dawgdic/base-types.h>" namespace "dawgdic":
+     # 8-bit characters.
+     ctypedef char CharType
+     ctypedef unsigned char UCharType
+--- a/src/_completer.pxd
++++ b/src/_completer.pxd
+@@ -3,7 +3,7 @@
+ from _dictionary cimport Dictionary
+ from _guide cimport Guide
+ 
+-cdef extern from "../lib/dawgdic/completer.h" namespace "dawgdic" nogil:
++cdef extern from "<dawgdic/completer.h>" namespace "dawgdic" nogil:
+     cdef cppclass Completer:
+         Completer()
+         Completer(Dictionary &dic, Guide &guide)
+--- a/src/_dawg.pxd
++++ b/src/_dawg.pxd
+@@ -1,6 +1,6 @@
+ from _base_types cimport BaseType, SizeType, ValueType, UCharType
+ 
+-cdef extern from "../lib/dawgdic/dawg.h" namespace "dawgdic":
++cdef extern from "<dawgdic/dawg.h>" namespace "dawgdic":
+ 
+     cdef cppclass Dawg:
+         Dawg()
+--- a/src/_dawg_builder.pxd
++++ b/src/_dawg_builder.pxd
+@@ -1,7 +1,7 @@
+ from _base_types cimport BaseType, SizeType, ValueType, UCharType, CharType
+ from _dawg cimport Dawg
+ 
+-cdef extern from "../lib/dawgdic/dawg-builder.h" namespace "dawgdic":
++cdef extern from "<dawgdic/dawg-builder.h>" namespace "dawgdic":
+     cdef cppclass DawgBuilder:
+ 
+         DawgBuilder() nogil  #(SizeType initial_hash_table_size = DEFAULT_INITIAL_HASH_TABLE_SIZE)
+--- a/src/_dictionary.pxd
++++ b/src/_dictionary.pxd
+@@ -2,7 +2,7 @@
+ from _dictionary_unit cimport DictionaryUnit
+ from iostream cimport istream, ostream
+ 
+-cdef extern from "../lib/dawgdic/dictionary.h" namespace "dawgdic":
++cdef extern from "<dawgdic/dictionary.h>" namespace "dawgdic":
+     cdef cppclass Dictionary:
+ 
+         Dictionary() nogil
+--- a/src/_dictionary_builder.pxd
++++ b/src/_dictionary_builder.pxd
+@@ -2,6 +2,6 @@
+ from _dawg cimport Dawg
+ from _dictionary cimport Dictionary
+ 
+-cdef extern from "../lib/dawgdic/dictionary-builder.h" namespace "dawgdic::DictionaryBuilder":
++cdef extern from "<dawgdic/dictionary-builder.h>" namespace "dawgdic::DictionaryBuilder":
+     cdef bint Build (Dawg &dawg, Dictionary *dic) nogil
+ 
+--- a/src/_dictionary_unit.pxd
++++ b/src/_dictionary_unit.pxd
+@@ -1,6 +1,6 @@
+ from _base_types cimport BaseType, SizeType, ValueType, UCharType, CharType
+ 
+-cdef extern from "../lib/dawgdic/dictionary-unit.h" namespace "dawgdic":
++cdef extern from "<dawgdic/dictionary-unit.h>" namespace "dawgdic":
+     cdef cppclass DictionaryUnit:
+ 
+         DictionaryUnit() nogil
+--- a/src/_guide.pxd
++++ b/src/_guide.pxd
+@@ -2,7 +2,7 @@
+ from _guide_unit cimport GuideUnit
+ from iostream cimport istream, ostream
+ 
+-cdef extern from "../lib/dawgdic/guide.h" namespace "dawgdic":
++cdef extern from "<dawgdic/guide.h>" namespace "dawgdic":
+     cdef cppclass Guide:
+ 
+         Guide()
+--- a/src/_guide_builder.pxd
++++ b/src/_guide_builder.pxd
+@@ -3,6 +3,6 @@
+ from _dictionary cimport Dictionary
+ from _guide cimport Guide
+ 
+-cdef extern from "../lib/dawgdic/guide-builder.h" namespace "dawgdic::GuideBuilder":
++cdef extern from "<dawgdic/guide-builder.h>" namespace "dawgdic::GuideBuilder":
+     cdef bint Build (Dawg &dawg, Dictionary &dic, Guide* guide) nogil
+ 
+--- a/src/_guide_unit.pxd
++++ b/src/_guide_unit.pxd
+@@ -1,6 +1,6 @@
+ from _base_types cimport BaseType, SizeType, ValueType, UCharType, CharType
+ 
+-cdef extern from "../lib/dawgdic/guide-unit.h" namespace "dawgdic":
++cdef extern from "<dawgdic/guide-unit.h>" namespace "dawgdic":
+     cdef cppclass GuideUnit:
+         GuideUnit() nogil
+ 
+--- a/src/b64_decode.pxd
++++ b/src/b64_decode.pxd
+@@ -1,12 +1,11 @@
+ from iostream cimport istream, ostream
+ 
+-cdef extern from "../lib/b64/decode.h" namespace "base64":
++cdef extern from "<b64/decode.h>" namespace "base64":
+ 
+     cdef cppclass decoder:
+         decoder()
+         decoder(int buffersize_in)
+ 
+         int decode(char* code_in, int length_in, char* plaintext_out)
+-        void init()
+ 
+         void decode(istream istream_in, ostream ostream_in)
+\ No newline at end of file
+--- a/src/dawg.pyx
++++ b/src/dawg.pyx
+@@ -507,7 +507,6 @@
+ 
+         self.completer.Start(index)
+         while self.completer.Next():
+-            _b64_decoder.init()
+             _len = _b64_decoder.decode(
+                 self.completer.key(),
+                 self.completer.length(),
+@@ -554,7 +553,6 @@
+             raw_value = &(raw_key[i])
+             raw_value_len = self.completer.length() - i
+ 
+-            _b64_decoder.init()
+             _len = _b64_decoder.decode(raw_value, raw_value_len, _b64_decoder_storage)
+             value = _b64_decoder_storage[:_len]
+ 
+@@ -593,7 +591,6 @@
+             raw_value = &(raw_key[i])
+             raw_value_len = self.completer.length() - i
+ 
+-            _b64_decoder.init()
+             _len = _b64_decoder.decode(raw_value, raw_value_len, _b64_decoder_storage)
+             value = _b64_decoder_storage[:_len]
+ 

Added: packages/python-dawg/trunk/debian/rules
===================================================================
--- packages/python-dawg/trunk/debian/rules	                        (rev 0)
+++ packages/python-dawg/trunk/debian/rules	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+
+export PYTHONWARNINGS=d
+export PYTHONHASHSEED=random
+
+export CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+
+parallel = -P$(or $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))),1)
+pythons = $(shell pyversions -r) $(shell py3versions -r)
+python_all = echo -n $(pythons) | xargs $(parallel) -d ' ' -t -I {} env {}
+
+# clean
+# =====
+
+.PHONY: clean
+clean:
+	dh_testdir
+	dh_clean
+	rm -rf build
+
+# build
+# =====
+
+.PHONY: build build-indep build-arch
+build build-arch: build/cython-stamp
+	dh_testdir
+	rm -rf lib/
+	$(python_all) setup.py build
+
+build/cython-stamp:
+	dh_testdir
+	mkdir -p build/
+	rm -f src/*.cpp
+	cython --cplus src/*.pyx
+	touch $(@)
+
+# binary
+# ======
+
+.PHONY: binary binary-indep binary-arch
+binary binary-arch: $(addprefix build/install-stamp-,$(pyversions))
+	dh_testdir
+	dh_testroot
+	dh_prep
+	$(python_all) setup.py install --prefix=/usr --root=debian/tmp/
+	dh_install -p python-dawg usr/lib/python2*
+	dh_install -p python3-dawg usr/lib/python3*
+	dh_installdocs README.rst
+	dh_installchangelogs
+	dh_compress
+	dh_fixperms
+	dh_strip
+	dh_shlibdeps
+	dh_pysupport -p python-dawg
+	dh_python3 -p python3-dawg
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+	
+# vim:ts=4 sw=4 noet


Property changes on: packages/python-dawg/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/python-dawg/trunk/debian/source/format
===================================================================
--- packages/python-dawg/trunk/debian/source/format	                        (rev 0)
+++ packages/python-dawg/trunk/debian/source/format	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/python-dawg/trunk/debian/source/options
===================================================================
--- packages/python-dawg/trunk/debian/source/options	                        (rev 0)
+++ packages/python-dawg/trunk/debian/source/options	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,2 @@
+extend-diff-ignore = "^src/.+[.]cpp$"
+extend-diff-ignore = "^lib/"

Added: packages/python-dawg/trunk/debian/watch
===================================================================
--- packages/python-dawg/trunk/debian/watch	                        (rev 0)
+++ packages/python-dawg/trunk/debian/watch	2012-12-18 22:44:09 UTC (rev 23184)
@@ -0,0 +1,3 @@
+version=3
+http://pypi.python.org/packages/source/D/DAWG/DAWG-([0-9.]+)[.]tar[.]gz$
+




More information about the Python-modules-commits mailing list