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
9 # - make engines pluggable not statically linked, then could enable the bconds
12 %bcond_with engine_xine # without xine engine
13 %bcond_with engine_vlc # without vlc engine
14 %bcond_with engine_qt_phonon # without qt-phonon engine
15 %bcond_without engine_gstreamer # without gstreamer engine
16 %bcond_with static_sqlite # with static sqlite3
18 Summary: A music player and library organiser
19 Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő
23 License: GPL v3 and GPL v2+
24 Group: Applications/Multimedia
25 URL: http://code.google.com/p/clementine-player
26 Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
27 # Source0-md5: c6819b0d2a8324f1d686fb5a3b1d287b
28 Patch0: %{name}-dont-bundle-external-lib.patch
29 Patch2: desktop-install.patch
30 BuildRequires: QtCore-devel
31 BuildRequires: QtDBus-devel
32 BuildRequires: QtGui-devel
33 BuildRequires: QtIOCompressor-devel
34 BuildRequires: QtNetwork-devel
35 BuildRequires: QtOpenGL-devel
36 BuildRequires: QtSingleApplication-devel
37 BuildRequires: QtSql-devel
38 BuildRequires: QtTest-devel
39 BuildRequires: boost-devel
40 BuildRequires: cmake >= 2.6
41 BuildRequires: desktop-file-utils
42 BuildRequires: gettext-devel
43 BuildRequires: gstreamer-devel
44 BuildRequires: gstreamer-devel >= 0.10
45 BuildRequires: gstreamer-plugins-base-devel >= 0.10
46 BuildRequires: gtest-devel
47 BuildRequires: liblastfm-devel
48 BuildRequires: libnotify-devel
49 #BuildRequires: libprojectM-devel
50 BuildRequires: libqxt-devel
51 #BuildRequires: libqxt-devel >= 0.6.0-0.2
52 BuildRequires: notification-daemon
53 BuildRequires: phonon-devel
54 BuildRequires: pkgconfig
55 BuildRequires: qt4-build
56 BuildRequires: qt4-linguist
57 BuildRequires: qt4-qmake
58 BuildRequires: rpmbuild(macros) >= 1.198
59 BuildRequires: sed >= 4.0
60 %{!?with_static_sqlite:BuildRequires: sqlite3-devel}
61 BuildRequires: taglib-devel >= 1.6
62 BuildRequires: vlc-devel
63 BuildRequires: xine-lib-devel
64 Requires(post,postun): desktop-file-utils
65 %{!?with_static_sqlite:Requires: QtSql-sqlite3}
66 # while we do not link (yet), we use datafiles
68 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
70 # see libprojectM.spec for explanation
71 %define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
74 Clementine is a modern music player and library organiser. It is
75 largely a port of Amarok 1.4, with some features rewritten to take
78 %description -l hu.UTF-8
79 Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt
80 az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa
88 # We already don't use these but just to make sure
90 %{!?with_static_sqlite:rm -rf 3rdparty/qsqlite}
91 rm -rf 3rdparty/qtsingleapplication
93 rm -rf 3rdparty/qtiocompressor
95 # Don't build tests. They require gmock
96 sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
102 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
103 -DBUNDLE_PROJECTM_PRESETS=OFF \
104 -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \
105 -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \
106 -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \
107 -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \
108 -DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \
113 rm -rf $RPM_BUILD_ROOT
114 %{__make} -C build install \
115 DESTDIR=$RPM_BUILD_ROOT
118 rm -rf $RPM_BUILD_ROOT
121 %update_desktop_database_post
124 %update_desktop_database_postun
127 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_bindir}/clementine
130 %{_desktopdir}/clementine.desktop
131 %{_pixmapsdir}/clementine.png