3 # - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed."
4 # -- Building engines: gst
5 # -- Skipping engines: vlc xine qt-phonon
6 # The following engines are NOT supported by clementine developers:
8 # - apply patches to libprojectM.spec and use
11 %bcond_without engine_xine # without xine engine
12 %bcond_without engine_vlc # without vlc engine
13 %bcond_without engine_qt_phonon # without qt-phonon engine
14 %bcond_without engine_gstreamer # without gstreamer engine
16 Summary: A music player and library organiser
17 Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő
21 License: GPL v3 and GPL v2+
22 Group: Applications/Multimedia
23 URL: http://code.google.com/p/clementine-player
24 Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
25 # Source0-md5: c6819b0d2a8324f1d686fb5a3b1d287b
26 Patch0: %{name}-dont-bundle-external-lib.patch
27 Patch2: desktop-install.patch
28 BuildRequires: QtCore-devel
29 BuildRequires: QtDBus-devel
30 BuildRequires: QtGui-devel
31 BuildRequires: QtIOCompressor-devel
32 BuildRequires: QtNetwork-devel
33 BuildRequires: QtOpenGL-devel
34 BuildRequires: QtSingleApplication-devel
35 BuildRequires: QtSql-devel
36 BuildRequires: QtTest-devel
37 BuildRequires: boost-devel
38 BuildRequires: cmake >= 2.6
39 BuildRequires: desktop-file-utils
40 BuildRequires: gettext-devel
41 BuildRequires: gstreamer-devel
42 BuildRequires: gstreamer-devel >= 0.10
43 BuildRequires: gstreamer-plugins-base-devel >= 0.10
44 BuildRequires: gtest-devel
45 BuildRequires: liblastfm-devel
46 BuildRequires: libnotify-devel
47 #BuildRequires: libprojectM-devel
48 BuildRequires: libqxt-devel
49 #BuildRequires: libqxt-devel >= 0.6.0-0.2
50 BuildRequires: notification-daemon
51 BuildRequires: phonon-devel
52 BuildRequires: pkgconfig
53 BuildRequires: qt4-build
54 BuildRequires: qt4-linguist
55 BuildRequires: qt4-qmake
56 BuildRequires: rpmbuild(macros) >= 1.198
57 BuildRequires: sed >= 4.0
58 BuildRequires: sqlite-devel
59 BuildRequires: sqlite3-devel
60 BuildRequires: taglib-devel >= 1.6
61 BuildRequires: vlc-devel
62 BuildRequires: xine-lib-devel
63 Requires(post,postun): desktop-file-utils
64 Requires: QtSql-sqlite3
65 # while we do not link (yet), we use datafiles
67 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69 # see libprojectM.spec for explanation
70 %define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
73 Clementine is a modern music player and library organiser. It is
74 largely a port of Amarok 1.4, with some features rewritten to take
77 %description -l hu.UTF-8
78 Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt
79 az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa
87 # We already don't use these but just to make sure
89 rm -rf 3rdparty/qsqlite
90 rm -rf 3rdparty/qtsingleapplication
92 rm -rf 3rdparty/qtiocompressor
94 # Don't build tests. They require gmock
95 sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
101 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
102 -DBUNDLE_PROJECTM_PRESETS=OFF \
103 -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \
104 -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \
105 -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \
106 -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \
111 rm -rf $RPM_BUILD_ROOT
112 %{__make} -C build install \
113 DESTDIR=$RPM_BUILD_ROOT
116 rm -rf $RPM_BUILD_ROOT
119 %update_desktop_database_post
122 %update_desktop_database_postun
125 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_bindir}/clementine
128 %{_desktopdir}/clementine.desktop
129 %{_pixmapsdir}/clementine.png