]> git.pld-linux.org Git - packages/clementine.git/blobdiff - clementine.spec
- unbundle translations, tag with %lang
[packages/clementine.git] / clementine.spec
index f95837aafd6462f9f5b51ff0349792635a9b428e..4366d9b321413851c773b5541f38dbc7cdc001ee 100644 (file)
@@ -1,5 +1,4 @@
 # 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
@@ -20,13 +19,15 @@ 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:       1
+Release:       2
 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
 Patch0:                desktop-install.patch
+Patch1:                unbundle-po.patch
+Patch2:                build-languages-dynamic.patch
 BuildRequires: QtCore-devel
 BuildRequires: QtDBus-devel
 BuildRequires: QtGui-devel
@@ -36,30 +37,40 @@ BuildRequires:      QtOpenGL-devel
 BuildRequires: QtSingleApplication-devel >= 2.6-4
 BuildRequires: QtSql-devel
 %{?with_tests:BuildRequires:   QtTest-devel}
+BuildRequires: QtXml-devel
 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: gtest-devel
+BuildRequires: libgpod-devel >= 0.7.92
+BuildRequires: libimobiledevice-devel
 BuildRequires: liblastfm-devel
+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: qt4-linguist
 BuildRequires: qt4-qmake
+BuildRequires: rpmbuild(find_lang) = 1.33
 BuildRequires: rpmbuild(macros) >= 1.577
 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
@@ -85,6 +96,8 @@ 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 -rf 3rdparty/gmock
@@ -99,6 +112,7 @@ sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
 
 %build
 install -d build
+install -d build/src/translations
 cd build
 %cmake \
        -DBUNDLE_PROJECTM_PRESETS=OFF \
@@ -120,6 +134,8 @@ rm -rf $RPM_BUILD_ROOT
 
 rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/application-x-clementine.svg
 
+%find_lang %{name} --with-qm
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -129,7 +145,7 @@ rm -rf $RPM_BUILD_ROOT
 %postun
 %update_desktop_database_postun
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc Changelog TODO
 %attr(755,root,root) %{_bindir}/clementine
This page took 0.271443 seconds and 4 git commands to generate.