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 http://bugs.opensuse.org/
#
# norootforbuild
Name: dbus-1-mono
BuildRequires: dbus-1-devel dbus-1-glib mono-devel pkgconfig
Url: http://dbus.freedesktop.org/
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`)
%description
Mono 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-sharp-%{version} -q
%patch0
%patch1
%patch2
%patch3
autoreconf -fi
%build
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}
make
%install
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
%post
%{run_ldconfig}
%postun
%{run_ldconfig}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root)
%dir %{_prefix}/lib/mono/gac/dbus-sharp
%{_libdir}/pkgconfig/dbus-sharp.pc
%{_prefix}/lib/mono/gac/dbus-sharp/*
%dir %{_prefix}/lib/mono/dbus-sharp
%{_prefix}/lib/mono/dbus-sharp/*
%changelog
* Sun Jan 20 2008 ro@suse.de
- buildreq dbus-1-glib (for mono-find-requires)
* Mon Nov 06 2006 thoenig@suse.de
- loosen dependency to D-Bus
* Thu Aug 17 2006 thoenig@suse.de
- 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 thoenig@suse.de
- 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 thoenig@suse.de
- new upstream version 0.63
* Tue Aug 01 2006 thoenig@suse.de
- split out binings to sparate spec files