2 # - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed."
3 # -- Building engines: gst
4 # -- Skipping engines: vlc xine qt-phonon
5 # The following engines are NOT supported by clementine developers:
7 # - apply patches to libprojectM.spec and use
8 # - make engines pluggable not statically linked, then could enable the bconds
11 %bcond_with engine_xine # without xine engine
12 %bcond_with engine_vlc # without vlc engine
13 %bcond_with engine_qt_phonon # without qt-phonon engine
14 %bcond_without engine_gstreamer # without gstreamer engine
15 %bcond_without static_sqlite # with static sqlite3
16 %bcond_with static_projectm # with static projectM
18 %define qtver %(pkg-config --silence-errors --modversion QtCore 2>/dev/null || echo ERROR)
19 Summary: A music player and library organiser
20 Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő
24 License: GPL v3 and GPL v2+
25 Group: Applications/Multimedia
26 URL: http://www.clementine-player.org/
27 Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
28 # Source0-md5: 7b7ee4c16f648a15eb2cff9ed2163e0e
29 Patch0: desktop-install.patch
30 Patch1: unbundle-po.patch
31 BuildRequires: QtCore-devel >= %{qtver}
32 BuildRequires: QtDBus-devel >= %{qtver}
33 BuildRequires: QtGui-devel >= %{qtver}
34 BuildRequires: QtIOCompressor-devel
35 BuildRequires: QtNetwork-devel >= %{qtver}
36 BuildRequires: QtOpenGL-devel >= %{qtver}
37 BuildRequires: QtSingleApplication-devel >= 2.6-4
38 BuildRequires: QtSql-devel >= %{qtver}
39 %{?with_tests:BuildRequires: QtTest-devel >= %{qtver}}
40 BuildRequires: QtXml-devel >= %{qtver}
41 BuildRequires: boost-devel
42 BuildRequires: cmake >= 2.6
43 #%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3}
44 BuildRequires: gettext-devel
45 %{?with_static_projectm:BuildRequires: glew-devel}
46 BuildRequires: glib2-devel
47 %{?with_engine_gstreamer:BuildRequires: gstreamer-devel >= 0.10}
48 BuildRequires: gtest-devel
49 BuildRequires: libgpod-devel >= 0.7.92
50 BuildRequires: libimobiledevice-devel
51 BuildRequires: libindicate-qt-devel
52 BuildRequires: liblastfm-devel
53 BuildRequires: libmtp-devel
54 BuildRequires: libplist-devel
55 %{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4}
56 BuildRequires: libqxt-devel
57 BuildRequires: libxml2-devel
58 %{?with_engine_phonon:BuildRequires: phonon-devel}
59 BuildRequires: pkgconfig
60 BuildRequires: pkgconfig
61 BuildRequires: qt4-build >= %{qtver}
62 BuildRequires: qt4-linguist
63 BuildRequires: qt4-qmake
64 BuildRequires: rpmbuild(find_lang) >= 1.33
65 BuildRequires: rpmbuild(macros) >= 1.596
66 BuildRequires: sed >= 4.0
67 %{!?with_static_sqlite:BuildRequires: sqlite3-devel}
68 BuildRequires: taglib-devel >= 1.6
69 BuildRequires: usbmuxd-devel
70 %{?with_engine_vlc:BuildRequires: vlc-devel}
71 %{?with_engine_xine:BuildRequires: xine-lib-devel}
72 Requires: hicolor-icon-theme
73 Requires(post,postun): desktop-file-utils
74 Requires: QtSingleApplication >= 2.6-4
75 %{!?with_static_sqlite:Requires: QtSql-sqlite3 >= %{qtver}}
76 Requires: gstreamer-audio-effects-base
77 # while we do not link (yet), we use datafiles
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 # see libprojectM.spec for explanation
82 %define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
85 Clementine is a modern music player and library organiser. It is
86 largely a port of Amarok 1.4, with some features rewritten to take
89 %description -l hu.UTF-8
90 Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt
91 az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa
99 # We already don't use these but just to make sure
100 rm -rf 3rdparty/gmock
101 %{!?with_static_sqlite:rm -rf 3rdparty/qsqlite}
102 rm -rf 3rdparty/qtsingleapplication
104 rm -rf 3rdparty/qtiocompressor
105 %{!?with_static_projectm:rm -rf 3rdparty/libprojectM}
107 # Don't build tests. They require gmock
108 sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
112 install -d build/src/translations
115 -DBUNDLE_PROJECTM_PRESETS=OFF \
116 -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \
117 -DUSE_SYSTEM_QXT=ON \
118 -DUSE_SYSTEM_PROJECTM=ON \
119 -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \
120 -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \
121 -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \
122 -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \
123 -DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \
128 rm -rf $RPM_BUILD_ROOT
129 %{__make} -C build install \
130 DESTDIR=$RPM_BUILD_ROOT
132 rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg
134 %find_lang %{name} --with-qm
136 install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps
137 cp -a $RPM_BUILD_ROOT{%{_datadir}/icons/ubuntu-mono-light/apps/24,%{_iconsdir}/hicolor/24x24/apps}/clementine-panel-grey.png
138 cp -a $RPM_BUILD_ROOT{%{_datadir}/icons/ubuntu-mono-light/apps/24,%{_iconsdir}/hicolor/24x24/apps}/clementine-panel.png
140 # don't want to depend on ubuntu themes
141 rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/ubuntu-*
144 rm -rf $RPM_BUILD_ROOT
147 %update_desktop_database_post
148 %update_icon_cache hicolor
151 %update_desktop_database_postun
152 %update_icon_cache hicolor
154 %files -f %{name}.lang
155 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_bindir}/clementine
158 %{_desktopdir}/clementine.desktop
159 %{_pixmapsdir}/clementine.png
160 %{_iconsdir}/hicolor/*/apps/clementine-panel-grey.png
161 %{_iconsdir}/hicolor/*/apps/clementine-panel.png