]>
Commit | Line | Data |
---|---|---|
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 | |
64d9867e | 18 | %define qtver 4.5 |
bf1e6952 | 19 | Summary: A music player and library organiser |
df3c0ac1 | 20 | Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő |
bf1e6952 | 21 | Name: clementine |
b0f4dfa2 | 22 | Version: 0.5.3 |
3b55fc92 | 23 | Release: 3 |
bf1e6952 ER |
24 | License: GPL v3 and GPL v2+ |
25 | Group: Applications/Multimedia | |
f823a794 | 26 | URL: http://www.clementine-player.org/ |
2c687024 | 27 | Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz |
b0f4dfa2 | 28 | # Source0-md5: 3411a0e31bdab7a6693048e934996f40 |
f823a794 | 29 | Patch0: desktop-install.patch |
10ecf727 ER |
30 | Patch1: unbundle-po.patch |
31 | Patch2: build-languages-dynamic.patch | |
64d9867e ER |
32 | Patch3: qt-ver.patch |
33 | BuildRequires: QtCore-devel >= %{qtver} | |
34 | BuildRequires: QtDBus-devel >= %{qtver} | |
35 | BuildRequires: QtGui-devel >= %{qtver} | |
f2d911f2 | 36 | BuildRequires: QtIOCompressor-devel |
64d9867e ER |
37 | BuildRequires: QtNetwork-devel >= %{qtver} |
38 | BuildRequires: QtOpenGL-devel >= %{qtver} | |
acb98f48 | 39 | BuildRequires: QtSingleApplication-devel >= 2.6-4 |
64d9867e ER |
40 | BuildRequires: QtSql-devel >= %{qtver} |
41 | %{?with_tests:BuildRequires: QtTest-devel >= %{qtver}} | |
42 | BuildRequires: QtXml-devel >= %{qtver} | |
bf1e6952 | 43 | BuildRequires: boost-devel |
7279ad3f | 44 | BuildRequires: cmake >= 2.6 |
aca708d9 | 45 | #BuildRequires: desktop-file-utils |
f823a794 | 46 | #%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3} |
75ec0859 | 47 | BuildRequires: gettext-devel |
f823a794 | 48 | %{?with_static_projectm:BuildRequires: glew-devel} |
8f83a8c0 | 49 | BuildRequires: glib2-devel |
aca708d9 ER |
50 | %{?with_engine_gstreamer:BuildRequires: gstreamer-devel >= 0.10} |
51 | %{?with_engine_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10} | |
bf1e6952 | 52 | BuildRequires: gtest-devel |
8f83a8c0 ER |
53 | BuildRequires: libgpod-devel >= 0.7.92 |
54 | BuildRequires: libimobiledevice-devel | |
bf1e6952 | 55 | BuildRequires: liblastfm-devel |
8f83a8c0 | 56 | BuildRequires: libmtp-devel |
bf1e6952 | 57 | BuildRequires: libnotify-devel |
8f83a8c0 | 58 | BuildRequires: libplist-devel |
f823a794 | 59 | %{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4} |
bf1e6952 | 60 | BuildRequires: libqxt-devel |
f2d911f2 | 61 | #BuildRequires: libqxt-devel >= 0.6.0-0.2 |
8f83a8c0 | 62 | BuildRequires: libxml2-devel |
bf1e6952 | 63 | BuildRequires: notification-daemon |
8f83a8c0 | 64 | BuildRequires: phonon |
aca708d9 | 65 | %{?with_engine_phonon:BuildRequires: phonon-devel} |
75ec0859 | 66 | BuildRequires: pkgconfig |
64d9867e | 67 | BuildRequires: qt4-build >= %{qtver} |
b6199a83 | 68 | BuildRequires: qt4-linguist |
69 | BuildRequires: qt4-qmake | |
10ecf727 | 70 | BuildRequires: rpmbuild(find_lang) = 1.33 |
f823a794 | 71 | BuildRequires: rpmbuild(macros) >= 1.577 |
bf1e6952 | 72 | BuildRequires: sed >= 4.0 |
742e4e0a | 73 | %{!?with_static_sqlite:BuildRequires: sqlite3-devel} |
f2d911f2 | 74 | BuildRequires: taglib-devel >= 1.6 |
8f83a8c0 | 75 | BuildRequires: usbmuxd-devel |
aca708d9 ER |
76 | %{?with_engine_vlc:BuildRequires: vlc-devel} |
77 | %{?with_engine_xine:BuildRequires: xine-lib-devel} | |
726826ed | 78 | Requires(post,postun): desktop-file-utils |
acb98f48 | 79 | Requires: QtSingleApplication >= 2.6-4 |
64d9867e | 80 | %{!?with_static_sqlite:Requires: QtSql-sqlite3 >= %{qtver}} |
f2d911f2 ER |
81 | # while we do not link (yet), we use datafiles |
82 | Requires: libprojectM | |
bf1e6952 ER |
83 | BuildRoot: %{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 |
89 | Clementine is a modern music player and library organiser. It is | |
90 | largely a port of Amarok 1.4, with some features rewritten to take | |
91 | advantage of Qt4. | |
92 | ||
df3c0ac1 ZU |
93 | %description -l hu.UTF-8 |
94 | Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt | |
95 | az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa | |
96 | a Qt4 előnyeit. | |
97 | ||
bf1e6952 ER |
98 | %prep |
99 | %setup -q | |
f2d911f2 | 100 | %patch0 -p1 |
10ecf727 ER |
101 | %patch1 -p1 |
102 | %patch2 -p1 | |
64d9867e | 103 | %patch3 -p1 |
bf1e6952 ER |
104 | |
105 | # We already don't use these but just to make sure | |
f2d911f2 | 106 | rm -rf 3rdparty/gmock |
742e4e0a | 107 | %{!?with_static_sqlite:rm -rf 3rdparty/qsqlite} |
f2d911f2 ER |
108 | rm -rf 3rdparty/qtsingleapplication |
109 | rm -rf 3rdparty/qxt | |
110 | rm -rf 3rdparty/qtiocompressor | |
aca708d9 | 111 | %{!?with_static_projectm:rm -rf 3rdparty/libprojectM} |
bf1e6952 | 112 | |
7279ad3f | 113 | # Don't build tests. They require gmock |
f2d911f2 | 114 | sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt |
bf1e6952 ER |
115 | |
116 | %build | |
117 | install -d build | |
10ecf727 | 118 | install -d build/src/translations |
bf1e6952 | 119 | cd build |
88ca6f4b | 120 | %cmake \ |
f2d911f2 | 121 | -DBUNDLE_PROJECTM_PRESETS=OFF \ |
f823a794 ER |
122 | -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \ |
123 | -DUSE_SYSTEM_QXT=ON \ | |
124 | -DUSE_SYSTEM_PROJECTM=ON \ | |
2c687024 | 125 | -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \ |
126 | -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \ | |
127 | -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \ | |
75ec0859 | 128 | -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \ |
742e4e0a | 129 | -DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \ |
88ca6f4b | 130 | .. |
bf1e6952 ER |
131 | %{__make} |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | %{__make} -C build install \ | |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | ||
f823a794 ER |
138 | rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg |
139 | ||
10ecf727 ER |
140 | %find_lang %{name} --with-qm |
141 | ||
bf1e6952 ER |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
726826ed ER |
145 | %post |
146 | %update_desktop_database_post | |
147 | ||
148 | %postun | |
149 | %update_desktop_database_postun | |
150 | ||
10ecf727 | 151 | %files -f %{name}.lang |
bf1e6952 ER |
152 | %defattr(644,root,root,755) |
153 | %doc Changelog TODO | |
154 | %attr(755,root,root) %{_bindir}/clementine | |
155 | %{_desktopdir}/clementine.desktop | |
7279ad3f | 156 | %{_pixmapsdir}/clementine.png |