%description
OBEX Server A basic OBEX server implementation.
+%package test
+Summary: Test Programs for OBEX
+Group: Development/Tools
+Requires: %{name} = %{version}-%{release}
+Requires: dbus-python
+Requires: pygobject
+Requires: python-xml
+
+%description test
+Scripts for testing OBEX and its functionality
+
%prep
%setup -q
install -D -m 0755 %SOURCE101 %{buildroot}%{_bindir}/obex-root-setup
install -D -m 0755 %SOURCE102 %{buildroot}%{_sysconfdir}/obex/root-setup.d/000_create-symlinks
+chmod 755 test/*
+
%files
%{_sysconfdir}/obex/root-setup.d/000_create-symlinks
%{_datadir}/dbus-1/services/obexd.service
/usr/lib/obex/obex-client
%dir /usr/lib/obex/plugins
+%files test
+%defattr(-,root,root,-)
+%doc test/*
import sys
import dbus
+reload(sys)
+sys.setdefaultencoding('utf8')
+
bus = dbus.SessionBus()
client = dbus.Interface(bus.get_object("org.openobex.client", "/"),
pbap.SetFormat("vcard30")
pbap.SetFilter(["VERSION", "FN", "TEL"]);
ret = pbap.PullAll()
- print "%s" % (ret)
+ print "%s" % (ret.encode('utf8'))