]>
Commit | Line | Data |
---|---|---|
2c687024 | 1 | # TODO: |
2 | # - update patch0 | |
3 | # - add missing BRs | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without engine_xine # without xine engine | |
7 | %bcond_without engine_vlc # without vlc engine | |
8 | %bcond_without engine_qt-phonon # without qt-phonon engine | |
9 | %bcond_without engine_gstreamer # without gstreamer engine | |
10 | # | |
bf1e6952 ER |
11 | Summary: A music player and library organiser |
12 | Name: clementine | |
2c687024 | 13 | Version: 0.3 |
14 | Release: 0.1 | |
bf1e6952 ER |
15 | License: GPL v3 and GPL v2+ |
16 | Group: Applications/Multimedia | |
17 | URL: http://code.google.com/p/clementine-player | |
2c687024 | 18 | Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz |
19 | # Source0-md5: 3aff98e41d9bf96717ecf97c780ef086 | |
bf1e6952 ER |
20 | Patch0: %{name}-dont-bundle-external-lib.patch |
21 | Patch1: %{name}-static.patch | |
7279ad3f | 22 | Patch2: desktop-install.patch |
b6199a83 | 23 | BuildRequires: QtCore-devel |
24 | BuildRequires: QtDBus-devel | |
25 | BuildRequires: QtGui-devel | |
26 | BuildRequires: QtNetwork-devel | |
27 | BuildRequires: QtOpenGL-devel | |
88ca6f4b | 28 | BuildRequires: QtSingleApplication-devel |
b6199a83 | 29 | BuildRequires: QtSql-devel |
30 | BuildRequires: QtTest-devel | |
bf1e6952 | 31 | BuildRequires: boost-devel |
7279ad3f | 32 | BuildRequires: cmake >= 2.6 |
bf1e6952 ER |
33 | BuildRequires: desktop-file-utils |
34 | BuildRequires: gtest-devel | |
35 | BuildRequires: liblastfm-devel | |
36 | BuildRequires: libnotify-devel | |
37 | BuildRequires: libqxt-devel | |
38 | BuildRequires: notification-daemon | |
39 | BuildRequires: qt4-build | |
b6199a83 | 40 | BuildRequires: qt4-linguist |
41 | BuildRequires: qt4-qmake | |
726826ed | 42 | BuildRequires: rpmbuild(macros) >= 1.198 |
bf1e6952 ER |
43 | BuildRequires: sed >= 4.0 |
44 | BuildRequires: sqlite-devel | |
b6199a83 | 45 | BuildRequires: sqlite3-devel |
bf1e6952 ER |
46 | BuildRequires: taglib-devel |
47 | BuildRequires: xine-lib-devel | |
726826ed | 48 | Requires(post,postun): desktop-file-utils |
bf1e6952 ER |
49 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
50 | ||
51 | %description | |
52 | Clementine is a modern music player and library organiser. It is | |
53 | largely a port of Amarok 1.4, with some features rewritten to take | |
54 | advantage of Qt4. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
2c687024 | 58 | #%patch0 -p1 |
bf1e6952 | 59 | %patch1 -p1 |
7279ad3f | 60 | %patch2 -p1 |
bf1e6952 ER |
61 | |
62 | # We already don't use these but just to make sure | |
2c687024 | 63 | #rm -fr 3rdparty |
bf1e6952 | 64 | |
7279ad3f ER |
65 | # Don't build tests. They require gmock |
66 | sed -i -e '/tests/d' CMakeLists.txt | |
bf1e6952 ER |
67 | |
68 | %build | |
69 | install -d build | |
70 | cd build | |
88ca6f4b ER |
71 | %cmake \ |
72 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
2c687024 | 73 | -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \ |
74 | -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \ | |
75 | -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \ | |
76 | -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt-phonon:ON}%{!?with_engine_qt-phonon:OFF} \ | |
88ca6f4b | 77 | .. |
bf1e6952 ER |
78 | %{__make} |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | %{__make} -C build install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
726826ed ER |
88 | %post |
89 | %update_desktop_database_post | |
90 | ||
91 | %postun | |
92 | %update_desktop_database_postun | |
93 | ||
bf1e6952 ER |
94 | %files |
95 | %defattr(644,root,root,755) | |
96 | %doc Changelog TODO | |
97 | %attr(755,root,root) %{_bindir}/clementine | |
98 | %{_desktopdir}/clementine.desktop | |
7279ad3f | 99 | %{_pixmapsdir}/clementine.png |