Changeset - c8a48fa5e79c
[Not reviewed]
Merge 2.0.0
0 6 0
Jan Kaluza - 10 years ago 2015-12-29 09:32:13
jkaluza@redhat.com
Merge branch 'master' of github.com:hanzz/libtransport
4 files changed with 3 insertions and 21 deletions:
0 comments (0 inline, 0 general)
packaging/debian/build_spectrum2.sh
Show inline comments
 
#!/bin/bash
 

	
 
set -x
 

	
 
#Check functions required
 
hash debuild 2>/dev/null || ( echo >&2 "apt-get install  devscripts"; exit 1; )
 

	
 

	
 

	
 
vercount=$(git rev-list --all | wc -l)
 
gitrev=$(git rev-parse --short HEAD | sed 's/\(^[0-9\.]*\)-/\1~/')
 
version=$vercount-$gitrev
 

	
 
sed -i "1s/\((.*)\)/(1:$version-1)/" debian/changelog
 

	
 
rm -rf spectrum2_*
 

	
 
git clone ../../.git spectrum2-$version
 

	
 
tar -czf spectrum2_$version.orig.tar.gz spectrum2-$version
 

	
 
cp -r debian spectrum2-$version/debian
 

	
 
cd spectrum2-$version
 
debuild -i -us -uc
 
DEB_BUILD_OPTIONS=nocheck debuild -i -us -uc
 

	
 
cd ..
 

	
 
rm -rf spectrum2-$version
packaging/debian/debian/control
Show inline comments
 
Source: spectrum2
 
Section: net
 
Priority: optional
 
Maintainer: Mathias Ertl <apt-repository@fsinf.at>
 
Build-Depends: debhelper (>= 7.0.50~), libpurple-dev, libswiften-dev,
 
 libprotobuf-dev, libmysqlclient-dev, liblog4cxx10-dev, protobuf-compiler,
 
 libpopt-dev, libdbus-glib-1-dev, libpqxx3-dev, cmake, libevent-dev, libboost-all-dev,
 
 libqt4-dev, libidn11-dev, libxml2-dev, libavahi-client-dev, libavahi-common-dev,
 
 libcurl4-openssl-dev, libcommuni-dev, libsqlite3-dev
 
Standards-Version: 3.9.2
 
Standards-Version: 3.9.6
 
VCS-Browser: http://git.fsinf.at/apt/spectrum2
 
VCS-Git: https://git.fsinf.at/apt/spectrum2.git
 
Homepage: http://www.spectrum.im
 

	
 
Package: libtransport2.0
 
Architecture: any
 
Section: net
 
Priority: optional
 
Depends: libswiften2, ${shlibs:Depends}, ${misc:Depends}
 
Replaces: libtransport2.0-git
 
Description: XMPP transport
 
 Spectrum 2 XMPP transport - development snapshots
 

	
 
Package: libtransport-plugin2.0
 
Architecture: any
 
Section: net
 
Priority: optional
 
Depends: ${shlibs:Depends}, ${misc:Depends}
 
Replaces: libtransport2.0-plugin-git
 
Description: Library for creating spectrum2 backends and plugins
 
 Spectrum 2 XMPP transport - development snapshots
 

	
 
Package: libtransport-plugin-dbg
 
Architecture: any
 
@@ -162,55 +162,39 @@ Section: debug
 
Priority: extra
 
Depends: spectrum2-backend-skype (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Replaces: spectrum2-backend-skype-git-dbg
 
Description: Spectrum2 Skype backend - debugging symbols
 
 Debugging symbols for the Spectrum2 Skype backend
 

	
 
Package: spectrum2-backend-smstools3
 
Architecture: any
 
Section: net
 
Priority: optional
 
Depends: libtransport2.0 (= ${binary:Version}), libtransport-plugin2.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Replaces: spectrum2-backend-smstools3-git
 
Description: Spectrum2 backend for sending SMS
 
 Spectrum2 backend using smstools3
 

	
 
Package: spectrum2-backend-smstools3-dbg
 
Architecture: any
 
Section: debug
 
Priority: extra
 
Depends: spectrum2-backend-frotz (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Replaces: spectrum2-backend-smstools3-git-dbg
 
Description: Spectrum2 backend for sending SMS - debugging symbols
 
 Debugging symbols for the Spectrum2 backend for sending SMS
 

	
 
Package: spectrum2-backend-libyahoo2
 
Architecture: any
 
Section: net
 
Priority: optional
 
Depends: libtransport2.0 (= ${binary:Version}), libtransport-plugin2.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Description: Spectrum2 backend to connect Yahoo using libyahoo
 
 Spectrum2 backend using libyahoo
 

	
 
Package: spectrum2-backend-libyahoo2-dbg
 
Architecture: any
 
Section: debug
 
Priority: extra
 
Depends: spectrum2-backend-libyahoo2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Description: Spectrum2 backend to connect Yahoo using libyahoo - debugging symbols
 
 Debugging symbols for the Spectrum2 backend to connect Yahoo
 

	
 
Package: spectrum2-backend-libcommuni
 
Architecture: any
 
Section: net
 
Priority: optional
 
Depends: libtransport2.0 (= ${binary:Version}), libtransport-plugin2.0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Description: Spectrum2 backend to connect IRC using libcommuni
 
 Spectrum2 backend using libcommuni
 

	
 
Package: spectrum2-backend-libcommuni-dbg
 
Architecture: any
 
Section: debug
 
Priority: extra
 
Depends: spectrum2-backend-libcommuni (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 
Description: Spectrum2 backend to connect IRC using libcommuni - debugging symbols
 
 Debugging symbols for the Spectrum2 backend to connect IRC
packaging/debian/debian/rules
Show inline comments
 
#!/usr/bin/make -f
 

	
 
#export DH_VERBOSE=1
 

	
 
DEB_UPSTREAM_VERSION = $(shell dpkg-parsechangelog -ldebian/changelog \
 
	| grep '^Version' \
 
	| sed  -e 's/Version: *//;s/^[^:]*://;s/-[^-]*$$//')
 

	
 
build:
 
	dh_testdir
 
	cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DSPECTRUM_VERSION=${DEB_UPSTREAM_VERSION} .
 
	export VERBOSE=1
 
	VERBOSE=1 make VERBOSE=1
 

	
 
#override_dh_auto_configure:
 

	
 

	
 
override_dh_strip:
 
	dh_strip -pspectrum2 --dbg-package=spectrum2-dbg
 
	dh_strip -pspectrum2-backend-libpurple --dbg-package=spectrum2-backend-libpurple-dbg
 
	dh_strip -pspectrum2-backend-skype --dbg-package=spectrum2-backend-skype-dbg
 
	dh_strip -pspectrum2-backend-frotz --dbg-package=spectrum2-backend-frotz-dbg
 
	dh_strip -pspectrum2-backend-swiften --dbg-package=spectrum2-backend-swiften-dbg
 
	dh_strip -pspectrum2-backend-twitter --dbg-package=spectrum2-backend-twitter-dbg
 
	dh_strip -pspectrum2-backend-libyahoo2 --dbg-package=spectrum2-backend-libyahoo2-dbg
 
	dh_strip -pspectrum2-backend-libcommuni --dbg-package=spectrum2-backend-libcommuni-dbg
 
	dh_strip -pspectrum2-backend-smstools3 --dbg-package=spectrum2-backend-smstools3-dbg
 
	dh_strip -plibtransport2.0 --dbg-package=libtransport-dbg
 
	dh_strip -plibtransport-plugin2.0 --dbg-package=libtransport-plugin-dbg
 

	
 
%:
 
	dh $@
tests/slack_jabber/bad_password.py
Show inline comments
 
@@ -3,50 +3,49 @@ import sys
 
import time
 
import subprocess
 
import os
 

	
 
import sleekxmpp
 

	
 

	
 
class Responder(sleekxmpp.ClientXMPP):
 
	def __init__(self, jid, password, room, room_password, nick):
 
		sleekxmpp.ClientXMPP.__init__(self, jid, password)
 
		self.room = room
 
		self.room_password = room_password
 
		self.nick = nick
 
		self.finished = False
 
		self.add_event_handler("session_start", self.start)
 
		self.add_event_handler("message", self.message)
 

	
 
		self.tests = {}
 
		self.tests["not_authorized"] = ["'Not Authorized' received", False]
 
		self.tests["help_received"] = ["Help received", False]
 
		self.tests["register_received"] = ["Password changed", False]
 
		self.tests["abc_received"] = ["Test message received", False]
 

	
 
	def message(self, msg):
 
		if msg['body'] == "Not Authorized" or msg['body'] == "Server may require plaintext authentication over an unencrypted stream"
 
		:
 
		if msg['body'] == "Not Authorized" or msg['body'] == "Server may require plaintext authentication over an unencrypted stream":
 
			self.tests["not_authorized"][1] = True
 
		elif msg['body'].find("try using") != -1:
 
			self.send_message(mto="spectrum2@spectrum2tests.xmpp.slack.com", mbody=".spectrum2 register client@localhost password #spectrum2_contactlist")
 
			self.tests["help_received"][1] = True
 
		elif msg['body'] == "You have successfully registered 3rd-party account. Spectrum 2 is now connecting to the 3rd-party network.":
 
			self.tests["register_received"][1] = True
 
		elif msg['body'] == "abc":
 
			self.tests["abc_received"][1] = True
 
			self.finished = True
 

	
 
	def start(self, event):
 
		self.plugin['xep_0045'].joinMUC(self.room, self.nick, password=self.room_password, wait=False)
 

	
 
class Client(sleekxmpp.ClientXMPP):
 
	def __init__(self, jid, password, room, nick):
 
		sleekxmpp.ClientXMPP.__init__(self, jid, password)
 
		self.room = room
 
		self.nick = nick
 
		self.add_event_handler("session_start", self.start)
 
		self.add_event_handler("message", self.message)
 
		self.finished = False
 

	
 
		self.tests = {}
 

	
0 comments (0 inline, 0 general)