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