debian/0000755000000000000000000000000012313576670007200 5ustar debian/python-gearman.libgearman.examples0000644000000000000000000000005612165550572015770 0ustar debian/simpleworker.py debian/simpleclient.py debian/simpleclient.py0000644000000000000000000000032212165550572012235 0ustar #!/usr/bin/python from gearman import libgearman gm_client = libgearman.Client() gm_client.add_server('localhost') result = gm_client.do('print', 'test') #result = gm_client.do('print', 'fail') print result debian/gearman-interface1.dirs0000644000000000000000000000001012165546534013504 0ustar usr/lib debian/docs0000644000000000000000000000002112165546534010045 0ustar NEWS README TODO debian/copyright0000644000000000000000000000550612165551317011135 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: gearman-interface Maintainer: Clint Byrum Source: https://launchpad.net/gearman-interface License: BSD Copyright: 2009, Monty Taylor Copyright (c) 2009 Monty Taylor All rights reserved. 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 University 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 REGENTS 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 REGENTS 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: debian/* Copyright: 2010, Canonical Ltd. Files: debian/simpleworker.py debian/simpleclient.py Copyright: Francois Marier Comments: Public domain status asserted by author at http://feeding.cloud.geek.nz/posts/sample-python-application-using/ as of 2013-07-05. License: PD The above source code is released under the following terms: . To the extent possible under law, Francois Marier has waived all copyright and related or neighboring rights to this sample libgearman Python application. This work is published from: New Zealand. Files: python/test_client.py Copyright: 2009, David Lenwell 2009, Monty Taylor Files: python/test_client_bg.py Copyright: 2009, David Lenwell 2009, Monty Taylor Files: python/test_worker.py Copyright: 2009, David Lenwell 2009, Monty Taylor Files: interface/lua/libgearman.i Copyright: 2008, Sun Microsystems Inc. License: GPL-2+ On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/gearman-interface-dev.install0000644000000000000000000000014412165546534014714 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* usr/lib/*.la usr/share/pkgconfig/* debian/changelog0000644000000000000000000000417612313576670011062 0ustar gearman-interface (0.13.2-3build2) trusty; urgency=medium * No-change rebuild to drop Python 3.3 support. -- Matthias Klose Sun, 23 Mar 2014 15:28:56 +0000 gearman-interface (0.13.2-3build1) trusty; urgency=medium * Rebuild for python3.4 as a supported python version. -- Matthias Klose Sat, 04 Jan 2014 18:31:13 +0000 gearman-interface (0.13.2-3) unstable; urgency=low [ Clint Byrum ] * d/control: Point Vcs-Bzr at packaging branch. (Closes: #596794) * Added examples. Thanks Francois Marier! (Closes: #609754) [ Peter Michael Green ] * use automake 1.11 explicitly to hopefully fix build failure. (Closes: #713304) [ Clint Byrum ] * d/control: Update standards to 3.9.4. No changes necessary. * d/control: Change maintainer email address to debian.org email. -- Clint Byrum Fri, 05 Jul 2013 07:25:25 -0700 gearman-interface (0.13.2-2.1) unstable; urgency=low * Non-maintainer upload. * Fix "FTBFS: SWIG version >= 1.3.31 is required. You have 2.0.4." applying patch from ubuntu (Closes: #631820) * Apply fix for newer libgearman-dev (changes includes) (Closes: #662116) * Fix "python-gearman.libgearman and python-gearman: error when trying to install together" Cherry-picking relevant sections of the attached patch in the bugrport (Closes: #620469) -- Tobias Frost Sun, 04 Mar 2012 12:54:59 +0100 gearman-interface (0.13.2-2) unstable; urgency=low * debian/rules: moving tarball .c files out of the way so swig will rebuild and ship the .py files. (Closes: #593642) * add description of gearman to long description (quiets lintian) * Removing unnecessary build depends on ruby/rubygems * Version build-dep on python3 * change python:Provides to python3:Provides * re-enable dh_usrlocal * Added watch file -- Clint Byrum Thu, 19 Aug 2010 08:25:49 -0700 gearman-interface (0.13.2-1) unstable; urgency=low * Initial release (Closes: #587469) (LP: #600378) * Added uuid-dev to Build-Depends to work around bug 590967. -- Clint Byrum Fri, 30 Jul 2010 09:11:34 -0700 debian/gearman-interface-dev.dirs0000644000000000000000000000002412165546534014204 0ustar usr/lib usr/include debian/simpleworker.py0000644000000000000000000000046612165550572012301 0ustar #!/usr/bin/python from gearman import libgearman def work(job): workload = job.get_workload() if workload == 'fail': job.send_fail() return workload gm_worker = libgearman.Worker() gm_worker.add_server('localhost') gm_worker.add_function('print', work) while True: gm_worker.work() debian/compat0000644000000000000000000000000212165546534010377 0ustar 7 debian/patches/0000755000000000000000000000000012165553550010624 5ustar debian/patches/gearman-includes.patch0000644000000000000000000000142612165546534015072 0ustar Description: Fix include path for current gearmand. Author: Martin Pitt Index: gearman-interface-0.13.2/interface/globals.i =================================================================== --- gearman-interface-0.13.2.orig/interface/globals.i 2009-11-05 20:15:59.000000000 +0100 +++ gearman-interface-0.13.2/interface/globals.i 2012-02-14 08:18:47.911915240 +0100 @@ -39,7 +39,7 @@ %feature("autodoc", "1"); %{ -#include +#include typedef struct gearman_st Gearman; typedef struct gearman_client_st Client; @@ -80,7 +80,7 @@ %ignore gearman_packet_pack_fn; %ignore gearman_packet_unpack_fn; -%include +%include %typedef uint32_t in_port_t; debian/patches/use_ax_pkg_swig.patch0000644000000000000000000001725412165546534015040 0ustar Subject: Use a newer macro for finding and configuring swig 2.x and later Author: Clint Byrum Bug-Debian: http://bugs.debian.org/631820 Origin: http://ftp.wayne.edu/pub/gnu/autoconf-archive/autoconf-archive-2011.04.12.tar.gz Index: debian-packaging/m4/pandora_swig.m4 =================================================================== --- debian-packaging.orig/m4/pandora_swig.m4 2011-07-13 12:43:05.291702515 -0700 +++ debian-packaging/m4/pandora_swig.m4 2011-07-13 12:43:08.671505918 -0700 @@ -11,7 +11,7 @@ AC_DEFUN([PANDORA_SWIG],[ - AC_PROG_SWIG(1.3.31) + AX_PKG_SWIG(1.3.31) AC_DEFINE_UNQUOTED([SWIG_TYPE_TABLE], [$PACKAGE], Index: debian-packaging/m4/ax_pkg_swig.m4 =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ debian-packaging/m4/ax_pkg_swig.m4 2011-07-13 12:43:43.419484698 -0700 @@ -0,0 +1,135 @@ +# =========================================================================== +# http://www.gnu.org/software/autoconf-archive/ax_pkg_swig.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_PKG_SWIG([major.minor.micro], [action-if-found], [action-if-not-found]) +# +# DESCRIPTION +# +# This macro searches for a SWIG installation on your system. If found, +# then SWIG is AC_SUBST'd; if not found, then $SWIG is empty. If SWIG is +# found, then SWIG_LIB is set to the SWIG library path, and AC_SUBST'd. +# +# You can use the optional first argument to check if the version of the +# available SWIG is greater than or equal to the value of the argument. It +# should have the format: N[.N[.N]] (N is a number between 0 and 999. Only +# the first N is mandatory.) If the version argument is given (e.g. +# 1.3.17), AX_PKG_SWIG checks that the swig package is this version number +# or higher. +# +# As usual, action-if-found is executed if SWIG is found, otherwise +# action-if-not-found is executed. +# +# In configure.in, use as: +# +# AX_PKG_SWIG(1.3.17, [], [ AC_MSG_ERROR([SWIG is required to build..]) ]) +# AX_SWIG_ENABLE_CXX +# AX_SWIG_MULTI_MODULE_SUPPORT +# AX_SWIG_PYTHON +# +# LICENSE +# +# Copyright (c) 2008 Sebastian Huber +# Copyright (c) 2008 Alan W. Irwin +# Copyright (c) 2008 Rafael Laboissiere +# Copyright (c) 2008 Andrew Collier +# Copyright (c) 2011 Murray Cumming +# +# 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 2 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 . +# +# As a special exception, the respective Autoconf Macro's copyright owner +# gives unlimited permission to copy, distribute and modify the configure +# scripts that are the output of Autoconf when processing the Macro. You +# need not follow the terms of the GNU General Public License when using +# or distributing such scripts, even though portions of the text of the +# Macro appear in them. The GNU General Public License (GPL) does govern +# all other use of the material that constitutes the Autoconf Macro. +# +# This special exception to the GPL applies to versions of the Autoconf +# Macro released by the Autoconf Archive. When you make and distribute a +# modified version of the Autoconf Macro, you may extend this special +# exception to the GPL to apply to your modified version as well. + +#serial 8 + +AC_DEFUN([AX_PKG_SWIG],[ + # Ubuntu has swig 2.0 as /usr/bin/swig2.0 + AC_PATH_PROGS([SWIG],[swig swig2.0]) + if test -z "$SWIG" ; then + m4_ifval([$3],[$3],[:]) + elif test -n "$1" ; then + AC_MSG_CHECKING([SWIG version]) + [swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`] + AC_MSG_RESULT([$swig_version]) + if test -n "$swig_version" ; then + # Calculate the required version number components + [required=$1] + [required_major=`echo $required | sed 's/[^0-9].*//'`] + if test -z "$required_major" ; then + [required_major=0] + fi + [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] + [required_minor=`echo $required | sed 's/[^0-9].*//'`] + if test -z "$required_minor" ; then + [required_minor=0] + fi + [required=`echo $required | sed 's/[0-9]*[^0-9]//'`] + [required_patch=`echo $required | sed 's/[^0-9].*//'`] + if test -z "$required_patch" ; then + [required_patch=0] + fi + # Calculate the available version number components + [available=$swig_version] + [available_major=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_major" ; then + [available_major=0] + fi + [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] + [available_minor=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_minor" ; then + [available_minor=0] + fi + [available=`echo $available | sed 's/[0-9]*[^0-9]//'`] + [available_patch=`echo $available | sed 's/[^0-9].*//'`] + if test -z "$available_patch" ; then + [available_patch=0] + fi + # Convert the version tuple into a single number for easier comparison. + # Using base 100 should be safe since SWIG internally uses BCD values + # to encode its version number. + required_swig_vernum=`expr $required_major \* 10000 \ + \+ $required_minor \* 100 \+ $required_patch` + available_swig_vernum=`expr $available_major \* 10000 \ + \+ $available_minor \* 100 \+ $available_patch` + + if test $available_swig_vernum -lt $required_swig_vernum; then + AC_MSG_WARN([SWIG version >= $1 is required. You have $swig_version.]) + SWIG='' + m4_ifval([$3],[$3],[]) + else + AC_MSG_CHECKING([for SWIG library]) + SWIG_LIB=`$SWIG -swiglib` + AC_MSG_RESULT([$SWIG_LIB]) + m4_ifval([$2],[$2],[]) + fi + else + AC_MSG_WARN([cannot determine SWIG version]) + SWIG='' + m4_ifval([$3],[$3],[]) + fi + fi + AC_SUBST([SWIG_LIB]) +]) debian/patches/series0000644000000000000000000000005512165546534012045 0ustar use_ax_pkg_swig.patch gearman-includes.patch debian/control0000644000000000000000000000361512165553137010606 0ustar Source: gearman-interface Priority: extra Maintainer: Clint Byrum Build-Depends: python-setuptools (>= 0.6b3), python, python3 (>= 3.1.2-6~), python3-all-dev, python-all-dev, debhelper (>= 7.0.50~), python-support (>= 0.8.4), libgearman-dev (>= 0.27-3), swig, uuid-dev, dh-autoreconf, automake1.11 Standards-Version: 3.9.4 Section: python Homepage: https://launchpad.net/gearman-interface Vcs-Bzr: https://code.launchpad.net/~gearman-developers/gearman-interface/packaging Package: python-gearman.libgearman Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-gearman Provides: ${python:Provides} Description: Python wrapper of libgearman This package contains a Python wrapper of libgearman. . Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages. It can be used in a variety of applications, from high-availability web sites to the transport of database replication events. In other words, it is the nervous system for how distributed processing communicates Package: python3-gearman.libgearman Architecture: any Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${python3:Provides} Description: Python 3 wrapper of libgearman This package contains a Python 3 wrapper of libgearman. . Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages. It can be used in a variety of applications, from high-availability web sites to the transport of database replication events. In other words, it is the nervous system for how distributed processing communicates debian/rules0000755000000000000000000000457112165552076010266 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export AUTOMAKE = automake-1.11 export ACLOCAL = aclocal-1.11 PYVERS=$(shell pyversions -vs) PY3VERS=$(shell py3versions -vs) %: dh $@ --with=python2 --with=python3 --with=autoreconf override_dh_build:: build-python-all build-python3-all build-python-all: build-swig $(PYVERS:%=build-python%) touch $@ build-python3-all: build-swig $(PY3VERS:%=build-python3%) touch $@ build-swig: dh_build touch $@ build-python%: cd python && python$* setup.py build touch $@ build-python3%: cd python3 && python$* setup.py build touch $@ override_dh_install:: build $(PYVERS:%=install-python2%) $(PY3VERS:%=install-python3%) install-python2%: cd python && python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python-gearman.libgearman find $(CURDIR)/debian/python-gearman.libgearman -name '__init__.py' -delete install-python3%: cd python3 && python$* setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-gearman.libgearman override_dh_auto_configure:: dh_auto_configure -- --without-ruby --without-lua # These get rm'd by make clean, but its better this way as # There won't be any complaints about ignoring the deletion since we'll rename these back in clean [ -f python/libgearman.c.orig ] || [ -f python/libgearman.c ] && mv -f python/libgearman.c python/libgearman.c.orig || true [ -f python3/libgearman.c.orig ] || [ -f python3/libgearman.c ] && mv -f python3/libgearman.c python3/libgearman.c.orig || true rm -f python/libgearman.c rm -f python3/libgearman.c override_dh_clean:: dh_clean rm -f build-python* rm -f build-swig rm -rf .deps/ rm -f python/debian rm -rf python/ez_setup.pyc rm -rf python/build/ rm -rf python3/gearman/_libgearman*so rm -rf python3/gearman/__pycache__ rm -rf python/python_libgearman.egg-info/ rm -rf python3/build/ [ ! -f python/libgearman.c.orig ] || mv -f python/libgearman.c.orig python/libgearman.c [ ! -f python3/libgearman.c.orig ] || mv -f python3/libgearman.c.orig python3/libgearman.c debian/source/0000755000000000000000000000000012165553550010475 5ustar debian/source/format0000644000000000000000000000001412165546534011707 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000045612165546534011365 0ustar gearman-interface for Debian ---------------------------- The source for this package can build bindings for lua and ruby, however currently those are beyond the scope of my interest, and so I've disabled those builds. There should be nothing preventing them from becoming Debian packages eventually. debian/watch0000644000000000000000000000013712165546534010233 0ustar version=3 https://launchpad.net/gearman-interface/+download .+/gearman-interface-(.+)\.tar\.gz debian/gearman-interface1.install0000644000000000000000000000002212165546534014214 0ustar usr/lib/lib*.so.*