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
|
|
|
|
|
2016-04-17 01:48:38 +10:00
|
|
|
%define gstapi 1.0
|
2014-03-04 02:10:59 +11:00
|
|
|
%define oname Clementine
|
2013-10-16 17:04:39 +11:00
|
|
|
|
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
|
2016-05-04 00:26:45 +10:00
|
|
|
Version: 1.3.1
|
2018-01-09 18:36:01 +10:00
|
|
|
Release: 8%{?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/
|
2016-04-17 01:48:38 +10:00
|
|
|
Source0: https://github.com/clementine-player/Clementine/archive/%{oname}-%{version}.tar.gz
|
2012-02-01 15:15:47 +04:00
|
|
|
Source1: Clementine.conf
|
2016-04-17 01:48:38 +10:00
|
|
|
Patch0: clementine-1.3-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
|
2016-04-17 01:48:38 +10:00
|
|
|
Patch1: clementine-1.3-metalarchives.patch
|
|
|
|
Patch4: clementine-1.3-initial-preference.patch
|
2013-10-22 21:54:36 +11:00
|
|
|
# Localization issues
|
2016-04-17 01:48:38 +10:00
|
|
|
Patch5: clementine-1.3-l10n-ru-desktop.patch
|
|
|
|
Patch6: clementine-1.3-l10n-ru-search.patch
|
|
|
|
Patch7: clementine-1.3-play-folder.patch
|
2016-05-04 00:26:45 +10:00
|
|
|
# RockRadio.com has Premium access for long time already
|
|
|
|
# It's especially imported to fix after free access to DI.fm services was disabled
|
|
|
|
# https://github.com/clementine-player/Clementine/commit/3ab20defce71a009bf180255642c18fa671650f9
|
|
|
|
Patch8: clementine-1.3.1-rockradio-premium.patch
|
2016-05-27 15:49:47 +10:00
|
|
|
Patch9: clementine-1.3.1-sqlite-3.12.patch
|
2012-07-04 08:22:24 +04:00
|
|
|
|
2017-08-09 15:07:13 +10:00
|
|
|
# Upstream patches
|
|
|
|
Patch10: clementine-1.3.1-fix-playlist-behaviour.patch
|
|
|
|
Patch11: clementine-1.3.1-remove-echonest-1.patch
|
|
|
|
Patch12: clementine-1.3.1-remove-echonest-2.patch
|
|
|
|
Patch13: clementine-1.3.1-remove-echonest-3.patch
|
|
|
|
Patch14: clementine-1.3.1-remove-echonest-4.patch
|
|
|
|
Patch15: clementine-1.3.1-remove-echonest-5.patch
|
|
|
|
Patch16: clementine-1.3.1-remove-echonest-6.patch
|
|
|
|
Patch17: clementine-1.3.1-remove-echonest-7.patch
|
|
|
|
|
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
|
2016-04-17 01:48:38 +10:00
|
|
|
BuildRequires: pkgconfig(cryptopp)
|
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})
|
2016-04-17 01:48:38 +10:00
|
|
|
BuildRequires: pkgconfig(gstreamer-app-%{gstapi})
|
|
|
|
BuildRequires: pkgconfig(gstreamer-audio-%{gstapi})
|
|
|
|
BuildRequires: pkgconfig(gstreamer-base-%{gstapi})
|
2013-10-16 17:04:39 +11:00
|
|
|
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(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)
|
2016-04-17 01:48:38 +10:00
|
|
|
# For Google Drive and Amazon Cloud integration
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: pkgconfig(libsparsehash)
|
|
|
|
%if %{with plf}
|
2016-04-17 02:02:24 +10:00
|
|
|
BuildRequires: protobuf-static-devel
|
2013-10-16 17:04:39 +11:00
|
|
|
BuildRequires: pkgconfig(libspotify)
|
|
|
|
%endif
|
2012-10-26 03:00:59 +00:00
|
|
|
BuildRequires: pkgconfig(protobuf)
|
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
|
2015-05-26 17:08:39 +04:00
|
|
|
Suggests: gstreamer%{gstapi}-faac
|
|
|
|
Suggests: gstreamer%{gstapi}-faad
|
2015-10-09 16:35:12 +04:00
|
|
|
Suggests: gstreamer%{gstapi}-lame
|
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
|
2013-10-28 21:03:50 +11:00
|
|
|
* Edit tags on MP3 and OGG files, organize your music
|
2012-07-04 08:22:24 +04:00
|
|
|
* 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
|
2016-04-17 01:48:38 +10:00
|
|
|
%{_datadir}/appdata/clementine.appdata.xml
|
2012-07-04 08:22:24 +04:00
|
|
|
%{_datadir}/applications/clementine.desktop
|
2016-04-17 01:48:38 +10:00
|
|
|
%{_iconsdir}/hicolor/*/apps/clementine.*
|
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
|
2015-05-26 23:41:29 +10:00
|
|
|
%setup -qn %{oname}-%{version}
|
2013-10-16 17:04:39 +11:00
|
|
|
%patch0 -p1 -b .mygpo~
|
2012-07-04 08:22:24 +04:00
|
|
|
%patch1 -p1 -b .ma~
|
2016-04-17 01:48:38 +10:00
|
|
|
%patch4 -p1 -b .initial~
|
|
|
|
%patch5 -p1 -b .l10n~
|
|
|
|
%patch6 -p1 -b .l10n~
|
2016-05-04 00:26:45 +10:00
|
|
|
%patch7 -p1 -b .desktop~
|
|
|
|
%patch8 -p1 -b .rockradio~
|
2016-05-27 15:49:47 +10:00
|
|
|
%patch9 -p1 -b .sqlite312~
|
2014-03-04 02:10:59 +11:00
|
|
|
|
2017-08-09 15:07:13 +10:00
|
|
|
%patch10 -p1 -b .playlist~
|
|
|
|
%patch11 -p1 -b .echonest1~
|
|
|
|
%patch12 -p1 -b .echonest2~
|
|
|
|
%patch13 -p1 -b .echonest3~
|
|
|
|
%patch14 -p1 -b .echonest4~
|
|
|
|
%patch15 -p1 -b .echonest5~
|
|
|
|
%patch16 -p1 -b .echonest6~
|
|
|
|
%patch17 -p1 -b .echonest7~
|
|
|
|
|
2012-02-01 15:15:47 +04:00
|
|
|
%build
|
2013-10-16 17:04:39 +11:00
|
|
|
%cmake_qt4 \
|
2016-04-17 01:48:38 +10:00
|
|
|
-DENABLE_AMAZON_CLOUD_DRIVE:BOOL=ON \
|
2017-08-14 18:55:22 +10:00
|
|
|
-DENABLE_VK=OFF \
|
2013-10-16 17:04:39 +11:00
|
|
|
-DBUNDLE_PROJECTM_PRESETS=OFF \
|
|
|
|
-DBUILD_WERROR=OFF
|
2014-05-26 20:14:14 +11:00
|
|
|
%make VERBOSE=1
|
2012-02-01 15:15:47 +04:00
|
|
|
|
|
|
|
%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
|
2013-10-16 20:00:35 +11:00
|
|
|
rm -rf %{buildroot}/builddir
|
2012-12-12 09:18:52 +04:00
|
|
|
rm -rf %{buildroot}/home
|
|
|
|
%endif
|
2013-10-25 00:24:13 +11:00
|
|
|
|