X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=clementine.spec;h=d3ae25d828ec3acf69db998b91e5cb25bc8a2b6b;hb=862961b478f2671fcb77ddef1d51cd1f65a60c48;hp=d793b139e76cc96786982c9578a5dd44f7872cd8;hpb=8f83a8c052f6a0a5b0c89597afea5ef9cbb007b4;p=packages%2Fclementine.git diff --git a/clementine.spec b/clementine.spec index d793b13..d3ae25d 100644 --- a/clementine.spec +++ b/clementine.spec @@ -1,83 +1,73 @@ # TODO: -# - add missing BRs # - Gstreamer error: "A text/uri-list decoder plugin is required to play this stream, but not installed." -# -- Building engines: gst -# -- Skipping engines: vlc xine qt-phonon -# The following engines are NOT supported by clementine developers: -# vlc xine qt-phonon # - apply patches to libprojectM.spec and use -# - make engines pluggable not statically linked, then could enable the bconds -#11:04:19 bs> glen, let me take a look at it [IN] -#11:09:13 bs> glen, look at src/CMakeList.txt, remove lines 634-643 [IN] -#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] -#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] # # Conditional build: -%bcond_with engine_xine # without xine engine -%bcond_with engine_vlc # without vlc engine -%bcond_with engine_qt_phonon # without qt-phonon engine -%bcond_without engine_gstreamer # without gstreamer engine %bcond_without static_sqlite # with static sqlite3 -%bcond_with static_projectm # with static projectM +%bcond_with static_projectm # with static projectM +%define qtver %(pkg-config --silence-errors --modversion QtCore 2>/dev/null || echo ERROR) Summary: A music player and library organiser Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő Name: clementine -Version: 0.5.3 -Release: 2 +Version: 1.1.1 +Release: 3 License: GPL v3 and GPL v2+ Group: Applications/Multimedia URL: http://www.clementine-player.org/ Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz -# Source0-md5: 3411a0e31bdab7a6693048e934996f40 +# Source0-md5: 28e4afb822388bd337a761db8f86febf Patch0: desktop-install.patch -BuildRequires: QtCore-devel -BuildRequires: QtDBus-devel -BuildRequires: QtGui-devel +Patch1: unbundle-po.patch +BuildRequires: QtCore-devel >= %{qtver} +BuildRequires: QtDBus-devel >= %{qtver} +BuildRequires: QtGui-devel >= %{qtver} BuildRequires: QtIOCompressor-devel -BuildRequires: QtNetwork-devel -BuildRequires: QtOpenGL-devel +BuildRequires: QtNetwork-devel >= %{qtver} +BuildRequires: QtOpenGL-devel >= %{qtver} BuildRequires: QtSingleApplication-devel >= 2.6-4 -BuildRequires: QtSql-devel -%{?with_tests:BuildRequires: QtTest-devel} -BuildRequires: QtXml-devel +BuildRequires: QtSql-devel >= %{qtver} +%{?with_tests:BuildRequires: QtTest-devel >= %{qtver}} +BuildRequires: QtXml-devel >= %{qtver} BuildRequires: boost-devel BuildRequires: cmake >= 2.6 -#BuildRequires: desktop-file-utils #%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3} BuildRequires: gettext-devel %{?with_static_projectm:BuildRequires: glew-devel} BuildRequires: glib2-devel -%{?with_engine_gstreamer:BuildRequires: gstreamer-devel >= 0.10} -%{?with_engine_gstreamer:BuildRequires: gstreamer-plugins-base-devel >= 0.10} +BuildRequires: gstreamer0.10-devel +BuildRequires: gstreamer0.10-plugins-base-devel BuildRequires: gtest-devel BuildRequires: libgpod-devel >= 0.7.92 BuildRequires: libimobiledevice-devel -BuildRequires: liblastfm-devel +BuildRequires: libindicate-qt-devel +BuildRequires: liblastfm-devel >= 0.3.3 BuildRequires: libmtp-devel -BuildRequires: libnotify-devel BuildRequires: libplist-devel %{!?with_static_projectm:BuildRequires: libprojectM-devel >= 1:2.0.1-4} BuildRequires: libqxt-devel -#BuildRequires: libqxt-devel >= 0.6.0-0.2 BuildRequires: libxml2-devel -BuildRequires: notification-daemon -BuildRequires: phonon -%{?with_engine_phonon:BuildRequires: phonon-devel} BuildRequires: pkgconfig -BuildRequires: qt4-build +BuildRequires: pkgconfig +BuildRequires: protobuf-devel +BuildRequires: qca-devel +BuildRequires: qjson-devel +BuildRequires: qt4-build >= %{qtver} BuildRequires: qt4-linguist BuildRequires: qt4-qmake -BuildRequires: rpmbuild(macros) >= 1.577 +BuildRequires: rpmbuild(find_lang) >= 1.33 +BuildRequires: rpmbuild(macros) >= 1.596 BuildRequires: sed >= 4.0 %{!?with_static_sqlite:BuildRequires: sqlite3-devel} BuildRequires: taglib-devel >= 1.6 BuildRequires: usbmuxd-devel -%{?with_engine_vlc:BuildRequires: vlc-devel} -%{?with_engine_xine:BuildRequires: xine-lib-devel} Requires(post,postun): desktop-file-utils +Requires(post,postun): gtk-update-icon-cache +Requires(post,postun): hicolor-icon-theme Requires: QtSingleApplication >= 2.6-4 -%{!?with_static_sqlite:Requires: QtSql-sqlite3} +%{!?with_static_sqlite:Requires: QtSql-sqlite3 >= %{qtver}} +Requires: gstreamer0.10-audio-effects-base +Requires: gstreamer0.10-mad # while we do not link (yet), we use datafiles Requires: libprojectM BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -98,6 +88,7 @@ a Qt4 előnyeit. %prep %setup -q %patch0 -p1 +%patch1 -p1 # We already don't use these but just to make sure rm -rf 3rdparty/gmock @@ -109,19 +100,19 @@ rm -rf 3rdparty/qtiocompressor # Don't build tests. They require gmock sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt +# remove -Wall +sed -i -e 's/-Wall//' src/CMakeLists.txt %build install -d build +install -d build/src/translations cd build %cmake \ -DBUNDLE_PROJECTM_PRESETS=OFF \ -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \ + -DQTSINGLEAPPLICATION_INCLUDE_DIRS=%{_includedir}/qt4/QtSolutions/ \ -DUSE_SYSTEM_QXT=ON \ -DUSE_SYSTEM_PROJECTM=ON \ - -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} \ -DSTATIC_SQLITE=%{?with_static_sqlite:ON}%{!?with_static_sqlite:OFF} \ .. %{__make} @@ -133,18 +124,32 @@ rm -rf $RPM_BUILD_ROOT rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg +# not in our glibc? +rm -r $RPM_BUILD_ROOT%{_localedir}/tr_TR + +%find_lang %{name} --with-qm + +install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps +cp -a dist/icons/ubuntu-mono-light/clementine-panel-grey.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/clementine-panel-grey.png +cp -a dist/icons/ubuntu-mono-light/clementine-panel.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/24x24/apps/clementine-panel.png + %clean rm -rf $RPM_BUILD_ROOT %post %update_desktop_database_post +%update_icon_cache hicolor %postun %update_desktop_database_postun +%update_icon_cache hicolor -%files +%files -f %{name}.lang %defattr(644,root,root,755) -%doc Changelog TODO +%doc Changelog %attr(755,root,root) %{_bindir}/clementine +%attr(755,root,root) %{_bindir}/clementine-tagreader %{_desktopdir}/clementine.desktop %{_pixmapsdir}/clementine.png +%{_iconsdir}/hicolor/*/apps/clementine-panel-grey.png +%{_iconsdir}/hicolor/*/apps/clementine-panel.png