File dbus-1-python.spec of Package dbus-1-python
#
# spec file for package dbus-1-python (Version 0.83.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dbus-1-python
BuildRequires: dbus-1-glib-devel pyrex python-devel
Url: http://dbus.freedesktop.org/
License: X11/MIT
Group: Development/Libraries/Python
Version: 0.83.0
Release: 22.<RELEASE3>
AutoReqProv: on
Summary: Python bindings for D-Bus
Source0: dbus-python-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`)
Requires: libxml2-python
Requires: python-xml
%{py_requires}
%package -n dbus-1-python-devel
License: Other uncritical OpenSource License
Summary: Python bindings for D-Bus
Requires: dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`)
Requires: dbus-1-devel >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1-devel`)
Requires: dbus-1-python = %{version}
AutoReqProv: on
Group: Development/Libraries/Python
%description
Python bindings for D-Bus.
Authors:
--------
Olivier Andrieu <oliv__a@users.sourceforge.net>
Philip Blundell <pb@nexus.co.uk>
Anders Carlsson <andersca@gnome.org>
Kristian Hogsberg <krh@redhat.com>
Alex Larsson <alexl@redhat.com>
Michael Meeks <michael@ximian.com>
Seth Nickell <seth@gnome.org>
Havoc Pennington <hp@redhat.com>
Harri Porten <porten@kde.org>
Matthew Rickard <mjricka@epoch.ncsc.mil>
Zack Rusin <zack@kde.org>
Joe Shaw <joe@assbarn.com>
Colin Walters <walters@gnu.org>
David Zeuthen <david@fubar.dk>
%description -n dbus-1-python-devel
Developer files for Python bindings for D-Bus.
Authors:
--------
Olivier Andrieu <oliv__a@users.sourceforge.net>
Philip Blundell <pb@nexus.co.uk>
Anders Carlsson <andersca@gnome.org>
Kristian Hogsberg <krh@redhat.com>
Alex Larsson <alexl@redhat.com>
Michael Meeks <michael@ximian.com>
Seth Nickell <seth@gnome.org>
Havoc Pennington <hp@redhat.com>
Harri Porten <porten@kde.org>
Matthew Rickard <mjricka@epoch.ncsc.mil>
Zack Rusin <zack@kde.org>
Joe Shaw <joe@assbarn.com>
Colin Walters <walters@gnu.org>
David Zeuthen <david@fubar.dk>
%prep
%setup -n dbus-python-%{version} -q
%build
autoreconf -fi
export CFLAGS="${RPM_OPT_FLAGS} -fstack-protector -fno-strict-aliasing -fPIC"
./configure \
--prefix=%{_prefix} \
--exec_prefix=%{_exec_prefix} \
--sysconfdir=%{_sysconfdir} \
--datadir=%{_datadir} \
--localstatedir=%{_localstatedir} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--docdir=%{_docdir}/dbus-python
make %{?jobs:-j %jobs}
%install
%{__rm} -rf %{buildroot}
make DESTDIR=%{buildroot} install
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%dir %{_docdir}/dbus-python
%{py_sitedir}/*
%{_docdir}/dbus-python/*
%files -n dbus-1-python-devel
%defattr(-, root, root)
%{_includedir}/dbus-1.0/dbus/dbus-python.h
%{_libdir}/pkgconfig/dbus-python.pc
%changelog
* Tue Sep 09 2008 ro@suse.de
- use py_sitedir macro in filelist
* Tue Jul 29 2008 thoenig@suse.de
- new upstream version 0.83.0
- Add bindings for DBusServer (thanks to Mathias Hasselmann,
Huang Peng; fd.o #14322, #15514).
- Omit the service's traceback from certain D-Bus errors:
specifically, those that were probably deliberately raised as
part of an API. Subclasses of DBusException that indicate
programmer error can turn the traceback back on if it seems
likely to be useful.
- Don't emit spurious Error messages if libdbus gives object-path
handlers a message that isn't a method call (most likely because
of binding to a locally emitted signal, as in fd.o #14199).
- Make multiple filters added by Connection.add_message_filter
work (fd.o #15547, thanks to Huang Peng).
- Make the API docs build correctly when out-of-tree
- Require dbus 1.0 so we can get rid of DBUS_API_SUBJECT_TO_CHANGE
* Tue Dec 11 2007 thoenig@suse.de
- supplying reply_handler but not error_handler raises
MissingReplyHandlerException instead of
MissingErrorHandlerException, and vice versa (fd.o #12304, patch
from René Neumann)
- Using non-recursive make for dbus/ directory should fix builds in
some environments (fd.o #12741)
- Everything is now under the same MIT/X11 license used for
Collabora code in the previous release
- Added copyright headers to some files that were still missing
them
* Wed Dec 05 2007 thoenig@suse.de
- new upstream version 0.82.3 (skipped 0.82.1 and 0.82.2)
- Don't try to distribute COPYING.LGPL-2.1 - no longer exists
- Fix NEWS indentation
- Mention relicensing in NEWS
- Update NEWS, and add regression tests for fd.o #12096 and
[#12403]
- fd.o #12432: fix documentation for remove_from_connection
- dbus.exceptions.DBusException: allow setting _dbus_error_name
in subclasses
- Don't raise KeyError when closing private dbus.Bus.
(fd.o #12096)
- Also deprecate private dbus.Bus in favour of
dbus.bus.BusConnection - the only things you gain from using
dbus.Bus are the shared-instance behaviour and some strange
more-than-one-way-to-do-it APIs.
- Relicense Collabora code under the MIT/X11 license proposed for
dbus core, removing all references to the LGPL as a result
- dbus.service: Don't assume that exceptions passed to
asynchronous callbacks are the same as the pending exception
(fd.o #12403, https://dev.laptop.org/ticket/3370)
- Makefile.am, test/Makefile.am: Use @abs_top_builddir@,
@abs_top_srcdir@
- This fixes incorrect Python path for docs and tests if doing
an out-of-tree
- build using an absolute path for $(srcdir), and is also
less ugly.
- Unset dbus_python_released
- Release 0.82.2
- Mention in NEWS that API docs are generated by default
- Reorganise README to reflect that API docs are generated
by default
- Mention incompatibility with 0.82.1 more prominently
- Check for epydoc version >= 3, and default to building API docs
if available
- Update NEWS to mention #11623 fix
- Add rel_path_keyword to @method (fd.o #11623)
- Avoid deprecated API in cross-test
- Fix introspection on objects with more than one connection or
more than one object path (bugs.fd.o #11794)
- NEWS: mention the solved build problems related to
python-config
- Re-fix checking for Python include paths. Use $PYTHON-config
like in 0.82.1 if we can, use the hard-coded logic from
versions prior to 0.82.0 if we can't.
- Complete the .m4 renaming
- Move dbus-py-add-rst2htmlflag.m4 to jh-add-cflag.m4 - the
contents of two of the .m4 files were the opposite of what
they should be
- Move jh-add-cflag.m4 to dbuspy-add-rst2htmlflag.m4 - the
contents of two of the .m4 files were the opposite of what
they should be
- Revert "Use python-config to get Python cppflags (patch from
Ubuntu, fd.o #11282)."
- Python < 2.5 didn't have python-config (although some
distributions, e.g. Debian and Ubuntu, shipped it as an
add-on). Even for 2.5, some distributions install it under
gratuitously different names (hi, Gentoo). As a result, this
patch needs replacing with one that doesn't rely on having
python-config.
- _dbus_bindings/mainloop.c: Remove Watch and Timeout.
They were never used, and didn't make a great deal of sense.
I now believe the right direction for pure-Python mainloop
support is to define a Pythonic main loop abstraction and
coerce libdbus to fit into it, rather than pretending the
objects in libdbus' abstraction are Python objects.
- NEWS: update with timeout fix
- Measure async call timeout in seconds as intended, not in
ms (blocking calls already used seconds). Add regression tests
- test-client: Avoid deprecated usage - explicitly pass
SessionBus() to BusName ctor
- Try to avoid importing things from _dbus_bindings when they
could be imported from public API
- Bump version to 0.82.1.YYYYMMDD
- Avoid cpp directives inside macro calls, to be nice to old
gcc versions
- NEWS, configure.ac: 0.82.1, the "double precision" release
- Use PyArg_ParseTuple correctly, fixing the timeout in
send_message_with_reply and send_message_with_reply_and_block.
(bugs.fd.o #11489; thanks to Marco Pesenti Gritti for report
and initial patch)
- Unset dbus_python_released
- .gitignore: ignore patch(1) cruft, and detached signatures
for the release tarballs
- dbus.proxies: If making a call with ignore_reply=True, don't
block for introspection
- dbus.service: use DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE
- Expose HANDLER_RESULT_HANDLED, HANDLER_RESULT_NOT_YET_HANDLED
as public API in dbus.lowlevel
- Get stacklevel right on deprecation of not specifying bus in
BusName.__init__
- _dbus_bindings: add DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE
etc.
- Avoid using deprecated dbus_watch_get_fd()
- dbus.service: Deprecate the omission of the `bus` argument in
the BusName constructor.
- Explicit is better than implicit.
- Stop using interactive-Python syntax in tutorial to reduce
user confusion. Closes bugs.fd.o #11209.
* Tue Jun 19 2007 thoenig@suse.de
- new upstream version 0.82.0 (skipped 0.80.2 and 0.81.0)
- dbus.service.Object can start off with no Connection or object path, and
become exported later. If suitable class attributes are set, objects can
even be exported on multiple connections, or with multiple object-paths,
or both.
- dbus.service.FallbackObject implements a whole subtree of object-path space
(fd.o #9295).
- ``@method`` accepts a parameter ``connection_keyword`` so methods can find
out which connection to use for any follow-up actions.
- ``@signal`` has a new parameter ``rel_path_keyword`` which gets the path at
which to emit the signal, relative to the path of the FallbackObject.
``path_keyword`` is now deprecated, and will raise an exception if used
on an object with ``SUPPORTS_MULTIPLE_OBJECT_PATHS``, including any
``FallbackObject``.
- update to 0.81.0
- When an Error message on the bus is represented as a DBusException, the
error name is copied into the exception and can be retrieved by
get_dbus_name(). Exception handlers should use this instead of looking at
the stringified form of the exception, unless backwards compatibility
is needed.
- DBusException objects now get all arguments from the Error message, not
just the first (although there will usually only be one). Use the 'args'
attribute if you need to retrieve them.
- The Connection, BusConnection and Bus classes have a method
list_exported_child_objects(path: str) -> list of str, which wraps
dbus_connection_list_registered()
- You can remove objects from D-Bus before they become unreferenced, by
using dbus.service.Object.remove_from_connection()
(https://bugs.freedesktop.org/show_bug.cgi?id=10457)
- update to 0.80.2
- Fix numerous memory and reference leaks
- Only use -Werror if the user specifically asks for it
- Audit tp_dealloc callbacks to make sure they correctly preserve the
exception state
- Relicense files solely owned by Collabora Ltd. more permissively (LGPL/AFL
rather than GPL/AFL) - this includes the tutorial and all the C code
* Fri Mar 09 2007 thoenig@suse.de
- add python-xml to 'Requires'
* Sun Mar 04 2007 thoenig@suse.de
- fix completely broken build
- new package: dbus-1-python-devel
* Thu Mar 01 2007 thoenig@suse.de
- new upstream version 0.80.1
- drop patch dbus-python_bindings_fix.diff
* Mon Nov 06 2006 thoenig@suse.de
- loosen dependency to D-Bus
* Mon Sep 25 2006 thoenig@suse.de
- add %%{py_requires} (b.n.c #207919)
* Tue Aug 01 2006 thoenig@suse.de
- new upstream version 0.71
* Tue Aug 01 2006 thoenig@suse.de
- split out binings to sparate spec files