File ndesk-dbus.spec of Package ndesk-dbus

# spec file for package ndesk-dbus (Version 0.6.0)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

Name:           ndesk-dbus
Version:        0.6.0
Release:        1
%if 0%{?fedora_version}  
   %define env_options export MONO_SHARED_DIR=/tmp  
%if 0%{?sles_version} == 9
   %define exp_env export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/%{_lib}/pkgconfig
%if 0%{?fedora_version}
   %define build_req pkgconfig mono-devel
   %if 0%{?sles_version} == 9
      %define build_req pkgconfig mono-devel glib2-devel
      %if 0%{?suse_version} == 1000
         %define build_req pkgconfig mono-devel glib2-devel
         %define build_req pkg-config mono-devel
License:        X11/MIT
Group:          Development/Libraries/Other
Summary:        Managed C# implementation of D-Bus
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        %{name}-%{version}.tar.bz2
Provides:       ndesk-dbus-devel < %{version}
Obsoletes:      ndesk-dbus-devel < %{version}
BuildRequires:  %{?build_req}
BuildArch:      noarch

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

It is a clean-room implementation based on the D-Bus Specification
Version 0.11 and study of the wire protocol of existing tools.


./configure --prefix=/usr

make DESTDIR=${RPM_BUILD_ROOT} install
# For noarch
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pkgconfig
mv ${RPM_BUILD_ROOT}/usr/lib/pkgconfig/ndesk-dbus-1.0.pc ${RPM_BUILD_ROOT}%{_datadir}/pkgconfig/

%{__rm} -rf ${RPM_BUILD_ROOT}

%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
%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'

* Tue Feb 05 2008
- Update ndesk-dbus from mchristensen's build service project
 -move .pc file to usr/share and make noarch
 -clean up filelist
* Fri Nov 09 2007
- initial packaging (update to 0.6.0 in build service)
* Thu May 31 2007
- Adding this pacakge to factory