clementine/clementine.spec

122 lines
4 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
%define gstapi 0.10
2012-07-04 08:22:24 +04:00
Summary: A cross-platform music player based on Amarok 1.4
Name: clementine
Version: 1.2.0
2013-10-16 17:17:31 +11:00
Release: 3%{?extrarelsuffix}
License: GPLv3+
2012-07-04 08:22:24 +04:00
Group: Sound
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
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
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
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
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)
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)
BuildRequires: pkgconfig(libechonest)
BuildRequires: pkgconfig(libgpod-1.0)
2012-08-26 15:32:20 +11:00
BuildRequires: pkgconfig(libmtp)
BuildRequires: pkgconfig(libmygpo-qt)
2012-08-26 15:32:20 +11:00
BuildRequires: pkgconfig(libplist)
# For Google Drive integration
BuildRequires: pkgconfig(libsparsehash)
%if %{with plf}
BuildRequires: pkgconfig(libspotify)
%endif
BuildRequires: pkgconfig(libusbmuxd)
# Disable for now as indicate-qt seems to be broken and we don't really need it anyway
#BuildRequires: pkgconfig(indicate-qt)
BuildRequires: pkgconfig(protobuf)
2013-10-16 17:17:31 +11:00
BuildRequires: pkgconfig(qca2)
BuildRequires: pkgconfig(QJson)
BuildRequires: pkgconfig(taglib) >= 1.6
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
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
%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
%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 -q
%patch0 -p1 -b .mygpo~
2012-07-04 08:22:24 +04:00
%patch1 -p1 -b .ma~
%patch2 -p1 -b .coversize~
2012-02-01 15:15:47 +04:00
%build
%cmake_qt4 \
-DBUNDLE_PROJECTM_PRESETS=OFF \
-DBUILD_WERROR=OFF
2012-02-01 15:15:47 +04:00
%make
%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
rm -rf %{buildroot}/home
%endif