]>
Commit | Line | Data |
---|---|---|
bf1e6952 ER |
1 | Summary: A music player and library organiser |
2 | Name: clementine | |
3 | Version: 0.2 | |
726826ed | 4 | Release: 0.3 |
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 | |
726826ed | 23 | BuildRequires: rpmbuild(macros) >= 1.198 |
bf1e6952 ER |
24 | BuildRequires: sed >= 4.0 |
25 | BuildRequires: sqlite-devel | |
26 | BuildRequires: taglib-devel | |
27 | BuildRequires: xine-lib-devel | |
726826ed | 28 | Requires(post,postun): desktop-file-utils |
bf1e6952 ER |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
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 | |
34 | advantage of Qt4. | |
35 | ||
36 | %prep | |
37 | %setup -q | |
38 | %patch0 -p1 | |
39 | %patch1 -p1 | |
7279ad3f | 40 | %patch2 -p1 |
bf1e6952 ER |
41 | |
42 | # We already don't use these but just to make sure | |
43 | rm -fr 3rdparty | |
44 | ||
7279ad3f ER |
45 | # Don't build tests. They require gmock |
46 | sed -i -e '/tests/d' CMakeLists.txt | |
bf1e6952 ER |
47 | |
48 | %build | |
49 | install -d build | |
50 | cd build | |
88ca6f4b ER |
51 | %cmake \ |
52 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
53 | .. | |
bf1e6952 ER |
54 | %{__make} |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | %{__make} -C build install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
726826ed ER |
64 | %post |
65 | %update_desktop_database_post | |
66 | ||
67 | %postun | |
68 | %update_desktop_database_postun | |
69 | ||
bf1e6952 ER |
70 | %files |
71 | %defattr(644,root,root,755) | |
72 | %doc Changelog TODO | |
73 | %attr(755,root,root) %{_bindir}/clementine | |
74 | %{_desktopdir}/clementine.desktop | |
7279ad3f | 75 | %{_pixmapsdir}/clementine.png |