]> git.pld-linux.org Git - packages/clementine.git/blame - clementine.spec
- unbundle translations, tag with %lang
[packages/clementine.git] / clementine.spec
CommitLineData
2c687024 1# TODO:
f2d911f2
ER
2# - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed."
3# -- Building engines: gst
4# -- Skipping engines: vlc xine qt-phonon
5# The following engines are NOT supported by clementine developers:
6# vlc xine qt-phonon
7# - apply patches to libprojectM.spec and use
0b056df0 8# - make engines pluggable not statically linked, then could enable the bconds
2c687024 9#
10# Conditional build:
0b056df0
ER
11%bcond_with engine_xine # without xine engine
12%bcond_with engine_vlc # without vlc engine
13%bcond_with engine_qt_phonon # without qt-phonon engine
2c687024 14%bcond_without engine_gstreamer # without gstreamer engine
c6f8dd12 15%bcond_without static_sqlite # with static sqlite3
aca708d9 16%bcond_with static_projectm # with static projectM
0b056df0 17
bf1e6952 18Summary: A music player and library organiser
df3c0ac1 19Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő
bf1e6952 20Name: clementine
b0f4dfa2 21Version: 0.5.3
8f83a8c0 22Release: 2
bf1e6952
ER
23License: GPL v3 and GPL v2+
24Group: Applications/Multimedia
f823a794 25URL: http://www.clementine-player.org/
2c687024 26Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
b0f4dfa2 27# Source0-md5: 3411a0e31bdab7a6693048e934996f40
f823a794 28Patch0: desktop-install.patch
10ecf727
ER
29Patch1: unbundle-po.patch
30Patch2: build-languages-dynamic.patch
b6199a83 31BuildRequires: QtCore-devel
32BuildRequires: QtDBus-devel
33BuildRequires: QtGui-devel
f2d911f2 34BuildRequires: QtIOCompressor-devel
b6199a83 35BuildRequires: QtNetwork-devel
36BuildRequires: QtOpenGL-devel
acb98f48 37BuildRequires: QtSingleApplication-devel >= 2.6-4
b6199a83 38BuildRequires: QtSql-devel
aca708d9 39%{?with_tests:BuildRequires: QtTest-devel}
8f83a8c0 40BuildRequires: QtXml-devel
bf1e6952 41BuildRequires: boost-devel
7279ad3f 42BuildRequires: cmake >= 2.6
aca708d9 43#BuildRequires: desktop-file-utils
f823a794 44#%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3}
75ec0859 45BuildRequires: gettext-devel
f823a794 46%{?with_static_projectm:BuildRequires: glew-devel}
8f83a8c0 47BuildRequires: glib2-devel
aca708d9
ER
48%{?with_engine_gstreamer:BuildRequires: gstreamer-devel >= 0.10}
49%{?with_engine_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10}
bf1e6952 50BuildRequires: gtest-devel
8f83a8c0
ER
51BuildRequires: libgpod-devel >= 0.7.92
52BuildRequires: libimobiledevice-devel
bf1e6952 53BuildRequires: liblastfm-devel
8f83a8c0 54BuildRequires: libmtp-devel
bf1e6952 55BuildRequires: libnotify-devel
8f83a8c0 56BuildRequires: libplist-devel
f823a794 57%{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4}
bf1e6952 58BuildRequires: libqxt-devel
f2d911f2 59#BuildRequires: libqxt-devel >= 0.6.0-0.2
8f83a8c0 60BuildRequires: libxml2-devel
bf1e6952 61BuildRequires: notification-daemon
8f83a8c0 62BuildRequires: phonon
aca708d9 63%{?with_engine_phonon:BuildRequires: phonon-devel}
75ec0859 64BuildRequires: pkgconfig
bf1e6952 65BuildRequires: qt4-build
b6199a83 66BuildRequires: qt4-linguist
67BuildRequires: qt4-qmake
10ecf727 68BuildRequires: rpmbuild(find_lang) = 1.33
f823a794 69BuildRequires: rpmbuild(macros) >= 1.577
bf1e6952 70BuildRequires: sed >= 4.0
742e4e0a 71%{!?with_static_sqlite:BuildRequires: sqlite3-devel}
f2d911f2 72BuildRequires: taglib-devel >= 1.6
8f83a8c0 73BuildRequires: usbmuxd-devel
aca708d9
ER
74%{?with_engine_vlc:BuildRequires: vlc-devel}
75%{?with_engine_xine:BuildRequires: xine-lib-devel}
726826ed 76Requires(post,postun): desktop-file-utils
acb98f48 77Requires: QtSingleApplication >= 2.6-4
742e4e0a 78%{!?with_static_sqlite:Requires: QtSql-sqlite3}
f2d911f2
ER
79# while we do not link (yet), we use datafiles
80Requires: libprojectM
bf1e6952
ER
81BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82
f2d911f2
ER
83# see libprojectM.spec for explanation
84%define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
85
bf1e6952
ER
86%description
87Clementine is a modern music player and library organiser. It is
88largely a port of Amarok 1.4, with some features rewritten to take
89advantage of Qt4.
90
df3c0ac1
ZU
91%description -l hu.UTF-8
92Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt
93az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa
94a Qt4 előnyeit.
95
bf1e6952
ER
96%prep
97%setup -q
f2d911f2 98%patch0 -p1
10ecf727
ER
99%patch1 -p1
100%patch2 -p1
bf1e6952
ER
101
102# We already don't use these but just to make sure
f2d911f2 103rm -rf 3rdparty/gmock
742e4e0a 104%{!?with_static_sqlite:rm -rf 3rdparty/qsqlite}
f2d911f2
ER
105rm -rf 3rdparty/qtsingleapplication
106rm -rf 3rdparty/qxt
107rm -rf 3rdparty/qtiocompressor
aca708d9 108%{!?with_static_projectm:rm -rf 3rdparty/libprojectM}
bf1e6952 109
7279ad3f 110# Don't build tests. They require gmock
f2d911f2 111sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
bf1e6952
ER
112
113%build
114install -d build
10ecf727 115install -d build/src/translations
bf1e6952 116cd build
88ca6f4b 117%cmake \
f2d911f2 118 -DBUNDLE_PROJECTM_PRESETS=OFF \
f823a794
ER
119 -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \
120 -DUSE_SYSTEM_QXT=ON \
121 -DUSE_SYSTEM_PROJECTM=ON \
2c687024 122 -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \
123 -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \
124 -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \
75ec0859 125 -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \
742e4e0a 126 -DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \
88ca6f4b 127 ..
bf1e6952
ER
128%{__make}
129
130%install
131rm -rf $RPM_BUILD_ROOT
132%{__make} -C build install \
133 DESTDIR=$RPM_BUILD_ROOT
134
f823a794
ER
135rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg
136
10ecf727
ER
137%find_lang %{name} --with-qm
138
bf1e6952
ER
139%clean
140rm -rf $RPM_BUILD_ROOT
141
726826ed
ER
142%post
143%update_desktop_database_post
144
145%postun
146%update_desktop_database_postun
147
10ecf727 148%files -f %{name}.lang
bf1e6952
ER
149%defattr(644,root,root,755)
150%doc Changelog TODO
151%attr(755,root,root) %{_bindir}/clementine
152%{_desktopdir}/clementine.desktop
7279ad3f 153%{_pixmapsdir}/clementine.png
This page took 0.145724 seconds and 4 git commands to generate.