]> git.pld-linux.org Git - packages/clementine.git/blame - clementine.spec
- -static.patch already in sources
[packages/clementine.git] / clementine.spec
CommitLineData
2c687024 1# TODO:
2# - update patch0
3# - add missing BRs
df3c0ac1 4# - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed."
2c687024 5#
6# Conditional build:
7%bcond_without engine_xine # without xine engine
8%bcond_without engine_vlc # without vlc engine
75ec0859 9%bcond_without engine_qt_phonon # without qt-phonon engine
2c687024 10%bcond_without engine_gstreamer # without gstreamer engine
11#
bf1e6952 12Summary: A music player and library organiser
df3c0ac1 13Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő
bf1e6952 14Name: clementine
cff2f349 15Version: 0.4
2c687024 16Release: 0.1
bf1e6952
ER
17License: GPL v3 and GPL v2+
18Group: Applications/Multimedia
19URL: http://code.google.com/p/clementine-player
2c687024 20Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
cff2f349 21# Source0-md5: dbfec89142910a60502674234daf01df
bf1e6952 22Patch0: %{name}-dont-bundle-external-lib.patch
7279ad3f 23Patch2: desktop-install.patch
b6199a83 24BuildRequires: QtCore-devel
25BuildRequires: QtDBus-devel
26BuildRequires: QtGui-devel
27BuildRequires: QtNetwork-devel
28BuildRequires: QtOpenGL-devel
88ca6f4b 29BuildRequires: QtSingleApplication-devel
b6199a83 30BuildRequires: QtSql-devel
31BuildRequires: QtTest-devel
bf1e6952 32BuildRequires: boost-devel
7279ad3f 33BuildRequires: cmake >= 2.6
bf1e6952 34BuildRequires: desktop-file-utils
75ec0859 35BuildRequires: gettext-devel
36BuildRequires: gstreamer-devel
bf1e6952
ER
37BuildRequires: gtest-devel
38BuildRequires: liblastfm-devel
39BuildRequires: libnotify-devel
40BuildRequires: libqxt-devel
41BuildRequires: notification-daemon
75ec0859 42BuildRequires: phonon-devel
43BuildRequires: pkgconfig
bf1e6952 44BuildRequires: qt4-build
b6199a83 45BuildRequires: qt4-linguist
46BuildRequires: qt4-qmake
726826ed 47BuildRequires: rpmbuild(macros) >= 1.198
bf1e6952
ER
48BuildRequires: sed >= 4.0
49BuildRequires: sqlite-devel
b6199a83 50BuildRequires: sqlite3-devel
bf1e6952 51BuildRequires: taglib-devel
75ec0859 52BuildRequires: vlc-devel
bf1e6952 53BuildRequires: xine-lib-devel
726826ed 54Requires(post,postun): desktop-file-utils
df3c0ac1 55Requires: QtSql-sqlite3
bf1e6952
ER
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
58%description
59Clementine is a modern music player and library organiser. It is
60largely a port of Amarok 1.4, with some features rewritten to take
61advantage of Qt4.
62
df3c0ac1
ZU
63%description -l hu.UTF-8
64Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt
65az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa
66a Qt4 előnyeit.
67
bf1e6952
ER
68%prep
69%setup -q
2c687024 70#%patch0 -p1
29df970b 71%patch2 -p1
bf1e6952
ER
72
73# We already don't use these but just to make sure
2c687024 74#rm -fr 3rdparty
bf1e6952 75
7279ad3f
ER
76# Don't build tests. They require gmock
77sed -i -e '/tests/d' CMakeLists.txt
bf1e6952
ER
78
79%build
80install -d build
81cd build
88ca6f4b
ER
82%cmake \
83 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
2c687024 84 -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \
85 -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \
86 -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \
75ec0859 87 -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \
88ca6f4b 88 ..
bf1e6952
ER
89%{__make}
90
91%install
92rm -rf $RPM_BUILD_ROOT
93%{__make} -C build install \
94 DESTDIR=$RPM_BUILD_ROOT
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
726826ed
ER
99%post
100%update_desktop_database_post
101
102%postun
103%update_desktop_database_postun
104
bf1e6952
ER
105%files
106%defattr(644,root,root,755)
107%doc Changelog TODO
108%attr(755,root,root) %{_bindir}/clementine
109%{_desktopdir}/clementine.desktop
7279ad3f 110%{_pixmapsdir}/clementine.png
This page took 0.041688 seconds and 4 git commands to generate.