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