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