LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ndesk-dbus.spec of Package ndesk-dbus (Project openSUSE:11.4)

# spec file for package ndesk-dbus (Version 0.6.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/

Name:           ndesk-dbus
Version:        0.6.0
Release:        63
%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
Url:            http://www.ndesk.org/DBusSharp
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 wberrier@suse.de
- 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 mchristensen@novell.com
- initial packaging (update to 0.6.0 in build service)
* Thu May 31 2007 mauro@novell.com
- Adding this pacakge to factory