]>
Commit | Line | Data |
---|---|---|
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 | 23 | Summary: A music player and library organiser |
df3c0ac1 | 24 | Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő |
bf1e6952 | 25 | Name: clementine |
b0f4dfa2 | 26 | Version: 0.5.3 |
8f83a8c0 | 27 | Release: 2 |
bf1e6952 ER |
28 | License: GPL v3 and GPL v2+ |
29 | Group: Applications/Multimedia | |
f823a794 | 30 | URL: http://www.clementine-player.org/ |
2c687024 | 31 | Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz |
b0f4dfa2 | 32 | # Source0-md5: 3411a0e31bdab7a6693048e934996f40 |
f823a794 | 33 | Patch0: desktop-install.patch |
b6199a83 | 34 | BuildRequires: QtCore-devel |
35 | BuildRequires: QtDBus-devel | |
36 | BuildRequires: QtGui-devel | |
f2d911f2 | 37 | BuildRequires: QtIOCompressor-devel |
b6199a83 | 38 | BuildRequires: QtNetwork-devel |
39 | BuildRequires: QtOpenGL-devel | |
acb98f48 | 40 | BuildRequires: QtSingleApplication-devel >= 2.6-4 |
b6199a83 | 41 | BuildRequires: QtSql-devel |
aca708d9 | 42 | %{?with_tests:BuildRequires: QtTest-devel} |
8f83a8c0 | 43 | BuildRequires: QtXml-devel |
bf1e6952 | 44 | BuildRequires: boost-devel |
7279ad3f | 45 | BuildRequires: cmake >= 2.6 |
aca708d9 | 46 | #BuildRequires: desktop-file-utils |
f823a794 | 47 | #%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3} |
75ec0859 | 48 | BuildRequires: gettext-devel |
f823a794 | 49 | %{?with_static_projectm:BuildRequires: glew-devel} |
8f83a8c0 | 50 | BuildRequires: 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 | 53 | BuildRequires: gtest-devel |
8f83a8c0 ER |
54 | BuildRequires: libgpod-devel >= 0.7.92 |
55 | BuildRequires: libimobiledevice-devel | |
bf1e6952 | 56 | BuildRequires: liblastfm-devel |
8f83a8c0 | 57 | BuildRequires: libmtp-devel |
bf1e6952 | 58 | BuildRequires: libnotify-devel |
8f83a8c0 | 59 | BuildRequires: libplist-devel |
f823a794 | 60 | %{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4} |
bf1e6952 | 61 | BuildRequires: libqxt-devel |
f2d911f2 | 62 | #BuildRequires: libqxt-devel >= 0.6.0-0.2 |
8f83a8c0 | 63 | BuildRequires: libxml2-devel |
bf1e6952 | 64 | BuildRequires: notification-daemon |
8f83a8c0 | 65 | BuildRequires: phonon |
aca708d9 | 66 | %{?with_engine_phonon:BuildRequires: phonon-devel} |
75ec0859 | 67 | BuildRequires: pkgconfig |
bf1e6952 | 68 | BuildRequires: qt4-build |
b6199a83 | 69 | BuildRequires: qt4-linguist |
70 | BuildRequires: qt4-qmake | |
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 |
742e4e0a | 80 | %{!?with_static_sqlite:Requires: QtSql-sqlite3} |
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 |
bf1e6952 ER |
101 | |
102 | # We already don't use these but just to make sure | |
f2d911f2 | 103 | rm -rf 3rdparty/gmock |
742e4e0a | 104 | %{!?with_static_sqlite:rm -rf 3rdparty/qsqlite} |
f2d911f2 ER |
105 | rm -rf 3rdparty/qtsingleapplication |
106 | rm -rf 3rdparty/qxt | |
107 | rm -rf 3rdparty/qtiocompressor | |
aca708d9 | 108 | %{!?with_static_projectm:rm -rf 3rdparty/libprojectM} |
bf1e6952 | 109 | |
7279ad3f | 110 | # Don't build tests. They require gmock |
f2d911f2 | 111 | sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt |
bf1e6952 ER |
112 | |
113 | %build | |
114 | install -d build | |
115 | cd 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 | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | %{__make} -C build install \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
f823a794 ER |
134 | rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg |
135 | ||
bf1e6952 ER |
136 | %clean |
137 | rm -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 |