File rhythmbox.spec of Package rhythmbox
#
# spec file for package rhythmbox (Version 0.12.5)
#
# 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: rhythmbox
Version: 0.12.5
Release: 2
License: GPL v2 or later
Summary: GNOME Music Management Application
Url: http://www.gnome.org/projects/rhythmbox/
Group: Productivity/Multimedia/Sound/Players
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM rhythmbox-fix-inhibit.patch vuntz@opensuse.org -- Taken from git
Patch0: rhythmbox-fix-inhibit.patch
%if 0%{suse_version} > 1110
%define xulrunner_version 191
%else
%define xulrunner_version 190
%endif
BuildRequires: brasero-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-keyring-devel
BuildRequires: gnome-media-devel
BuildRequires: gstreamer010-plugins-base-devel
BuildRequires: intltool
BuildRequires: libavahi-glib-devel
BuildRequires: libgudev-1_0-devel
BuildRequires: libgpod-devel
BuildRequires: libmtp-devel
BuildRequires: libmusicbrainz-devel
BuildRequires: libmusicbrainz3-devel
BuildRequires: libnotify-devel
BuildRequires: libsexy-devel
BuildRequires: libsoup-devel
BuildRequires: lirc-devel
BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel
BuildRequires: python-gstreamer-0_10-devel
BuildRequires: python-gtk-devel
BuildRequires: totem-pl-parser-devel
BuildRequires: update-desktop-files
BuildRequires: vala-devel
Requires: %{name}-lang = %{version}
Requires: gstreamer010-plugins-base
Requires: gstreamer010-plugins-good
Requires: python-gstreamer-0_10
# Coherence DLNA/UPnP Client plugin
Recommends: python-coherence
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%py_requires
%gconf_schemas_prereq
%description
Music Management application with support for ripping audio-CD's,
playback of Ogg Vorbis and MP3 and burning of CD-ROMs.
%package doc
License: GPL v2 or later
Summary: GNOME Music Management Application
Group: Productivity/Multimedia/Sound/Players
Requires: %{name} = %{version}
%description doc
Music Management application with support for ripping audio-CD's,
playback of Ogg Vorbis and MP3 and burning of CD-ROMs.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
export MOZILLA_PLUGINDIR=%{_libdir}/browser-plugins
%configure\
--libexecdir=%{_prefix}/lib/rhythmbox\
--disable-static\
--disable-schemas-install\
--disable-scrollkeeper\
--enable-lirc\
--enable-python\
--enable-vala
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file %name Player
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
find %{buildroot} -type f -name "*.la" -delete -print
# FIXME: No headers provided => no use for development files outside sources:
rm %{buildroot}%{_libdir}/rhythmbox/plugins/daap/rb-daap-glue.h
rm %{buildroot}%{_libdir}/rhythmbox/plugins/visualizer/rb-visualizer-glue.h
# Upstream should fix.
rm %{buildroot}%{_libdir}/*.so
#%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%postun -p /sbin/ldconfig
%pre -f %{name}.schemas_pre
%post -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog DOCUMENTERS INTERNALS MAINTAINERS MAINTAINERS.old NEWS README THANKS
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/icons/hicolor/*/apps/rhythmbox.*
%{_datadir}/rhythmbox
%{_libdir}/*.so.*
%{_libdir}/browser-plugins/*.*
%{_libdir}/rhythmbox
%if "%{_libdir}" != "%{_prefix}/lib"
%{_prefix}/lib/rhythmbox
%endif
%files lang -f %{name}.lang
%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/*
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%changelog