]>
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 | |
d8982c6f | 18 | %define qtver %(pkg-config --silence-errors --modversion QtCore 2>/dev/null || echo ERROR) |
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 |
f9288316 BZ |
22 | Version: 0.7 |
23 | Release: 0.rc1.1 | |
bf1e6952 ER |
24 | License: GPL v3 and GPL v2+ |
25 | Group: Applications/Multimedia | |
f823a794 | 26 | URL: http://www.clementine-player.org/ |
f9288316 BZ |
27 | Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}rc1.tar.gz |
28 | # Source0-md5: a13a226975e12b425606db99a74d8424 | |
f823a794 | 29 | Patch0: desktop-install.patch |
10ecf727 | 30 | Patch1: unbundle-po.patch |
64d9867e ER |
31 | BuildRequires: QtCore-devel >= %{qtver} |
32 | BuildRequires: QtDBus-devel >= %{qtver} | |
33 | BuildRequires: QtGui-devel >= %{qtver} | |
f2d911f2 | 34 | BuildRequires: QtIOCompressor-devel |
64d9867e ER |
35 | BuildRequires: QtNetwork-devel >= %{qtver} |
36 | BuildRequires: QtOpenGL-devel >= %{qtver} | |
acb98f48 | 37 | BuildRequires: QtSingleApplication-devel >= 2.6-4 |
64d9867e ER |
38 | BuildRequires: QtSql-devel >= %{qtver} |
39 | %{?with_tests:BuildRequires: QtTest-devel >= %{qtver}} | |
40 | BuildRequires: QtXml-devel >= %{qtver} | |
bf1e6952 | 41 | BuildRequires: boost-devel |
7279ad3f | 42 | BuildRequires: cmake >= 2.6 |
f823a794 | 43 | #%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3} |
75ec0859 | 44 | BuildRequires: gettext-devel |
f823a794 | 45 | %{?with_static_projectm:BuildRequires: glew-devel} |
8f83a8c0 | 46 | BuildRequires: glib2-devel |
aca708d9 | 47 | %{?with_engine_gstreamer:BuildRequires: gstreamer-devel >= 0.10} |
bf1e6952 | 48 | BuildRequires: gtest-devel |
8f83a8c0 ER |
49 | BuildRequires: libgpod-devel >= 0.7.92 |
50 | BuildRequires: libimobiledevice-devel | |
2eedc3b1 | 51 | BuildRequires: libindicate-qt-devel |
bf1e6952 | 52 | BuildRequires: liblastfm-devel |
8f83a8c0 | 53 | BuildRequires: libmtp-devel |
8f83a8c0 | 54 | BuildRequires: libplist-devel |
f823a794 | 55 | %{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4} |
bf1e6952 | 56 | BuildRequires: libqxt-devel |
8f83a8c0 | 57 | BuildRequires: libxml2-devel |
aca708d9 | 58 | %{?with_engine_phonon:BuildRequires: phonon-devel} |
75ec0859 | 59 | BuildRequires: pkgconfig |
2eedc3b1 | 60 | BuildRequires: pkgconfig |
64d9867e | 61 | BuildRequires: qt4-build >= %{qtver} |
b6199a83 | 62 | BuildRequires: qt4-linguist |
63 | BuildRequires: qt4-qmake | |
7aaa97de | 64 | BuildRequires: rpmbuild(find_lang) >= 1.33 |
2eedc3b1 | 65 | BuildRequires: rpmbuild(macros) >= 1.596 |
bf1e6952 | 66 | BuildRequires: sed >= 4.0 |
742e4e0a | 67 | %{!?with_static_sqlite:BuildRequires: sqlite3-devel} |
f2d911f2 | 68 | BuildRequires: taglib-devel >= 1.6 |
8f83a8c0 | 69 | BuildRequires: usbmuxd-devel |
aca708d9 ER |
70 | %{?with_engine_vlc:BuildRequires: vlc-devel} |
71 | %{?with_engine_xine:BuildRequires: xine-lib-devel} | |
726826ed | 72 | Requires(post,postun): desktop-file-utils |
23941661 AF |
73 | Requires(post,postun): gtk-update-icon-cache |
74 | Requires(post,postun): hicolor-icon-theme | |
acb98f48 | 75 | Requires: QtSingleApplication >= 2.6-4 |
64d9867e | 76 | %{!?with_static_sqlite:Requires: QtSql-sqlite3 >= %{qtver}} |
4282eb18 | 77 | Requires: gstreamer-audio-effects-base |
f2d911f2 ER |
78 | # while we do not link (yet), we use datafiles |
79 | Requires: libprojectM | |
bf1e6952 ER |
80 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
81 | ||
f2d911f2 ER |
82 | # see libprojectM.spec for explanation |
83 | %define filterout_ld -Wl,--as-needed -Wl,--no-copy-dt-needed-entries | |
84 | ||
bf1e6952 ER |
85 | %description |
86 | Clementine is a modern music player and library organiser. It is | |
87 | largely a port of Amarok 1.4, with some features rewritten to take | |
88 | advantage of Qt4. | |
89 | ||
df3c0ac1 ZU |
90 | %description -l hu.UTF-8 |
91 | Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt | |
92 | az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa | |
93 | a Qt4 előnyeit. | |
94 | ||
bf1e6952 | 95 | %prep |
f9288316 | 96 | %setup -q -n %{name}-%{version}rc1 |
f2d911f2 | 97 | %patch0 -p1 |
10ecf727 | 98 | %patch1 -p1 |
bf1e6952 ER |
99 | |
100 | # We already don't use these but just to make sure | |
f2d911f2 | 101 | rm -rf 3rdparty/gmock |
742e4e0a | 102 | %{!?with_static_sqlite:rm -rf 3rdparty/qsqlite} |
f2d911f2 ER |
103 | rm -rf 3rdparty/qtsingleapplication |
104 | rm -rf 3rdparty/qxt | |
105 | rm -rf 3rdparty/qtiocompressor | |
aca708d9 | 106 | %{!?with_static_projectm:rm -rf 3rdparty/libprojectM} |
bf1e6952 | 107 | |
7279ad3f | 108 | # Don't build tests. They require gmock |
f2d911f2 | 109 | sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt |
bf1e6952 ER |
110 | |
111 | %build | |
112 | install -d build | |
7aaa97de | 113 | install -d build/src/translations |
bf1e6952 | 114 | cd build |
88ca6f4b | 115 | %cmake \ |
f2d911f2 | 116 | -DBUNDLE_PROJECTM_PRESETS=OFF \ |
f823a794 ER |
117 | -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \ |
118 | -DUSE_SYSTEM_QXT=ON \ | |
119 | -DUSE_SYSTEM_PROJECTM=ON \ | |
2c687024 | 120 | -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \ |
121 | -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \ | |
122 | -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \ | |
75ec0859 | 123 | -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \ |
742e4e0a | 124 | -DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \ |
88ca6f4b | 125 | .. |
bf1e6952 ER |
126 | %{__make} |
127 | ||
128 | %install | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | %{__make} -C build install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
f823a794 ER |
133 | rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg |
134 | ||
10ecf727 ER |
135 | %find_lang %{name} --with-qm |
136 | ||
bf1e6952 ER |
137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
726826ed ER |
140 | %post |
141 | %update_desktop_database_post | |
2eedc3b1 | 142 | %update_icon_cache hicolor |
726826ed ER |
143 | |
144 | %postun | |
145 | %update_desktop_database_postun | |
2eedc3b1 | 146 | %update_icon_cache hicolor |
726826ed | 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 |