]> git.pld-linux.org Git - packages/clementine.git/blob - clementine.spec
- install icon to pixmapsdir to avoid invoking gtk-update-icon-cache in %post in...
[packages/clementine.git] / clementine.spec
1 Summary:        A music player and library organiser
2 Name:           clementine
3 Version:        0.2
4 Release:        0.2
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:  QtSingleApplication-devel
14 BuildRequires:  boost-devel
15 BuildRequires:  cmake >= 2.6
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
23 BuildRequires:  sed >= 4.0
24 BuildRequires:  sqlite-devel
25 BuildRequires:  taglib-devel
26 BuildRequires:  xine-lib-devel
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Clementine is a modern music player and library organiser. It is
31 largely a port of Amarok 1.4, with some features rewritten to take
32 advantage of Qt4.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38 %patch2 -p1
39
40 # We already don't use these but just to make sure
41 rm -fr 3rdparty
42
43 # Don't build tests. They require gmock
44 sed -i -e '/tests/d' CMakeLists.txt
45
46 %build
47 install -d build
48 cd build
49 %cmake \
50         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
51         ..
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %{__make} -C build install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Changelog TODO
65 %attr(755,root,root) %{_bindir}/clementine
66 %{_desktopdir}/clementine.desktop
67 %{_pixmapsdir}/clementine.png
This page took 0.039378 seconds and 4 git commands to generate.