1 Summary: A music player and library organiser
5 License: GPL v3 and GPL v2+
6 Group: Applications/Multimedia
7 URL: http://code.google.com/p/clementine-player
8 Source0: http://clementine-player.googlecode.com/files/%{name}_%{version}-1.tar.gz
9 # Source0-md5: bf89adb26808fec6201499375de95507
10 Patch0: %{name}-dont-bundle-external-lib.patch
11 Patch1: %{name}-static.patch
12 Patch2: desktop-install.patch
13 BuildRequires: QtSingleApplication-devel
14 BuildRequires: boost-devel
15 BuildRequires: cmake >= 2.6
16 BuildRequires: desktop-file-utils
17 BuildRequires: gtest-devel
18 BuildRequires: liblastfm-devel
19 BuildRequires: libnotify-devel
20 BuildRequires: libqxt-devel
21 BuildRequires: notification-daemon
22 BuildRequires: qt4-build
23 BuildRequires: rpmbuild(macros) >= 1.198
24 BuildRequires: sed >= 4.0
25 BuildRequires: sqlite-devel
26 BuildRequires: taglib-devel
27 BuildRequires: xine-lib-devel
28 Requires(post,postun): desktop-file-utils
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Clementine is a modern music player and library organiser. It is
33 largely a port of Amarok 1.4, with some features rewritten to take
42 # We already don't use these but just to make sure
45 # Don't build tests. They require gmock
46 sed -i -e '/tests/d' CMakeLists.txt
52 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
57 rm -rf $RPM_BUILD_ROOT
58 %{__make} -C build install \
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %update_desktop_database_post
68 %update_desktop_database_postun
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/clementine
74 %{_desktopdir}/clementine.desktop
75 %{_pixmapsdir}/clementine.png