]> git.pld-linux.org Git - packages/clementine.git/blob - clementine.spec
15e17182eac076cb0d99afadbfac154efb1ab68f
[packages/clementine.git] / clementine.spec
1 Summary:        A music player and library organiser
2 Name:           clementine
3 Version:        0.2
4 Release:        0.3
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
12 Patch2:         desktop-install.patch
13 BuildRequires:  QtCore-devel
14 BuildRequires:  QtDBus-devel
15 BuildRequires:  QtGui-devel
16 BuildRequires:  QtNetwork-devel
17 BuildRequires:  QtOpenGL-devel
18 BuildRequires:  QtSingleApplication-devel
19 BuildRequires:  QtSql-devel
20 BuildRequires:  QtTest-devel
21 BuildRequires:  boost-devel
22 BuildRequires:  cmake >= 2.6
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
30 BuildRequires:  qt4-linguist
31 BuildRequires:  qt4-qmake
32 BuildRequires:  rpmbuild(macros) >= 1.198
33 BuildRequires:  sed >= 4.0
34 BuildRequires:  sqlite-devel
35 BuildRequires:  sqlite3-devel
36 BuildRequires:  taglib-devel
37 BuildRequires:  xine-lib-devel
38 Requires(post,postun):  desktop-file-utils
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
50 %patch2 -p1
51
52 # We already don't use these but just to make sure
53 rm -fr 3rdparty
54
55 # Don't build tests. They require gmock
56 sed -i -e '/tests/d' CMakeLists.txt
57
58 %build
59 install -d build
60 cd build
61 %cmake \
62         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
63         ..
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
74 %post
75 %update_desktop_database_post
76
77 %postun
78 %update_desktop_database_postun
79
80 %files
81 %defattr(644,root,root,755)
82 %doc Changelog TODO
83 %attr(755,root,root) %{_bindir}/clementine
84 %{_desktopdir}/clementine.desktop
85 %{_pixmapsdir}/clementine.png
This page took 0.06063 seconds and 2 git commands to generate.