X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=clementine.spec;h=d793b139e76cc96786982c9578a5dd44f7872cd8;hb=8f83a8c052f6a0a5b0c89597afea5ef9cbb007b4;hp=80cbc141ebe98208184134bd59e9d725f1b32924;hpb=59a664a60db751efea4145d2d827f33e900448a9;p=packages%2Fclementine.git diff --git a/clementine.spec b/clementine.spec index 80cbc14..d793b13 100644 --- a/clementine.spec +++ b/clementine.spec @@ -7,61 +7,77 @@ # 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 Summary: A music player and library organiser Summary(hu.UTF-8): Egy zenelejátszó és gyűjtemény-kezelő Name: clementine -Version: 0.4.2 -Release: 0.2 +Version: 0.5.3 +Release: 2 License: GPL v3 and GPL v2+ Group: Applications/Multimedia -URL: http://code.google.com/p/clementine-player +URL: http://www.clementine-player.org/ Source0: http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz -# Source0-md5: c6819b0d2a8324f1d686fb5a3b1d287b -Patch0: %{name}-dont-bundle-external-lib.patch -Patch2: desktop-install.patch +# Source0-md5: 3411a0e31bdab7a6693048e934996f40 +Patch0: desktop-install.patch BuildRequires: QtCore-devel BuildRequires: QtDBus-devel BuildRequires: QtGui-devel BuildRequires: QtIOCompressor-devel BuildRequires: QtNetwork-devel BuildRequires: QtOpenGL-devel -BuildRequires: QtSingleApplication-devel +BuildRequires: QtSingleApplication-devel >= 2.6-4 BuildRequires: QtSql-devel -BuildRequires: QtTest-devel +%{?with_tests:BuildRequires: QtTest-devel} +BuildRequires: QtXml-devel BuildRequires: boost-devel BuildRequires: cmake >= 2.6 -BuildRequires: desktop-file-utils +#BuildRequires: desktop-file-utils +#%{?with_static_projectm:BuildRequires: ftgl-devel >= 2.1.3} BuildRequires: gettext-devel -BuildRequires: gstreamer-devel -BuildRequires: gstreamer-devel >= 0.10 -BuildRequires: gstreamer-plugins-base-devel >= 0.10 +%{?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: gtest-devel +BuildRequires: libgpod-devel >= 0.7.92 +BuildRequires: libimobiledevice-devel BuildRequires: liblastfm-devel +BuildRequires: libmtp-devel BuildRequires: libnotify-devel -#BuildRequires: libprojectM-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-devel +BuildRequires: phonon +%{?with_engine_phonon:BuildRequires: phonon-devel} BuildRequires: pkgconfig BuildRequires: qt4-build BuildRequires: qt4-linguist BuildRequires: qt4-qmake -BuildRequires: rpmbuild(macros) >= 1.198 +BuildRequires: rpmbuild(macros) >= 1.577 BuildRequires: sed >= 4.0 -BuildRequires: sqlite3-devel +%{!?with_static_sqlite:BuildRequires: sqlite3-devel} BuildRequires: taglib-devel >= 1.6 -BuildRequires: vlc-devel -BuildRequires: xine-lib-devel +BuildRequires: usbmuxd-devel +%{?with_engine_vlc:BuildRequires: vlc-devel} +%{?with_engine_xine:BuildRequires: xine-lib-devel} Requires(post,postun): desktop-file-utils -Requires: QtSql-sqlite3 +Requires: QtSingleApplication >= 2.6-4 +%{!?with_static_sqlite:Requires: QtSql-sqlite3} # while we do not link (yet), we use datafiles Requires: libprojectM BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -82,14 +98,14 @@ a Qt4 előnyeit. %prep %setup -q %patch0 -p1 -%patch2 -p1 # We already don't use these but just to make sure rm -rf 3rdparty/gmock -rm -rf 3rdparty/qsqlite +%{!?with_static_sqlite:rm -rf 3rdparty/qsqlite} rm -rf 3rdparty/qtsingleapplication rm -rf 3rdparty/qxt rm -rf 3rdparty/qtiocompressor +%{!?with_static_projectm:rm -rf 3rdparty/libprojectM} # Don't build tests. They require gmock sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt @@ -98,12 +114,15 @@ sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt install -d build cd build %cmake \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DBUNDLE_PROJECTM_PRESETS=OFF \ + -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \ + -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} @@ -112,6 +131,8 @@ rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg + %clean rm -rf $RPM_BUILD_ROOT