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