%define name clementine %define version 0.7.1 %define release 5 %define Summary A cross-platform music player based on Amarok 1.4 Summary: %Summary Name: %name Version: %version Release: %release Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz Source1: Clementine.conf Source2: icon_large.png Source3: icon.png Source4: icon.svg Patch0: clementine-0.6-use-default-language.patch Patch1: clementine-0.7.1-pt_BR_translations.patch Patch2: clementine-0.7.1_fix_description.patch License: GPLv3 Group: Sound URL: http://www.clementine-player.org/ BuildRequires: qt4-devel >= 4.5.0 BuildRequires: taglib-devel >= 1.6 BuildRequires: liblastfm-devel BuildRequires: libboost-devel BuildRequires: qt4-linguist BuildRequires: gstreamer0.10-devel BuildRequires: cmake BuildRequires: glew-devel BuildRequires: libmtp-devel BuildRequires: usbmuxd-devel BuildRequires: libplist-devel BuildRequires: libimobiledevice-devel BuildRequires: libindicate-qt-devel BuildRequires: echonest-devel BuildRequires: libgpod-devel >= 0.7.92 Requires: libprojectm-data Requires: qt4-database-plugin-sqlite Requires: gstreamer0.10-flac Requires: gstreamer0.10-plugins-ugly Suggests: gstreamer0.10-decoders-audio # Needed to be able to mount ipod/iphone/ipad (not tested locally) but it's also pulling gvfs # which is need at least to mount mtp devices (tested locally) Suggests: gvfs-iphone %description Clementine is a modern music player and library organiser. It is inspired by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and playing your music. Features include: * Search and play your local music library * Listen to internet radio from Last.fm, SomaFM, Magnatune, Jamendo and Icecast * Create smart playlists and dynamic playlists * Tabbed playlists, import and export M3U, XSPF, PLS and ASX * Visualisations from projectM * Lyrics and artist biographies and photos * Transcode music into MP3, Ogg Vorbis, Ogg Speex, FLAC or AAC * Edit tags on MP3 and OGG files, organise your music * Download missing album cover art from Last.fm * Cross-platform - works on Windows, Mac OS X and Linux * Native desktop notifications on Linux (libnotify) and Mac OS X (Growl) * Remote control using a Wii Remote, MPRIS or the command-line * Copy music to your iPod, iPhone, MTP or mass-storage USB player * Queue manager %files %defattr(-,root,root) %_bindir/clementine %_datadir/applications/clementine.desktop %_iconsdir/hicolor/64x64/apps/application-x-clementine.png %_iconsdir/hicolor/scalable/apps/application-x-clementine.svg %config %{_sysconfdir}/Clementine/Clementine.conf #--------------------------------------------------------------------- %prep %setup -q %apply_patches cp -ua %{_sourcedir}/icon.png %{buildroot}/data/icon.png cp -ua %{_sourcedir}/128.png %{buildroot}/data/icon_large.png cp -ua %{_sourcedir}/16.png %{buildroot}/dist/clementine_16.png cp -ua %{_sourcedir}/32.png %{buildroot}/dist/clementine_32.png %build %cmake_qt4 -DBUNDLE_PROJECTM_PRESETS=OFF %make %install %__rm -rf %buildroot %makeinstall_std -C build rm -f %{buildroot}/usr/share/icons/ubuntu-mono-{dark,light}/apps/24/clementine-panel*.png #cp -ua %{_sourcedir}/64.png %{buildroot}/dist/clementine_64.png install -m 644 -D %{_sourcedir}/Clementine.conf \ %{buildroot}%{_sysconfdir}/Clementine/Clementine.conf %clean %__rm -rf %buildroot