File kde4-amarok.spec of Package kde4-amarok

#
# spec file for package kde4-amarok (Version 2.0.1.1)
#
# 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:           kde4-amarok
BuildRequires:  cups-devel libkcddb4-devel ruby-devel sqlite-devel taglib-devel
BuildRequires:  kdebase4-workspace-devel libkcompactdisc4-devel tse3-devel update-desktop-files
BuildRequires:  gstreamer010-devel libmtp-devel libnjb-devel libvisual-devel xine-devel
BuildRequires:  flac-devel gtk2-devel libQtWebKit-devel libdvdread-devel libgpod-devel
BuildRequires:  dbus-1-glib-devel libogg-devel libsamplerate-devel libsndfile-devel
BuildRequires:  gdk-pixbuf-devel libcurl-devel libsoprano-devel loudmouth-devel mysql-devel
%if %suse_version > 1030
BuildRequires:  libmusicbrainz3-devel
%endif
#%if %suse_version > 1020
#BuildRequires:  poppler-qt4
#%endif
Url:            http://amarok.kde.org
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Players
Summary:        Media Player for KDE
Version:        2.0.1.1
Release:        2.<RELEASE1>
Source0:        amarok-%version.tar.bz2
Source1:        errmsg.sys
Patch3:         link-mysql-embedded.diff
Patch4:         errmsg-mysql-embedded.diff
Patch5:         ogg-mimetypes.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires 
Requires:       kde4-amarok-lang = %{version}
Requires:       libqt4-sql-sqlite

%description
Amarok is a media player for all kinds of media. This includes MP3, Ogg
Vorbis, audio CDs, podcasts and streams. Play lists can be stored in
.m3u or .pls files.



Authors:
--------
    Christian Muehlhaeuser <chris@chris.de>
    Mark Kretschmann <markey@web.de>
    Max Howell <max.howell@methylblue.com>
    Stanislav Karchebny <berk@inbox.ru>

%lang_package
%prep
%setup -q -n amarok-%version
%patch3
%patch4
%patch5

%build
%ifarch ppc ppc64
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  cd ..
  install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/kde4/apps/amarok/errmsg.sys
  %suse_update_desktop_file -r amarok AudioVideo Player
  %find_lang amarok
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf filelists

%files lang -f amarok.lang

%files
%defattr(-,root,root)
/usr/bin/amarok 
/usr/bin/amarokcollectionscanner
/usr/bin/amarok_afttagger
/usr/bin/amarokmp3tunesharmonydaemon
%dir /usr/%_lib/kde4/plugins/script
%_kde4_modules/plugins/script/*
%_kde4_modules/amarok_*
%_kde4_modules/kcm_amarok_service_*
%_kde4_modules/libamarok_*
%_libdir/libamarok_taglib.so
%_libdir/libamarok_taglib.so.*
%_libdir/libamaroklib.so
%_libdir/libamaroklib.so.*
%_libdir/libamarokplasma.so
%_libdir/libamarokplasma.so.*
%_libdir/libamarokpud.so
%_libdir/libamarokpud.so.*
/usr/%_lib/libamarok_service_liblastfm.so
%_libdir/strigi/strigita_audible.so
%_libdir/strigi/strigita_mp4.so
/usr/share/applications/kde4/amarok.desktop 
/usr/share/dbus-1/interfaces/org.freedesktop.MediaPlayer.player.xml
/usr/share/dbus-1/interfaces/org.freedesktop.MediaPlayer.root.xml
/usr/share/dbus-1/interfaces/org.freedesktop.MediaPlayer.tracklist.xml
/usr/share/icons/hicolor/*/apps/amarok.*
%_kde_share_dir/apps/amarok
%_kde_share_dir/apps/desktoptheme/Amarok-Mockup
%_kde_share_dir/apps/desktoptheme/amarok-default.desktop
%_kde_share_dir/apps/desktoptheme/default/widgets/amarok-*
%_kde_share_dir/config.kcfg/amarok.kcfg 
%_kde_config_dir/amarok.knsrc 
%_kde_share_dir/services/ServiceMenus/amarok_append.desktop
%_kde_share_dir/services/amarok-*
%_kde_share_dir/services/amarok_*
%_kde_share_dir/servicetypes/amarok_*
%_kde_share_dir/services/amaroklastfm.protocol

%changelog
* Sat Jan 10 2009 stbinner@suse.de
- update to 2.0.0.1: fix possible buffer overflows when parsing
  Audible .aa files (bnc#465098)
* Fri Jan 09 2009 llunak@suse.cz
- add more variants of ogg mimetypes to amarok.desktop (bnc#438718)
* Tue Jan 06 2009 stbinner@suse.de
- update to 2.0.1
  * Add advanced, configurable, searching and filtering to playlist.
  * Add "Stop after track" option to the playlist menu.
  * Queue track functionality has returned.
  * Add automatic recovery option to MySQL embedded server.
  * Greatly improved Librivox.org service script. It now works for
  all books, and dynamically fetches a summary of each book that
  is shown in the service info applet. The script now also has a
  propper icon in the service browser and its own emblem and
  default "album" cover for books.
  * Sorting collection by Composer is now possible.
  * Service scripts can now dynamically fetch context info when
  items are selected (info can still be applied statically to
  each item as well).
  * Album items from a service script can now have custom covers.
  * Items from a service script can now have a custom emblem.
  * Service scripts can now set custom icons for the service browser.
  * Add simple filtering to the service browser.
  * Podcast channels are automatically refreshed once per hour if
  autoscan is enabled.
* Wed Dec 31 2008 stbinner@suse.de
- gdkpixbuf is required for pod support
* Tue Dec 30 2008 stbinner@suse.de
- don't require errmsg.sys from mysql package (bnc#450318)
* Mon Dec 15 2008 dmueller@suse.de
- add missing requirement on qt4-sql-sqlite
- use mysql embedded instead of mysql server
* Sun Dec 14 2008 meissner@suse.de
- fixed a crash with MTP devices without sufficient permissions.
  bnc#457931
* Sat Dec 06 2008 stbinner@suse.de
- update to Amarok 2.0 final release tarball plus official patches:
  CHANGES:
  * Removed the KBookmarks menu in the FileBrowser because it
  causes crashes.
  * The Organize Collection dialog has been improved.
  * Last.Fm service now uses KIO for network access, respects
  desktop proxy settings.
  BUGFIXES:
  * Fix bug that showed misplaced applets in the Context View
  after resizing the window and changing to another containment.
  * Don't try to squeeze text into wrongly tiny space, make the track
  label in the tag dialog work again.
  * Collection setup directory chooser would incorrectly set some paths as
  disabled. Patch thanks to Ben Boeckel <MathStuf@gmail.com>.
  * Fix shadows around the cover in the current track applet (and
  potentially other places as well) getting progresssively darker.
  * Don't compare Solid and libmtp's serial number to connect.
  * Workaround a bug in the CurrentEngine class that makes the nocover image
  look grainy in the currenttrack applet.
  * Dragging and Dropping folders from the filebrowser into the playlist will
  now result in the tracks being ordered correctly.
  * Fixed deletion for downloaded podcast episodes
  * Show artists in Cover Manager sorted alphabetically.
  * Fix reading of windows playlists, recognise \ as directory separator.
  * Fix crash when searching in collections.
  * Prevent disabled MP3tunes service from being initialized on first run.
  * Elide text properly in applet chooser widget.
  * Fixed potential crash when playing streams.
  * Don't show wrong metadata for Last.fm radio.
  * Don't try to squeeze text into wrongly tiny space, make the track label
  in the tag dialog work again.
  * Expand applets width when a complete column has been removed.
  * Don't try to fetch another cover if there are no more albums to fetch
  for.
  * Don't crash when trying to edit the details of a track without an artist
  or album.
* Sat Nov 29 2008 stbinner@suse.de
- update to post-RC1 snapshot tarball provided by Amarok team:
  FEATURES:
  * Added read/write configuration APIs for Qtscript.
  CHANGES:
  * Added icons to the filename scheme and organize collection dialogs.
  * Added an OK button for the script manager.
  BUGFIXES:
  * Magnatune.com store: Correctly show progress info when downloading.
  * Magnatune.com store: Fix purchase/download of wrong album being initiated
  when selecting "Purchase" or "Download" from the playlist context menu.
  * Fix a bug that stopping a running script crashes amarok.
  * The context view could sometimes show the "stopped state" even when
  a track was playing.
  * Amarok 1.4 database importer would crash under some circumstances.
  * Covers could not be fetched from Amazon Japan.
  * Fix a bug that the script manager deletes wrong entry after script
  installation.
  * Make lyrics auto-display when applet is added while a song is playing.
  * "Watch folders for changes" actually works now
  * Fix a bug that caused dynamic playlists not to repopulate.
  * Fixed potential issues with malformed XML breaking the collection scan.
  * Focus of text fields no longer lost when changing tracks using the Next/
  Previous buttons in tag dialog.
  * Sort Podcasts in the right order.
* Fri Nov 21 2008 stbinner@suse.de
- update to 1.98 (2.0 Release Candidate 1)
  FEATURES:
  * Users' Recommended radio is now shown in the Last.Fm Service.
  * Playlist browser items can be deleted and renamed using the keyboard.
  * Basic and Advanced view when editing a filename scheme are synchronized.
  * Added delete button to Advanced view for defining a filename scheme.
  * Importer for iTunes libraries now allows you to import your statistics
  from iTunes.
  * The settings dialog now remembers the page that was last used.
  * Track information can be edited from the file browser.
  CHANGES:
  * Video and Last.fm applet have been disabled. They are not ready for release.
  * Ipods and MTP devices auto-connect again for usability.
  * Ipod Collections can now delete multiple tracks at once.
  * User playlists added from files are now updated on collection rescans, so
  any changes in the file is reflected in the SQL playlist.
  * Layout refactoring in the Organize Collection dialog.
  * Enabled Last.fm scrobbling by default when Last.fm login is supplied.
  * Amarok now allows opening of video files again.
  * "Show active track" has been moved from the playlist context menu to the
  playlist toolbar.
  BUGFIXES: too many to copy them all here :-)
* Wed Nov 12 2008 dmueller@suse.de
- call post_install hook to update desktop translations
* Wed Nov 05 2008 dmueller@suse.de
- use minimal-toc to fix build on ppc(64)
* Tue Nov 04 2008 stbinner@suse.de
- update to 1.94 (2.0 Beta 3):
  * playlist and statusbar recieved major attention
  * database/statistics import from Amarok 1.4
  * major overhaul of the Last.fm integration
  * sorting by year and album in the Collection Browser is
  possible again (small, but often requested)
  * shortcut to jump to current track in the playlist
  * many, many bugs squashed and stability fixes
* Thu Oct 16 2008 stbinner@suse.de
- split off kde4-amarok-lang package
* Mon Oct 06 2008 dmueller@suse.de
- update to 1.92.2 (2.0 Beta2)
  * music database is now using mysql embedded
  * various fixes / new features
* Tue Sep 09 2008 dmueller@suse.de
- fix uninitialized return value warnings
* Wed Aug 20 2008 dmueller@suse.de
- update to 1.90 (2.0 Beta1)
* Mon Jul 21 2008 dmueller@suse.de
- update to 1.86 (2.0 Alpha2)
* Thu Jul 10 2008 dmueller@suse.de
- update to 1.83 (2.0 Alpha1)
* Thu Jun 26 2008 dmueller@suse.de
- update to 4.0.84.svn824686
* Tue Jun 24 2008 dmueller@suse.de
- update to 4.0.81.svn823998
* Tue Jun 03 2008 dmueller@suse.de
- update to 4.0.81.svn816194
* Thu May 15 2008 dmueller@suse.de
- update to 4.0.74.svn808129
* Wed May 07 2008 dmueller@suse.de
- update to 4.0.73.svn805196
* Thu Apr 24 2008 dmueller@suse.de
- update to 4.0.71.svn800684
* Fri Apr 18 2008 dmueller@suse.de
- update to 4.0.69.svn798537
* Wed Apr 02 2008 dmueller@suse.de
- update to 4.0.68.svn792936
* Thu Feb 14 2008 dmueller@suse.de
- update to 4.0.62.svn775117
* Wed Nov 28 2007 dmueller@suse.de
- update to 3.96.0.svn742626
* Thu Nov 01 2007 dmueller@suse.de
- update to 3.95.0.svn731749
openSUSE Build Service is sponsored by