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 http://bugs.opensuse.org/
#
Name: last-exit
Version: 6
Release: 16
License: GPLv2+
Summary: Last.fm player for GNOME
Url: http://lastexit-player.org
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
%gconf_schemas_prereq
%description
Listen with Last.fm and fuel the social music revolution. It's easy.
What are *you* listening to?
%lang_package
%prep
%setup -q
%build
%configure --disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%suse_update_desktop_file %{name} Player
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%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=($(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)
%doc AUTHORS ChangeLog COPYING COPYING.GPL NEWS README
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%files lang -f %{name}.lang
%changelog