[Python-modules-commits] r18095 - in packages/python-pycaptcha/trunk (16 files)
osallou-guest at users.alioth.debian.org
osallou-guest at users.alioth.debian.org
Tue Aug 9 07:19:12 UTC 2011
Date: Tuesday, August 9, 2011 @ 07:19:10
Author: osallou-guest
Revision: 18095
[svn-inject] Applying Debian modifications (0.4-1) to trunk
Added:
packages/python-pycaptcha/trunk/debian/
packages/python-pycaptcha/trunk/debian/changelog
packages/python-pycaptcha/trunk/debian/compat
packages/python-pycaptcha/trunk/debian/control
packages/python-pycaptcha/trunk/debian/copyright
packages/python-pycaptcha/trunk/debian/docs
packages/python-pycaptcha/trunk/debian/get-orig-source
packages/python-pycaptcha/trunk/debian/patches/
packages/python-pycaptcha/trunk/debian/patches/change_font_path
packages/python-pycaptcha/trunk/debian/patches/series
packages/python-pycaptcha/trunk/debian/python-pycaptcha.dirs.old
packages/python-pycaptcha/trunk/debian/python-pycaptcha.links.old
packages/python-pycaptcha/trunk/debian/rules
packages/python-pycaptcha/trunk/debian/source/
packages/python-pycaptcha/trunk/debian/source/format
packages/python-pycaptcha/trunk/debian/watch
Property changes on: packages/python-pycaptcha/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/python-pycaptcha/trunk/debian/changelog
===================================================================
--- packages/python-pycaptcha/trunk/debian/changelog (rev 0)
+++ packages/python-pycaptcha/trunk/debian/changelog 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,5 @@
+python-pycaptcha (0.4-1) unstable; urgency=low
+
+ * Initial release (Closes: #637109)
+
+ -- Olivier Sallou <olivier.sallou at irisa.fr> Mon, 08 Aug 2011 14:55:59 +0200
Added: packages/python-pycaptcha/trunk/debian/compat
===================================================================
--- packages/python-pycaptcha/trunk/debian/compat (rev 0)
+++ packages/python-pycaptcha/trunk/debian/compat 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1 @@
+8
Added: packages/python-pycaptcha/trunk/debian/control
===================================================================
--- packages/python-pycaptcha/trunk/debian/control (rev 0)
+++ packages/python-pycaptcha/trunk/debian/control 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,18 @@
+Source: python-pycaptcha
+Section: python
+Priority: optional
+Uploaders: Olivier Sallou <olivier.sallou at irisa.fr>
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 8.0.0),python (>= 2.2), python-imaging (>= 1.1.5)
+Build-Depends-Indep: python-all (>= 2.6.6-3)
+Standards-Version: 3.9.2
+Homepage: http://pypi.python.org/pypi/PyCAPTCHA/0.4
+#Vcs-Git: git://git.debian.org/collab-maint/mobyle.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/mobyle.git;a=summary
+
+Package: python-pycaptcha
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, python-imaging (>= 1.1.5), ttf-bitstream-vera
+Description: collection of Python modules implementing CAPTCHAs
+ This package contains python modules to add some captcha
+ in an application to recognize a human versus a robot.
Added: packages/python-pycaptcha/trunk/debian/copyright
===================================================================
--- packages/python-pycaptcha/trunk/debian/copyright (rev 0)
+++ packages/python-pycaptcha/trunk/debian/copyright 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,106 @@
+Format: http://dep.debian.net/deps/dep5
+Upstream-Name: pycaptcha
+Source: http://pypi.python.org/pypi/PyCAPTCHA/0.4
+
+Files: *
+Copyright: 2004 Micah Dowty
+License:
+ 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.
+
+Files: setup/my_install_data.py
+Copyright: 2000 Rene Liebscher
+License:
+ 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.
+
+
+Files: Captcha/data/fonts/vera/*
+Copyright: 2003 Bitstream, Inc
+License:
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of the fonts accompanying this license ("Fonts") and associated
+ documentation files (the "Font Software"), to reproduce and distribute
+ the Font Software, including without limitation the rights to use,
+ copy, merge, publish, distribute, and/or sell copies of the Font
+ Software, and to permit persons to whom the Font Software is furnished
+ to do so, subject to the following conditions:
+ .
+ The above copyright and trademark notices and this permission notice
+ shall be included in all copies of one or more of the Font Software
+ typefaces.
+ .
+ The Font Software may be modified, altered, or added to, and in
+ particular the designs of glyphs or characters in the Fonts may be
+ modified and additional glyphs or characters may be added to the
+ Fonts, only if the fonts are renamed to names not containing either
+ the words "Bitstream" or the word "Vera".
+ .
+ This License becomes null and void to the extent applicable to Fonts
+ or Font Software that has been modified and is distributed under the
+ "Bitstream Vera" names.
+ .
+ The Font Software may be sold as part of a larger software package but
+ no copy of one or more of the Font Software typefaces may be sold by
+ itself.
+ .
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
+ BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL,
+ OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT
+ SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
+
+
+Files: debian/*
+Copyright: 2011 Olivier Sallou <olivier.sallou at irisa.fr>
+License: GPL-2+
+ 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 systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
Added: packages/python-pycaptcha/trunk/debian/docs
===================================================================
--- packages/python-pycaptcha/trunk/debian/docs (rev 0)
+++ packages/python-pycaptcha/trunk/debian/docs 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,4 @@
+BUGS
+COPYING
+README
+
Added: packages/python-pycaptcha/trunk/debian/get-orig-source
===================================================================
--- packages/python-pycaptcha/trunk/debian/get-orig-source (rev 0)
+++ packages/python-pycaptcha/trunk/debian/get-orig-source 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+PKG=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+VERSION=`uscan --verbose --force-download |
+ grep "Newest version on remote site is .* local version is .*" |
+ head -n 1 |
+ sed "s/Newest version on remote site is \([a-z0-9.]\+\),.*/\1/"`
+
+mkdir -p ../tarballs
+
Property changes on: packages/python-pycaptcha/trunk/debian/get-orig-source
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-pycaptcha/trunk/debian/patches/change_font_path
===================================================================
--- packages/python-pycaptcha/trunk/debian/patches/change_font_path (rev 0)
+++ packages/python-pycaptcha/trunk/debian/patches/change_font_path 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,34 @@
+Author: Olivier Sallou <olivier.sallou at irisa.fr>
+Description: search fonts in Debian font dir
+Last-Update: 2011-08-09
+--- a/Captcha/Visual/Tests.py
++++ b/Captcha/Visual/Tests.py
+@@ -44,7 +44,7 @@
+
+ class AntiSpam(ImageCaptcha):
+ """A fixed-solution CAPTCHA that can be used to hide email addresses or URLs from bots"""
+- fontFactory = Text.FontFactory(20, "vera/VeraBd.ttf")
++ fontFactory = Text.FontFactory(20, "ttf-bitstream-vera/VeraBd.ttf")
+ defaultSize = (512,50)
+
+ def getLayers(self, solution="murray at example.com"):
+--- a/Captcha/Visual/Text.py
++++ b/Captcha/Visual/Text.py
+@@ -19,7 +19,7 @@
+ in that directory will be added.
+ """
+ extensions = [".ttf"]
+- basePath = "fonts"
++ basePath = "/usr/share/fonts/truetype/"
+
+ def __init__(self, sizes, *fileNames):
+ File.RandomFileFactory.__init__(self, *fileNames)
+@@ -38,7 +38,7 @@
+ return (fileName, size)
+
+ # Predefined font factories
+-defaultFontFactory = FontFactory((30, 40), "vera")
++defaultFontFactory = FontFactory((30, 40), "ttf-bitstream-vera")
+
+
+ class TextLayer(Visual.Layer):
Added: packages/python-pycaptcha/trunk/debian/patches/series
===================================================================
--- packages/python-pycaptcha/trunk/debian/patches/series (rev 0)
+++ packages/python-pycaptcha/trunk/debian/patches/series 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1 @@
+change_font_path
Added: packages/python-pycaptcha/trunk/debian/python-pycaptcha.dirs.old
===================================================================
--- packages/python-pycaptcha/trunk/debian/python-pycaptcha.dirs.old (rev 0)
+++ packages/python-pycaptcha/trunk/debian/python-pycaptcha.dirs.old 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1 @@
+usr/share/pyshared/Captcha/data/fonts/vera
Added: packages/python-pycaptcha/trunk/debian/python-pycaptcha.links.old
===================================================================
--- packages/python-pycaptcha/trunk/debian/python-pycaptcha.links.old (rev 0)
+++ packages/python-pycaptcha/trunk/debian/python-pycaptcha.links.old 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,10 @@
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraBd.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraBI.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraIt.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraIt.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBd.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraMoBd.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoBI.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraMoBI.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraMoIt.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraMoIt.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraMono.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraMono.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraSeBd.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraSeBd.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/VeraSe.ttf usr/share/pyshared/Captcha/data/fonts/vera/VeraSe.ttf
+usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf usr/share/pyshared/Captcha/data/fonts/vera/Vera.ttf
Added: packages/python-pycaptcha/trunk/debian/rules
===================================================================
--- packages/python-pycaptcha/trunk/debian/rules (rev 0)
+++ packages/python-pycaptcha/trunk/debian/rules 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
+
+%:
+ dh $@
+
+override_dh_auto_install:
+ dh_auto_install
+ rm -rf debian/python-pycaptcha/usr/lib/python2.6/dist-packages/Captcha/data/fonts
+
+get-orig-source:
+ bash debian/get-orig-source
Property changes on: packages/python-pycaptcha/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-pycaptcha/trunk/debian/source/format
===================================================================
--- packages/python-pycaptcha/trunk/debian/source/format (rev 0)
+++ packages/python-pycaptcha/trunk/debian/source/format 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/python-pycaptcha/trunk/debian/watch
===================================================================
--- packages/python-pycaptcha/trunk/debian/watch (rev 0)
+++ packages/python-pycaptcha/trunk/debian/watch 2011-08-09 07:19:10 UTC (rev 18095)
@@ -0,0 +1,3 @@
+version=3
+
+http://releases.navi.cx/pycaptcha/pycaptcha-(.*)\.tar\.bz2
More information about the Python-modules-commits
mailing list