# 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: 1.1.1
-Release: 2
+Release: 5
License: GPL v3 and GPL v2+
Group: Applications/Multimedia
URL: http://www.clementine-player.org/
BuildRequires: pkgconfig
BuildRequires: pkgconfig
BuildRequires: protobuf-devel
+BuildRequires: qca-devel
BuildRequires: qjson-devel
BuildRequires: qt4-build >= %{qtver}
BuildRequires: qt4-linguist
Requires: QtSingleApplication >= 2.6-4
%{!?with_static_sqlite:Requires: QtSql-sqlite3 >= %{qtver}}
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} \