]>
Commit | Line | Data |
---|---|---|
bf1e6952 ER |
1 | Summary: A music player and library organiser |
2 | Name: clementine | |
3 | Version: 0.2 | |
7279ad3f | 4 | Release: 0.2 |
bf1e6952 ER |
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 | |
7279ad3f | 12 | Patch2: desktop-install.patch |
88ca6f4b | 13 | BuildRequires: QtSingleApplication-devel |
bf1e6952 | 14 | BuildRequires: boost-devel |
7279ad3f | 15 | BuildRequires: cmake >= 2.6 |
bf1e6952 ER |
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 | |
bf1e6952 ER |
23 | BuildRequires: sed >= 4.0 |
24 | BuildRequires: sqlite-devel | |
25 | BuildRequires: taglib-devel | |
26 | BuildRequires: xine-lib-devel | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Clementine is a modern music player and library organiser. It is | |
31 | largely a port of Amarok 1.4, with some features rewritten to take | |
32 | advantage of Qt4. | |
33 | ||
34 | %prep | |
35 | %setup -q | |
36 | %patch0 -p1 | |
37 | %patch1 -p1 | |
7279ad3f | 38 | %patch2 -p1 |
bf1e6952 ER |
39 | |
40 | # We already don't use these but just to make sure | |
41 | rm -fr 3rdparty | |
42 | ||
7279ad3f ER |
43 | # Don't build tests. They require gmock |
44 | sed -i -e '/tests/d' CMakeLists.txt | |
bf1e6952 ER |
45 | |
46 | %build | |
47 | install -d build | |
48 | cd build | |
88ca6f4b ER |
49 | %cmake \ |
50 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
51 | .. | |
bf1e6952 ER |
52 | %{__make} |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | %{__make} -C build install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changelog TODO | |
65 | %attr(755,root,root) %{_bindir}/clementine | |
66 | %{_desktopdir}/clementine.desktop | |
7279ad3f | 67 | %{_pixmapsdir}/clementine.png |