# TODO: # - update patch0 # - add missing BRs # - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed." # # Conditional build: %bcond_without engine_xine # without xine engine %bcond_without engine_vlc # without vlc engine %bcond_without engine_qt_phonon # without qt-phonon engine %bcond_without engine_gstreamer # without gstreamer engine # Summary: A music player and library organiser Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő Name: clementine Version: 0.3 Release: 0.1 License: GPL v3 and GPL v2+ Group: Applications/Multimedia URL: http://code.google.com/p/clementine-player Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz # Source0-md5: 3aff98e41d9bf96717ecf97c780ef086 Patch0: %{name}-dont-bundle-external-lib.patch Patch1: %{name}-static.patch Patch2: desktop-install.patch BuildRequires: QtCore-devel BuildRequires: QtDBus-devel BuildRequires: QtGui-devel BuildRequires: QtNetwork-devel BuildRequires: QtOpenGL-devel BuildRequires: QtSingleApplication-devel BuildRequires: QtSql-devel BuildRequires: QtTest-devel BuildRequires: boost-devel BuildRequires: cmake >= 2.6 BuildRequires: desktop-file-utils BuildRequires: gettext-devel BuildRequires: gstreamer-devel BuildRequires: gtest-devel BuildRequires: liblastfm-devel BuildRequires: libnotify-devel BuildRequires: libqxt-devel BuildRequires: notification-daemon BuildRequires: phonon-devel BuildRequires: pkgconfig BuildRequires: qt4-build BuildRequires: qt4-linguist BuildRequires: qt4-qmake BuildRequires: rpmbuild(macros) >= 1.198 BuildRequires: sed >= 4.0 BuildRequires: sqlite-devel BuildRequires: sqlite3-devel BuildRequires: taglib-devel BuildRequires: vlc-devel BuildRequires: xine-lib-devel Requires(post,postun): desktop-file-utils Requires: QtSql-sqlite3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Clementine is a modern music player and library organiser. It is largely a port of Amarok 1.4, with some features rewritten to take advantage of Qt4. %description -l hu.UTF-8 Clementine egy modern zenelejátszó és gyűjtemény kezelő. Túlnyomórészt az Amarok 1.4 port-ja, néhány funkciója újraírva, hogy kihasználhassa a Qt4 előnyeit. %prep %setup -q #%patch0 -p1 %patch1 -p1 %patch2 -p1 # We already don't use these but just to make sure #rm -fr 3rdparty # Don't build tests. They require gmock sed -i -e '/tests/d' CMakeLists.txt %build install -d build cd build %cmake \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DENGINE_GSTREAMER_ENABLED=%{?with_engine_gstreamer:ON}%{!?with_engine_gstreamer:OFF} \ -DENGINE_LIBVLC_ENABLED=%{?with_engine_vlc:ON}%{!?with_engine_vlc:OFF} \ -DENGINE_LIBXINE_ENABLED=%{?with_engine_xine:ON}%{!?with_engine_xine:OFF} \ -DENGINE_QT_PHONON_ENABLED=%{?with_engine_qt_phonon:ON}%{!?with_engine_qt_phonon:OFF} \ .. %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post %update_desktop_database_post %postun %update_desktop_database_postun %files %defattr(644,root,root,755) %doc Changelog TODO %attr(755,root,root) %{_bindir}/clementine %{_desktopdir}/clementine.desktop %{_pixmapsdir}/clementine.png