clementine/clementine.spec

151 lines
4.9 KiB
RPMSpec
Raw Normal View History

######################
# Hardcode PLF build
%bcond_with plf
######################
%if %{with plf}
# make EVR of plf build higher than regular to allow update, needed with rpm5 mkrel
%define extrarelsuffix plf
%endif
%bcond_with system_vreen
2013-10-17 00:56:44 +11:00
%define gstapi 1.0
2014-03-04 02:10:59 +11:00
%define oname Clementine
2012-07-04 08:22:24 +04:00
Summary: A cross-platform music player based on Amarok 1.4
Name: clementine
Version: 1.3.1
Release: 1%{?extrarelsuffix}
License: GPLv3+
2012-07-04 08:22:24 +04:00
Group: Sound
Url: http://www.clementine-player.org/
Source0: https://github.com/clementine-player/Clementine/archive/%{oname}-%{version}.tar.gz
2012-02-01 15:15:47 +04:00
Source1: Clementine.conf
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
Patch1: clementine-1.3-metalarchives.patch
# Some ROSA adjustments to vk.com support (use system vreen library etc)
Patch2: clementine-1.3-system-vreen.patch
Patch3: clementine-1.2.0-vkontakte-tags.patch
Patch4: clementine-1.3-initial-preference.patch
# Localization issues
Patch5: clementine-1.3-l10n-ru-desktop.patch
Patch6: clementine-1.3-l10n-ru-search.patch
Patch7: clementine-1.3-play-folder.patch
# 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
2012-07-04 08:22:24 +04:00
2012-02-01 15:15:47 +04:00
BuildRequires: cmake
BuildRequires: qt4-linguist
BuildRequires: boost-devel
BuildRequires: liblastfm-devel
BuildRequires: qt4-devel >= 4.5.0
BuildRequires: pkgconfig(cryptopp)
2012-08-26 15:32:20 +11:00
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(gstreamer-%{gstapi})
BuildRequires: pkgconfig(gstreamer-app-%{gstapi})
BuildRequires: pkgconfig(gstreamer-audio-%{gstapi})
BuildRequires: pkgconfig(gstreamer-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)
BuildRequires: pkgconfig(libechonest)
BuildRequires: pkgconfig(libgpod-1.0)
2012-08-26 15:32:20 +11:00
BuildRequires: pkgconfig(libmtp)
BuildRequires: pkgconfig(libmygpo-qt)
# For Google Drive and Amazon Cloud integration
BuildRequires: pkgconfig(libsparsehash)
%if %{with plf}
BuildRequires: protobuf-static-devel
BuildRequires: pkgconfig(libspotify)
%endif
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(QJson)
BuildRequires: pkgconfig(taglib) >= 1.6
%if %{with system_vreen}
2013-10-17 00:56:44 +11:00
BuildRequires: pkgconfig(vreen)
BuildRequires: pkgconfig(vreenoauth)
%endif
2012-02-01 15:15:47 +04:00
Requires: libprojectm-data
Requires: qt4-database-plugin-sqlite
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
* 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
%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
%{_datadir}/appdata/clementine.appdata.xml
2012-07-04 08:22:24 +04:00
%{_datadir}/applications/clementine.desktop
%{_iconsdir}/hicolor/*/apps/clementine.*
%if %{with plf}
%{_bindir}/clementine-spotifyblob
%endif
2012-07-04 08:22:24 +04:00
#----------------------------------------------------------------------------
2012-02-01 15:15:47 +04:00
%prep
%setup -qn %{oname}-%{version}
%patch0 -p1 -b .mygpo~
2012-07-04 08:22:24 +04:00
%patch1 -p1 -b .ma~
%if %{with system_vreen}
%patch2 -p1 -b .vreen~
2013-10-17 00:56:44 +11:00
%endif
%patch3 -p1 -b .vkontakte~
%patch4 -p1 -b .initial~
%patch5 -p1 -b .l10n~
%patch6 -p1 -b .l10n~
%patch7 -p1 -b .desktop~
%patch8 -p1 -b .rockradio~
2014-03-04 02:10:59 +11:00
2012-02-01 15:15:47 +04:00
%build
%cmake_qt4 \
-DENABLE_AMAZON_CLOUD_DRIVE:BOOL=ON \
-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
2012-10-26 04:11:58 +00:00
install -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/Clementine/Clementine.conf
%if %{with plf}
# Ugly hack, not sure why that file appears
2013-10-16 20:00:35 +11:00
rm -rf %{buildroot}/builddir
rm -rf %{buildroot}/home
%endif
2013-10-25 00:24:13 +11:00