File dbus-1-mono.spec of Package dbus-1-mono

# spec file for package dbus-1-mono (Version 0.63)
# 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

# norootforbuild

Name:           dbus-1-mono
BuildRequires:  dbus-1-devel dbus-1-glib mono-devel pkgconfig
License:        Dual GPLv2 or Academic Free License 2.1
Group:          Development/Libraries/Other
Version:        0.63
Release:        188
AutoReqProv:    on
Summary:        Mono Bindings for D-Bus
Source0:        dbus-sharp-%{version}.tar.gz
Patch0:         dbus-mono-dont-build-examples-thoenig-01.patch
Patch1:         dbus-mono-libdir-thoenig-01.patch
Patch2:         dbus-mono-exit-on-disconnect-thoenig-01.patch
Patch3:         dbus-mono-api-fix-thoenig-01.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       dbus-1 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-1`)

Mono bindings for D-Bus.

    Olivier Andrieu <>
    Philip Blundell <>
    Anders Carlsson <>
    Kristian Hogsberg  <>
    Alex Larsson <>
    Michael Meeks <>
    Seth Nickell <>
    Havoc Pennington <>
    Harri Porten <>
    Matthew Rickard <>
    Zack Rusin <>
    Joe Shaw <>
    Colin Walters <>
    David Zeuthen <>

%setup -n dbus-sharp-%{version} -q
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}							\

make DESTDIR=%{buildroot} install
# all the files live in /usr/lib, just this file has a wrong path
perl -pi -e "s|/usr/lib64|/usr/lib|" $RPM_BUILD_ROOT/%{_libdir}/pkgconfig/dbus-sharp.pc



%{__rm} -rf %{buildroot}

%defattr(-, root, root)
%dir %{_prefix}/lib/mono/gac/dbus-sharp
%dir %{_prefix}/lib/mono/dbus-sharp

* Sun Jan 20 2008
- buildreq dbus-1-glib (for mono-find-requires)
* Mon Nov 06 2006
- loosen dependency to D-Bus
* Thu Aug 17 2006
- Add patch dbus-mono-exit-on-disconnect-thoenig-01.patch: Add
  support for dbus_connection_set_exit_on_disconnect.
- Add patch dbus-mono-api-fix-thoenig-01.patch: Do not wrap
  depreciated function dbus_connection_disconnect.  Use
  dbus_connection_close instead.
* Wed Aug 16 2006
- Add patch dbus-mono-libdir-thoenig-01.patch:  Install Mono
  bindings in /usr/lib -- not /usr/lib64 -- on 64bit
  architectures, too.
* Tue Aug 01 2006
- new upstream version 0.63
* Tue Aug 01 2006
- split out binings to sparate spec files