File ndesk-dbus-glib.spec of Package ndesk-dbus-glib
%define ver 0.4.1
%if 0%{?fedora_version}
%define env_options export MONO_SHARED_DIR=/tmp
%endif
%if 0%{?sles_version} == 9
%define exp_env export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/%{_lib}/pkgconfig
%endif
%if 0%{?fedora_version}
%define build_req pkgconfig mono-devel ndesk-dbus
%else
%if 0%{?sles_version} == 9
%define build_req pkgconfig mono-devel glib2-devel ndesk-dbus
%else
%if 0%{?suse_version} == 1000
%define build_req pkgconfig mono-devel glib2-devel ndesk-dbus
%else
%define build_req pkg-config mono-devel ndesk-dbus
%endif
%endif
%endif
Name: ndesk-dbus-glib
License: OpenSource compliant, Copyright 2006, Alp Toker <alp@atoker.com>
Group: Development/Languages/Other
Summary: Managed, C# implementation of D-Bus
URL: http://www.ndesk.org/DBusSharp
Version: %{ver}
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: ndesk-dbus
BuildRequires: %{?build_req}
%description
ndesk-dbus-glib provides GLib main loop integration for Managed D-Bus.
This is a C# implementation of D-Bus. It's often referred to as "managed
D-Bus" to avoid confusion with existing bindings (which wrap libdbus).
D-Bus is an inter-process communication framework that lets applications
interface with the system event bus as well as allowing them to talk to
one another in a peer-to-peer configuration.
It provides a tested, high-performance bridge to and from all systems
that are exposed via D-Bus, regardless of programming language, UI
toolkit or license. The source code is MIT X11 licensed (Free
Software/Open Source), allowing integration into other projects with
very few restrictions.
It is a clean-room implementation based on the D-Bus Specification
Version 0.11 and study of the wire protocol of existing tools.
It aims for compatibility with Mono and Microsoft .NET frameworks
supporting the 2.0 profile. Backward compatibility with 1.0 will not be
a consideration.
%prep
%setup
%build
%{?exp_env}
%{?env_options}
./configure --prefix=/usr
make
%install
%{?env_options}
make DESTDIR=${RPM_BUILD_ROOT} install
if [ %{_lib} == lib64 ]; then
mkdir -p ${RPM_BUILD_ROOT}/usr/lib64/pkgconfig
mv ${RPM_BUILD_ROOT}/usr/lib/pkgconfig/ndesk-dbus-glib-1.0.pc ${RPM_BUILD_ROOT}/usr/lib64/pkgconfig/
fi
%clean
%{__rm} -rf ${RPM_BUILD_ROOT}
%pre
%post
%preun
%postun
%files
%defattr(644,root,root)
%attr(0755,root,root) %dir /usr/lib/mono/gac/NDesk.DBus.GLib
%attr(0755,root,root) %dir /usr/lib/mono/gac/NDesk.DBus.GLib/1.0.0.0__f6716e4f9b2ed099
/usr/lib/mono/gac/NDesk.DBus.GLib/1.0.0.0__f6716e4f9b2ed099/NDesk.DBus.GLib.dll
/usr/lib/mono/gac/NDesk.DBus.GLib/1.0.0.0__f6716e4f9b2ed099/NDesk.DBus.GLib.dll.config
/usr/lib/mono/gac/NDesk.DBus.GLib/1.0.0.0__f6716e4f9b2ed099/NDesk.DBus.GLib.dll.mdb
%attr(0755,root,root) %dir /usr/lib/mono/ndesk-dbus-glib-1.0
/usr/lib/mono/ndesk-dbus-glib-1.0/NDesk.DBus.GLib.dll
# On the 64bit platform, there is noting in /usr/lib so we put this
# where everything else is on the system:
/usr/%{_lib}/pkgconfig/ndesk-dbus-glib-1.0.pc
%if 0%{?fedora_version}
# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros)
%define _use_internal_dependency_generator 0
%endif
%define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq'
%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq'
%changelog
* Mon Jan 14 2007 Marc Christensen <mchristensen@novell.com>
- initial packaging