File gnome-do.spec of Package gnome-do

#
# spec file for package gnome-do (Version 0.6.1.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/
#

# norootforbuild


Name:           gnome-do
Version:        0.6.1.0
Release:        2.<RELEASE1>
License:        GPL v3 or later
Url:            http://do.davebsd.com/
Source:         %{name}-%{version}.tar.bz2
Patch0:         disable-status-icon.patch
Summary:        A powerful, speedy, and sexy remote control for your GNOME Desktop
Group:          Productivity/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gnome-keyring-sharp-devel gtk2-devel intltool mono-addins mono-devel notify-sharp
%if 0%{?fedora_version}
BuildRequires:  gnome-sharp-devel gtk-sharp2-devel ndesk-dbus-glib
%else
BuildRequires:  gconf-sharp2 gnome-desktop-sharp2 gnome-sharp2 ndesk-dbus-glib-devel pkg-config
%endif
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%else
%define suse_update_desktop_file true
%endif
%gconf_schemas_prereq

%description
GNOME Do allows you to quickly search for many objects present in your
GNOME desktop environment (applications, Evolution contacts, Firefox
bookmarks, files, artists and albums in Rhythmbox, Pidgin buddies) and
perform commonly used commands on those objects (Run, Open, Email,
Chat, Play, etc.).

GNOME Do is inspired by Quicksilver (http://quicksilver.blacktree.com)
and GNOME Launch Box
(http://developer.imendio.com/projects/gnome-launch-box).



Authors:
--------
    David Siegel <djsiegel@gmail.com>
    Richard Harding <rharding@mitechie.com>

%prep
%setup -q
%patch0

%build
# Though the package is no longer noarch only one
# private library is native and all other components
# are still noarch (.NET)
%configure --libdir=%_prefix/lib
make

%install
make install DESTDIR=${RPM_BUILD_ROOT}
%suse_update_desktop_file %name Utilities
mv ${RPM_BUILD_ROOT}%_prefix/lib/pkgconfig ${RPM_BUILD_ROOT}%_prefix/share/
%find_lang %{name}
%find_gconf_schemas
cat %{name}.lang %{name}.schemas_list > %{name}.list

%files -f %{name}.list
%defattr(-, root, root)
%_prefix/bin/gnome-do
%dir %_prefix/lib/gnome-do
%_prefix/lib/gnome-do/Do.Addins.dll
%_prefix/lib/gnome-do/Do.Addins.dll.mdb
%_prefix/lib/gnome-do/Do.DBus.dll
%_prefix/lib/gnome-do/Do.DBus.dll.mdb
%_prefix/lib/gnome-do/Do.exe
%_prefix/lib/gnome-do/Do.exe.config
%_prefix/lib/gnome-do/libdo.so
%_prefix/lib/gnome-do/libdo.la
%_datadir/applications/gnome-do.desktop
%_datadir/icons/hicolor/*/apps/%{name}.*
%_datadir/pkgconfig/do.addins.pc
%_datadir/pkgconfig/do.dbus.pc

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans
%if 0%{?fedora_version} || 0%{?rhel_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
openSUSE Build Service is sponsored by