debian swirl logo

Back to the packages list sleekxmpp

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2011-2012 Jonas Smedegaard 
# Description: Main Debian packaging script for SleekXMPP
#
# 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, 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 .

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_UPSTREAM_URL = http://githubredir.debian.net/github/fritzy/SleekXMPP
DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_TARBALL_VERSION)
DEB_UPSTREAM_TARBALL_BASENAME_MANGLE = s/~beta/-Beta/
DEB_UPSTREAM_WGET_OPTS += --no-check-certificate
DEB_UPSTREAM_TARBALL_MD5 = 09802f9dd733fef6fd5229601b7d5538

# Suppress unneeded build-dependencies
CDBS_BUILD_DEPENDS_class_python-distutils_python = 

# FIXME: Use proper variable when implemented in cdbs
# TODO: Recommend (not sugest) for python3 when available in Debian
DEB_PYTHON_PRIVATE_MODULES_DIRS_python-sleekxmpp = --recommends=python-dnspython
DEB_PYTHON_PRIVATE_MODULES_DIRS_python3-sleekxmpp = --suggests=python-dnspython

DEB_INSTALL_EXAMPLES_ALL = examples/*

Builds:

python3-sleekxmpp
python xmpp (jabber) library implementing everything as a plugin
python-sleekxmpp
python xmpp (jabber) library implementing everything as a plugin