2012-12-12 09:18:52 +04:00
|
|
|
######################
|
|
|
|
# Hardcode PLF build
|
2013-10-16 17:04:39 +11:00
|
|
|
%bcond_with plf
|
2012-12-12 09:18:52 +04:00
|
|
|
######################
|
|
|
|
|
2013-10-16 17:04:39 +11:00
|
|
|
%if %{with plf}
|
2012-12-12 09:18:52 +04:00
|
|
|
# make EVR of plf build higher than regular to allow update, needed with rpm5 mkrel
|
|
|
|
%define extrarelsuffix plf
|
|
|
|
%endif
|
|
|
|
|
2013-10-16 17:04:39 +11:00
|
|
|
%define gstapi 0.10
|
|
|
|
|
2012-07-04 08:22:24 +04:00
|
|
|
Summary: A cross-platform music player based on Amarok 1.4
|
2013-10-16 17:04:39 +11:00
|
|
|
Name: clementine
|
|
|
|
Version: 1.2.0
|
2013-10-16 17:17:31 +11:00
|
|
|
Release: 3%{?extrarelsuffix}
|
2013-10-16 17:04:39 +11:00
|
|
|
License: GPLv3+
|
2012-07-04 08:22:24 +04:00
|
|
|
Group: Sound
|
2013-10-16 17:04:39 +11:00
|
|
|
Url: http://www.clementine-player.org/
|
2012-02-01 15:15:47 +04:00
|
|
|
Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
|
Source1: Clementine.conf
|
2013-10-16 17:04:39 +11:00
|
|
|
Patch0: clementine-1.2.0-libmygpo-qt.patch
|
2012-07-04 08:22:24 +04:00
|
|
|
# Search albums at metal-archives.com (Encyclopaedia Metallum) from:
|
|
|
|
# - Now Playing widget (album art context menu) - current album
|
|
|
|
# - Playlist (selected songs context menu) - unique selected albums
|
2013-10-16 17:04:39 +11:00
|
|
|
Patch1: clementine-1.2.0-metalarchives.patch
|
2012-07-04 08:22:24 +04:00
|
|
|
# Covers should always fit the screen resolution so we scale them if needed
|
2012-10-26 02:35:18 +00:00
|
|
|
Patch2: clementine-1.0.0-coversize.patch
|
2012-07-04 08:22:24 +04:00
|
|
|
|
2012-02-01 15:15:47 +04:00
|
|
|
BuildRequires: cmake
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: qt4-linguist
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: liblastfm-devel
|
|
|
|
BuildRequires: qt4-devel >= 4.5.0
|
2012-08-26 15:32:20 +11:00
|
|
|
BuildRequires: pkgconfig(glew)
|
|
|
|
BuildRequires: pkgconfig(glu)
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: pkgconfig(gstreamer-%{gstapi})
|
|
|
|
BuildRequires: pkgconfig(gstreamer-cdda-%{gstapi})
|
|
|
|
BuildRequires: pkgconfig(gstreamer-plugins-base-%{gstapi})
|
|
|
|
BuildRequires: pkgconfig(gstreamer-tag-%{gstapi})
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
BuildRequires: pkgconfig(libcdio)
|
2013-10-16 17:17:31 +11:00
|
|
|
BuildRequires: pkgconfig(libchromaprint)
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: pkgconfig(libechonest)
|
|
|
|
BuildRequires: pkgconfig(libgpod-1.0)
|
2012-08-26 15:32:20 +11:00
|
|
|
BuildRequires: pkgconfig(libmtp)
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: pkgconfig(libmygpo-qt)
|
2012-08-26 15:32:20 +11:00
|
|
|
BuildRequires: pkgconfig(libplist)
|
2013-10-16 17:04:39 +11:00
|
|
|
# For Google Drive integration
|
|
|
|
BuildRequires: pkgconfig(libsparsehash)
|
|
|
|
%if %{with plf}
|
|
|
|
BuildRequires: pkgconfig(libspotify)
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(libusbmuxd)
|
2012-09-12 19:02:04 +11:00
|
|
|
# Disable for now as indicate-qt seems to be broken and we don't really need it anyway
|
|
|
|
#BuildRequires: pkgconfig(indicate-qt)
|
2012-10-26 03:00:59 +00:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
2013-10-16 17:17:31 +11:00
|
|
|
BuildRequires: pkgconfig(qca2)
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: pkgconfig(QJson)
|
|
|
|
BuildRequires: pkgconfig(taglib) >= 1.6
|
2012-02-01 15:15:47 +04:00
|
|
|
Requires: libprojectm-data
|
|
|
|
Requires: qt4-database-plugin-sqlite
|
2013-10-16 17:04:39 +11:00
|
|
|
Requires: gstreamer%{gstapi}-flac
|
|
|
|
Requires: gstreamer%{gstapi}-plugins-ugly
|
|
|
|
Suggests: gstreamer%{gstapi}-decoders-audio
|
2012-02-01 15:15:47 +04:00
|
|
|
# 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. Clementine is
|
|
|
|
a port of Amarok 1.4, with some features rewritten to take advantage of
|
2012-07-04 08:22:24 +04:00
|
|
|
Qt4.
|
2012-02-01 15:15:47 +04:00
|
|
|
Features:
|
2012-07-04 08:22:24 +04:00
|
|
|
* Search and play your local music library
|
|
|
|
* Listen to internet radio from Last.fm, SomaFM and Magnatune
|
|
|
|
* Tabbed playlists, import and export M3U, XSPF, PLS and ASX
|
|
|
|
* Visualisations from projectM
|
|
|
|
* 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
|
|
|
|
* Remote control using a Wii Remote, MPRIS or the command-line
|
|
|
|
* Copy music to your iPod, iPhone, MTP or mass-storage USB player
|
|
|
|
* Queue manage
|
|
|
|
|
|
|
|
%files
|
2013-10-16 17:04:39 +11:00
|
|
|
%config %{_sysconfdir}/Clementine/Clementine.conf
|
2012-07-04 08:22:24 +04:00
|
|
|
%{_bindir}/clementine
|
2012-10-26 03:50:21 +00:00
|
|
|
%{_bindir}/clementine-tagreader
|
|
|
|
%{_datadir}/kde4/services/clementine-*.protocol
|
2012-07-04 08:22:24 +04:00
|
|
|
%{_datadir}/applications/clementine.desktop
|
|
|
|
%{_iconsdir}/hicolor/64x64/apps/application-x-clementine.png
|
|
|
|
%{_iconsdir}/hicolor/scalable/apps/application-x-clementine.svg
|
2013-10-16 17:04:39 +11:00
|
|
|
%if %{with plf}
|
2012-12-12 09:18:52 +04:00
|
|
|
%{_bindir}/clementine-spotifyblob
|
|
|
|
%endif
|
2012-07-04 08:22:24 +04:00
|
|
|
|
2013-10-16 17:04:39 +11:00
|
|
|
#----------------------------------------------------------------------------
|
2012-02-01 15:15:47 +04:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-10-16 17:04:39 +11:00
|
|
|
%patch0 -p1 -b .mygpo~
|
2012-07-04 08:22:24 +04:00
|
|
|
%patch1 -p1 -b .ma~
|
2012-10-26 02:35:18 +00:00
|
|
|
%patch2 -p1 -b .coversize~
|
2012-02-01 15:15:47 +04:00
|
|
|
|
|
|
|
%build
|
2013-10-16 17:04:39 +11:00
|
|
|
%cmake_qt4 \
|
|
|
|
-DBUNDLE_PROJECTM_PRESETS=OFF \
|
|
|
|
-DBUILD_WERROR=OFF
|
2012-02-01 15:15:47 +04:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall_std -C build
|
2013-10-16 17:04:39 +11:00
|
|
|
|
2012-10-26 04:11:58 +00:00
|
|
|
install -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/Clementine/Clementine.conf
|
2013-10-16 17:04:39 +11:00
|
|
|
|
|
|
|
%if %{with plf}
|
2012-12-12 09:18:52 +04:00
|
|
|
# Ugly hack, not sure why that file appears
|
|
|
|
rm -rf %{buildroot}/home
|
|
|
|
%endif
|