File rhythmbox.spec of Package rhythmbox

#
# spec file for package rhythmbox (Version 0.11.6)
#
# Copyright (c) 2008 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
%define xulrunner_version 190
BuildRequires:  dbus-1-glib-devel fdupes gcc-c++ gnome-common gnome-doc-utils-devel gnome-media-devel gstreamer010-plugins-base-devel gtk-doc intltool libavahi-glib-devel libglade2-devel libgnomeui-devel libgpod-devel libid3tag-devel libmtp-devel libmusicbrainz-devel libnotify-devel libsexy-devel libsoup-devel lirc nautilus-cd-burner-devel perl-XML-Parser python-devel python-gstreamer-0_10 python-gtk-devel scrollkeeper totem-pl-parser-devel update-desktop-files
%if %suse_version > 1010 || 0%{?opensuse_bs}
BuildRequires:  mozilla-xulrunner%{xulrunner_version}-devel
%else
BuildRequires:  gecko-sdk
%endif
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Players
Requires:       gstreamer010-plugins-base gstreamer010-plugins-good
Requires:       python-gstreamer-0_10
Version:        0.11.6
Release:        7
Requires:       %{name}-lang = %{version}
Source:         %{name}-%{version}.tar.bz2
Patch:          libmtp8.patch
Url:            http://www.gnome.org/projects/rhythmbox/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        GNOME Music Management Application
%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.



Authors:
--------
    Jorn Baayen <jorn@nl.linux.org>
    Kenneth Christiansen <kenneth@gnu.org>
    Mark Finlay <sisob@eircom.net>
    Marco Pesenti Gritti <marco@it.gnome.org>
    Joshua Haberman <joshua@haberman.com>
    Mark Humphreys <marquee@users.sourceforge.net>
    James Kahn <james@liet.net>
    Laurens Krol <laurens.krol@planet.nl>
    Xan Lopez <xan@dimensis.com>
    Olivier Martin <oleevye@wanadoo.fr>
    Seth Nickell <snickell@stanford.edu>
    Bastien Nocera <hadess@hadess.net>
    Benjamin Otte <in7y118@public.uni-hamburg.de>
    Jan Arne Petersen <jpetersen@gnome-de.org>
    Kristian Rietveld <kris@gtk.org>
    Yann Rouillard <y.rouillard@laposte.net>
    Christian Schaller <uraeus@linuxrising.org>
    Dennis Smit <synap@yourbase.nl>
    Bob Smith <bob@thestuff.net>
    Colin Walters <walters@verbum.org>
    James Willcox <jwillcox@gnome.org>
    Luca Ferretti <elle.uca@libero.it>
    Mark Finlay <sisob@eircom.net>
    Mark Humphreys <marquee@users.sourceforge.net>

%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.



Authors:
--------
    Jorn Baayen <jorn@nl.linux.org>
    Kenneth Christiansen <kenneth@gnu.org>
    Mark Finlay <sisob@eircom.net>
    Marco Pesenti Gritti <marco@it.gnome.org>
    Joshua Haberman <joshua@haberman.com>
    Mark Humphreys <marquee@users.sourceforge.net>
    James Kahn <james@liet.net>
    Laurens Krol <laurens.krol@planet.nl>
    Xan Lopez <xan@dimensis.com>
    Olivier Martin <oleevye@wanadoo.fr>
    Seth Nickell <snickell@stanford.edu>
    Bastien Nocera <hadess@hadess.net>
    Benjamin Otte <in7y118@public.uni-hamburg.de>
    Jan Arne Petersen <jpetersen@gnome-de.org>
    Kristian Rietveld <kris@gtk.org>
    Yann Rouillard <y.rouillard@laposte.net>
    Christian Schaller <uraeus@linuxrising.org>
    Dennis Smit <synap@yourbase.nl>
    Bob Smith <bob@thestuff.net>
    Colin Walters <walters@verbum.org>
    James Willcox <jwillcox@gnome.org>
    Luca Ferretti <elle.uca@libero.it>
    Mark Finlay <sisob@eircom.net>
    Mark Humphreys <marquee@users.sourceforge.net>

%lang_package
%prep
%setup -q
%patch -p0

%build
# needed for rhythmbox-0.11.4:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: */rhythmbox.xml:*: parser error : Entity 'mdash' not defined
export MOZILLA_PLUGINDIR=%{_libdir}/browser-plugins
%configure\
	--libexecdir=%{_prefix}/lib/rhythmbox\
	--disable-static\
	--disable-schemas-install\
	--disable-scrollkeeper\
	--enable-lirc
%__make %{?jobs:-j%jobs}

%install
%makeinstall
echo DocPath=rhythmbox >> $RPM_BUILD_ROOT%{_datadir}/applications/rhythmbox.desktop
%suse_update_desktop_file -N "Rhythmbox" %name Player
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_libdir}/*/*/*/*.*a
# FIXME: No headers provided => no use for development files outside sources:
rm $RPM_BUILD_ROOT%{_libdir}/rhythmbox/plugins/visualizer/rb-visualizer-glue.h
# Upstream should fix.
rm $RPM_BUILD_ROOT%{_libdir}/*.so $RPM_BUILD_ROOT%{_libdir}/*.*a
#%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%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 README.iPod THANKS TODO
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/icons/hicolor/*/apps/rhythmbox.*
%{_datadir}/omf/*
%{_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/*

%changelog
* Mon Oct 27 2008 vuntz@novell.com
- Don't call "autoreconf -f -i": we don't need it, and for some
  weird reason, it blocks the python plugins build.
* Tue Oct 07 2008 meissner@suse.de
- build with xulrunner190 instead of 181
* Mon Aug 25 2008 vuntz@novell.com
- Update to version 0.11.6:
  + Relicensed with GPL exception for GStreamer plugins
  + Improvements to the cross-fading playback backend
  + Use Amazon ECS 4.0 web service for cover art searches
  + Remember browser state for (some) removable devices
  + Automatically remove podcast episodes that are no longer
  available
  + Only display error dialogs for manually triggered podcast
  updates
  + Allow playlists from DAAP shares to be sorted
  + Fix transcoding when transferring to MTP devices
  + Start moving cached data to XDG_CACHE_HOME
  + More inclusive local cover art search
  + Lots of improvements to the iPod plugin
  + Switch to the new last.fm streaming system
  + Much improved API documentation coverage
  + Updated translations.
* Tue Jul 01 2008 aj@suse.de
- Build fix for libmtp8.
* Fri Mar 21 2008 vuntz@suse.de
- Also require python-gstreamer-0_10.
* Fri Mar 21 2008 vuntz@suse.de
- Update to version 0.11.5:
  + Improvements to the cross-fading playback backend
  + Assorted bug fixed for MTP device support
  + Add "shuffle playlist" command for playlists
  + Improvements to iPod art and podcast support
  + Fix some issues causing problems for accessability tools
  + Several major improvements to UPnP support (including acting as
  a renderer)
  + List Rhythmbox as supporting lastfm:// URIs
  + Updated translations.
- Remove rhythmbox-check.patch, fix upstream.
- Reenable audioscrobbler and daap plugins since we have libsoup2.4
  now.
- Build require libmtp-devel to enable the mtp plugin.
- Build require python-gstreamer-0_10 to enable python plugins.
- Build require gcc-c++ and xulrunner to enable the itunes
  detection browser plugin. Put the plugin in
  %%{_libdir}/browser-plugins and add it to the package.
* Thu Feb 28 2008 jpr@suse.de
- Update to 0.11.4
  * Support automatic GStreamer plugin installation
  * Improved cross-fading backend
  * Improved Podcast feed support, including Atom and APML
  * Add optional mozilla plugin to handle itms:// links
  * Fade volume when pausing and unpausing
  * Improve performance and stability of MTP device support
  * Stop putting deleted tracks on iPods in the Garbage Bin
  * Support PSPs with newer firmware
  * Improvements to the Coherence-based UPnP support
  * Minor improvements to Python bindings for plugins
  * Allow drag-and-drop of images to the cover art display
  * Allow DAAP shares to be connected to manually
  * Support DAAP smart playlists and radio streams
  * Handle file name being passed on the command line again
  * Add "donate to artist" action to Jamendo plugin
  * Support some more lyric sites
  * Improvements and fixes to the cross-fading player
  * Improve UPnP support
  * Improve track importing, especially on generic audio players
  * Allow python plugins to use threads
  * Enable music store plugins by default
  * Support playback from fm radio tuner cards
  * add partial support for UPnP A/V using Coherence
  * large memory usage reductions for the Jamendo plugin
  * read some keys from .is_audio_player files, like Banshee
  * handle playlist-paths given to us by HAL better
  * allow plugins to add new play orders
  * notify last.fm about songs played on iPods
  * more new icons
  * make gapless/xfade playback and visualisations work together better
  * handle lastfm:// URIs
  * make Magnatune/Jamendo loading intro saner on small screens
  * fix last.fm streaming
  * allow the user of Magnatune gift cards
  * do iPod DB saving in the background, not blocking the UI
  * vastly reduce the Jamendo plugin's memory usage
  * add support for MTP audio players
  * clean up the playback preferences UI
  * update play count, rating and last played on iPods
  * add support for multiple lyrics sites, and allow editing of lyrics
  * Add gapless/cross-fading playback backend (130426)
  * Add awesome Tango-style icons (388648, 380896, 388650, 314608)
  * Don't wake up the CPU all the time while doing nothing (399012)
  * Allow plugins to add filer and tee elements/sub-piplines
  to the gstreamer pipeline (345181)
  * Group sources together (359740)
  * Add DB support for keywords (324540)
  * Save modified iPod playlists (436744), and
  marks podcasts as such (424086)
  * Fix Unicode normalisation, which also makes searching
  ignore diacritical marks (421253, 338824)
  * Use xdg-user-dirs, and kill the druid (yay!) (411247)
  * Write art out to the DB on iPods (357400)
  * Parse last.fm group radio URLs too (407320)
  * Add support for MusicBrainz id tags (410681)
  * Minor improvements to the cover-art plugin
  * Retrieve cover art from last.fm (414065) and Magnatune (411622)
  * Add some more useful options to rhythmbox-client (414648)
  * Add preliminary support for Vala plugins
  * Use GSequence instead of EggSequence (419599)
  * plus a heap of bug fixes and minor improvements
  * fix saving of db on iPod shuffles (386662)
  * fix some crashes on Solaris (418886)
  * fix crasher due to python logging (429687)
  * fix crash when MusicBrainz returns nothing (414864)
  * prefer id3v2 over v1, even when they arrive later (428276)
  * fix crash when doing entry.get() from python (432949)
  * cancel async gnomevfs transfers correctly (434003)
  * fix query model reorder issues (436329)
  * remove timeout correctly (436355)
  * don't remove items from list being iterated (404169)
  * build against totem-plparser 2.19's new API
  * Updated translations
- Remove rhythmbox-0.9.6-uninit-debug.patch, the problematic code
  was removed upstream
* Wed Feb 06 2008 ro@suse.de
- use --disable-audioscobbler and --disable-daap for the moment
  the required libsoup has changed its api
* Thu Oct 11 2007 sbrabec@suse.cz
- Use binding specific avahi package.
* Tue Sep 04 2007 ro@suse.de
- kill fdupes for the moment, breaks bundle-lang
* Wed Aug 08 2007 maw@suse.de
- Split off a -lang subpackage.
* Sun Jul 15 2007 aj@suse.de
- Use fdupes to shrink size.
- Add explicit build requirement on lirc.
* Fri Apr 27 2007 sbrabec@suse.cz
- Do not call meinproc (#227624).
* Wed Apr 11 2007 maw@suse.de
- Update to version 0.10.0
- Fixes for bugzilla.gnome.org #410601, #411783, #411558, #411189,
  [#413206], #393642, #416024, #411141, #380411, #411145, #413301,
  [#419874], #411584, #413640, #411703, #411038, #410940, #412931,
  [#409164], #416213, #420444, #395124, #414980, and #419153
- Updated translations for the ar, da, dz, en_GB, fr, hu, it,
  pt_BR, sv, and zh_CN locales.
* Tue Apr 10 2007 sbrabec@suse.cz
- Updated to version 0.9.8:
  * UI and usability changes.
  * More player devices supported.
  * Plugin design.
  * New plugins and music servers supported.
  * Translation updates.
  * See NEWS for more.
* Tue Apr 10 2007 ro@suse.de
- fix build with updated check package
* Fri Mar 09 2007 sbrabec@suse.cz
- Removed obsolete hicolor icon symlink (#248676).
* Thu Mar 01 2007 sbrabec@suse.cz
- Fixed autoreconf (#249608).
* Mon Feb 19 2007 mvaner@suse.cz
- Removing debug print of not yet inicialized variable (bug #228710)
  - uninit-debug.patch
* Tue Dec 19 2006 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Thu Nov 16 2006 sbrabec@suse.cz
- Updated to version 0.96:
  * fix DAAP seeking
  * display track numbers in playlists too
  * retrieve playlsit and audio folder information from HAL
  * make search box coloured when active
  * improve ID3 tag writing
  * load local cover art, and large improvements to plugin
  * build fixes: Solaris
  * Store MusicBrainz track IDs in the DB
  * fix some i18n issues
  * add gnome-keyring support to DAAP
  * allow hiding of plugins and disabler per-user plugins
  * plugin improvements
  * HTTP proxy-related fixes/improvements
  * drag-and-drop improvements
  * importing fixes
  * add "property changed" signal for dbus clients
  * turn CD burning into a plugin
  * turn audio CD support into a plugin
  * LIRC plugin fixes
  * improve database thread usage
  * make DB handle unknown entry-types
  * improve plugin debug output, and bindings
  * improve "import errors" and "missing files" source
  * fix many memory leaks
  * use GMapperFiles for DAAP transfers, fixing some iTunes clients
  * add support for alternate playlists files
  * handle transparent panels correctly
  * fix playlists subset searching
  * make iradio playlists handling better
  * use GOption instead og popt
  * remember visibility for remote files, as well as local ones
  * be smarter about creating podcast file names
  * allow multiple selections in the Import Folder dialog
  * Bug fixes, performance and memory improvements, and minor
  features
  * Translation updates
- Enabled all optional features.
* Sat Oct 14 2006 danw@suse.de
- Remove a patch that's been disabled since at least SLED10
* Fri Oct 13 2006 aj@suse.de
- Adjust BuildRequires for gnome-doc-utils.
* Sun Sep 03 2006 aj@suse.de
- Update to rhythmbox 0.95:
  * Adjust for libnautilus-burn 2.15.3 API
  * Fixes for ipod
  * improve DBus interface
  * many bug fixes
* Tue Apr 04 2006 jpr@suse.de
- Update to rhythmbox 0.93.1 for gstreamer 0.10 support
- Remove upstreamed patches
* Tue Feb 28 2006 sbrabec@suse.cz
- Use kdelibs3-doc in BuildRequires for meinproc (#153635#c14).
* Mon Feb 20 2006 stbinner@suse.de
- fix Name in .desktop file, second try
* Wed Feb 15 2006 stbinner@suse.de
- fix Name in .desktop file
* Thu Feb 09 2006 ro@suse.de
- added avahi-glib to BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 sbrabec@suse.cz
- Fixed audioscrobbler track lenth bug (GNOME#323639).
* Wed Dec 21 2005 ro@suse.de
- fix build with current dbus
* Tue Dec 06 2005 sbrabec@suse.cz
- Fixed neededforbuild for 10.0 (lzo lzo-devel).
* Mon Dec 05 2005 sbrabec@suse.cz
- Fixed gstreamer scriptlet neededforbuild (krb5 fam).
* Thu Dec 01 2005 sbrabec@suse.cz
- Updated to version 0.9.2.
- Enabled all optional features.
* Tue Aug 02 2005 sbrabec@suse.cz
- Updated to version 0.8.8.
- Build with iPod and Dashboard integration support.
* Thu Mar 17 2005 sbrabec@suse.cz
- Do not require gstreamer-plugins-extra (#73637).
* Wed Mar 16 2005 sbrabec@suse.cz
- Require sufficient basic set of gstreamer plugins.
* Wed Mar 16 2005 clahey@suse.de
- Update name and category.
* Fri Nov 19 2004 ro@suse.de
- removed extra aclocal include directive
* Wed Nov 03 2004 ro@suse.de
- locale rename: no -> nb
* Tue Aug 31 2004 clahey@suse.de
- Cache rhythmbox help and show rhythmbox in khelpcenter.
* Mon Aug 02 2004 ro@suse.de
- regenerate skip-druid.diff and rename it to do-skip-druid.diff
* Fri Jul 30 2004 shprasad@suse.de
- Fixes bug #60998
  Skips the druid of Rhythmbox.
* Tue May 11 2004 sbrabec@suse.cz
- Fixed gconftool-2 prerequirements.
* Mon May 10 2004 sbrabec@suse.cz
- Updated to version 0.8.3 (GNOME 2.6).
* Wed Mar 10 2004 sbrabec@suse.cz
- Fixed gconf schemas installation (#33114).
* Wed Mar 03 2004 hhetter@suse.de
- updated to version 0.6.7
* Mon Feb 23 2004 adrian@suse.de
- move menu entry to Jukebox menu
- fix build as user
* Thu Feb 19 2004 sbrabec@suse.cz
- Updated to version 0.6.5.
* Mon Oct 27 2003 sbrabec@suse.cz
- Updated to version 0.5.88.
* Fri Oct 10 2003 sbrabec@suse.cz
- New SuSE package, version 0.5.1.
openSUSE Build Service is sponsored by