]>
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 |
b6199a83 | 13 | BuildRequires: QtCore-devel |
14 | BuildRequires: QtDBus-devel | |
15 | BuildRequires: QtGui-devel | |
16 | BuildRequires: QtNetwork-devel | |
17 | BuildRequires: QtOpenGL-devel | |
88ca6f4b | 18 | BuildRequires: QtSingleApplication-devel |
b6199a83 | 19 | BuildRequires: QtSql-devel |
20 | BuildRequires: QtTest-devel | |
bf1e6952 | 21 | BuildRequires: boost-devel |
7279ad3f | 22 | BuildRequires: cmake >= 2.6 |
bf1e6952 ER |
23 | BuildRequires: desktop-file-utils |
24 | BuildRequires: gtest-devel | |
25 | BuildRequires: liblastfm-devel | |
26 | BuildRequires: libnotify-devel | |
27 | BuildRequires: libqxt-devel | |
28 | BuildRequires: notification-daemon | |
29 | BuildRequires: qt4-build | |
b6199a83 | 30 | BuildRequires: qt4-linguist |
31 | BuildRequires: qt4-qmake | |
726826ed | 32 | BuildRequires: rpmbuild(macros) >= 1.198 |
bf1e6952 ER |
33 | BuildRequires: sed >= 4.0 |
34 | BuildRequires: sqlite-devel | |
b6199a83 | 35 | BuildRequires: sqlite3-devel |
bf1e6952 ER |
36 | BuildRequires: taglib-devel |
37 | BuildRequires: xine-lib-devel | |
726826ed | 38 | Requires(post,postun): desktop-file-utils |
bf1e6952 ER |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
40 | ||
41 | %description | |
42 | Clementine is a modern music player and library organiser. It is | |
43 | largely a port of Amarok 1.4, with some features rewritten to take | |
44 | advantage of Qt4. | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | %patch0 -p1 | |
49 | %patch1 -p1 | |
7279ad3f | 50 | %patch2 -p1 |
bf1e6952 ER |
51 | |
52 | # We already don't use these but just to make sure | |
53 | rm -fr 3rdparty | |
54 | ||
7279ad3f ER |
55 | # Don't build tests. They require gmock |
56 | sed -i -e '/tests/d' CMakeLists.txt | |
bf1e6952 ER |
57 | |
58 | %build | |
59 | install -d build | |
60 | cd build | |
88ca6f4b ER |
61 | %cmake \ |
62 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
63 | .. | |
bf1e6952 ER |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__make} -C build install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
726826ed ER |
74 | %post |
75 | %update_desktop_database_post | |
76 | ||
77 | %postun | |
78 | %update_desktop_database_postun | |
79 | ||
bf1e6952 ER |
80 | %files |
81 | %defattr(644,root,root,755) | |
82 | %doc Changelog TODO | |
83 | %attr(755,root,root) %{_bindir}/clementine | |
84 | %{_desktopdir}/clementine.desktop | |
7279ad3f | 85 | %{_pixmapsdir}/clementine.png |