# TODO:
# - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed."
# - apply patches to libprojectM.spec and use
+# - checking for module 'libspotify>=12.1.45' - Spotify support: non-GPL binary helper (missing libspotify)
+# - checking for module 'libchromaprint'
+# - Google Drive support (missing Google sparsehash)
+# - package for kde4 stuff (or nuke them):
+# /usr/share/kde4/services/clementine-feed.protocol
+# /usr/share/kde4/services/clementine-itms.protocol
+# /usr/share/kde4/services/clementine-itpc.protocol
+# /usr/share/kde4/services/clementine-zune.protocol
#
# Conditional build:
%bcond_without static_sqlite # with static sqlite3
%bcond_with static_projectm # with static projectM
-%define qtver %(pkg-config --silence-errors --modversion QtCore 2>/dev/null || echo ERROR)
+%define qtver %(pkg-config --silence-errors --modversion QtCore 2>/dev/null || echo ERROR)
Summary: A music player and library organiser
Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő
Name: clementine
-Version: 0.7.1
-Release: 2
+Version: 1.1.1
+Release: 5
License: GPL v3 and GPL v2+
Group: Applications/Multimedia
URL: http://www.clementine-player.org/
Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5: 997f38d6bbd6b2fa9bf587eb89c5c2ec
+# Source0-md5: 28e4afb822388bd337a761db8f86febf
Patch0: desktop-install.patch
Patch1: unbundle-po.patch
BuildRequires: QtCore-devel >= %{qtver}
BuildRequires: gettext-devel
%{?with_static_projectm:BuildRequires: glew-devel}
BuildRequires: glib2-devel
-BuildRequires: gstreamer-devel >= 0.10
+BuildRequires: gstreamer0.10-devel
+BuildRequires: gstreamer0.10-plugins-base-devel
BuildRequires: gtest-devel
BuildRequires: libgpod-devel >= 0.7.92
BuildRequires: libimobiledevice-devel
BuildRequires: libindicate-qt-devel
-BuildRequires: liblastfm-devel
+BuildRequires: liblastfm-devel >= 0.3.3
BuildRequires: libmtp-devel
BuildRequires: libplist-devel
%{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4}
BuildRequires: libxml2-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig
+BuildRequires: protobuf-devel
+BuildRequires: qca-devel
+BuildRequires: qjson-devel
BuildRequires: qt4-build >= %{qtver}
BuildRequires: qt4-linguist
BuildRequires: qt4-qmake
Requires(post,postun): hicolor-icon-theme
Requires: QtSingleApplication >= 2.6-4
%{!?with_static_sqlite:Requires: QtSql-sqlite3 >= %{qtver}}
-Requires: gstreamer-audio-effects-base
+Requires: gstreamer0.10-audio-effects-base
+Requires: gstreamer0.10-mad
# while we do not link (yet), we use datafiles
Requires: libprojectM
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a Qt4 előnyeit.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%patch0 -p1
%patch1 -p1
sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
# remove -Wall
sed -i -e 's/-Wall//' src/CMakeLists.txt
+# ...and -Werror
+sed -i -e 's/-Werror//' src/CMakeLists.txt
%build
install -d build
install -d build/src/translations
cd build
+# as our buildtype is not Release, need to pass these manually. see CMakeLists.txt ~125
+CXXFLAGS="%{rpmcxxflags} -DNDEBUG -DQT_NO_DEBUG_OUTPUT"
%cmake \
-DBUNDLE_PROJECTM_PRESETS=OFF \
-DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \
- -DQTSINGLEAPPLICATION_INCLUDE_DIRS=%{_includedir}/qt4/QtSolutions/ \
+ -DQTSINGLEAPPLICATION_INCLUDE_DIRS=%{_includedir}/qt4/QtSolutions/ \
-DUSE_SYSTEM_QXT=ON \
-DUSE_SYSTEM_PROJECTM=ON \
-DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \
rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg
+# not in our glibc?
+rm -r $RPM_BUILD_ROOT%{_localedir}/tr_TR
+
%find_lang %{name} --with-qm
install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc Changelog TODO
+%doc Changelog
%attr(755,root,root) %{_bindir}/clementine
+%attr(755,root,root) %{_bindir}/clementine-tagreader
%{_desktopdir}/clementine.desktop
%{_pixmapsdir}/clementine.png
%{_iconsdir}/hicolor/*/apps/clementine-panel-grey.png