File last-exit.spec of Package last-exit

# spec file for package last-exit
# Copyright (c) 2011 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

Name:           last-exit
Version:        6
Release:        16
License:        GPLv2+
Summary: player for GNOME
Group:          Productivity/Multimedia/Sound/Players
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gconf-sharp2
BuildRequires:  gconf2-devel
BuildRequires:  glade-sharp2
BuildRequires:  gnome-sharp2
BuildRequires:  gstreamer010-plugins-base-devel
BuildRequires:  gtk-sharp2
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libsexy-devel
BuildRequires:  mono-devel
BuildRequires:  ndesk-dbus-glib-devel
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Listen with and fuel the social music revolution. It's easy.
What are *you* listening to?

%setup -q

%configure --disable-static
%__make %{?jobs:-j%jobs}

find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file %{name} Player

rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

%if 0%{?suse_version} > 1130


%if 0%{?suse_version} > 1130


%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
%define __find_provides env sh -c 'filelist=($(grep -v "NDesk\\|XmlRpcCS\\|notify-sharp")) && { 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'

%files -f %{name}.schemas_list
%defattr(-, root, root)

%files lang -f %{name}.lang