packages: clementine/clementine.spec, clementine/libimobiledevice-1.1.2.pat...

glen glen at pld-linux.org
Fri Apr 6 21:20:53 CEST 2012


Author: glen                         Date: Fri Apr  6 19:20:53 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- libimobiledevice-1.1.2.patch

---- Files affected:
packages/clementine:
   clementine.spec (1.46 -> 1.47) , libimobiledevice-1.1.2.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/clementine/clementine.spec
diff -u packages/clementine/clementine.spec:1.46 packages/clementine/clementine.spec:1.47
--- packages/clementine/clementine.spec:1.46	Sat Mar 31 01:11:08 2012
+++ packages/clementine/clementine.spec	Fri Apr  6 21:20:48 2012
@@ -12,7 +12,7 @@
 Summary(hu.UTF-8):	Egy zenelejátszó és gyűjtemény-kezelő
 Name:		clementine
 Version:	1.0.1
-Release:	2
+Release:	3
 License:	GPL v3 and GPL v2+
 Group:		Applications/Multimedia
 URL:		http://www.clementine-player.org/
@@ -20,6 +20,7 @@
 # Source0-md5:	54dc47eb2de5960cd1654e1249a59bc6
 Patch0:		desktop-install.patch
 Patch1:		unbundle-po.patch
+Patch2:		libimobiledevice-1.1.2.patch
 BuildRequires:	QtCore-devel >= %{qtver}
 BuildRequires:	QtDBus-devel >= %{qtver}
 BuildRequires:	QtGui-devel >= %{qtver}
@@ -87,6 +88,7 @@
 %setup -q -n %{name}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # We already don't use these but just to make sure
 rm -rf 3rdparty/gmock
@@ -154,6 +156,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.47  2012/04/06 19:20:48  glen
+- libimobiledevice-1.1.2.patch
+
 Revision 1.46  2012/03/30 23:11:08  arekm
 - release 2
 

================================================================
Index: packages/clementine/libimobiledevice-1.1.2.patch
diff -u /dev/null packages/clementine/libimobiledevice-1.1.2.patch:1.1
--- /dev/null	Fri Apr  6 21:20:53 2012
+++ packages/clementine/libimobiledevice-1.1.2.patch	Fri Apr  6 21:20:48 2012
@@ -0,0 +1,62 @@
+commit 119c9c27ac74d4e0f2941a66143afde2b3c64870
+Author: David Sansome <me at davidsansome.com>
+Date:   Tue Mar 27 21:24:38 2012 +0100
+
+    Detect libimobiledevice 1.1.2 and use its new "udid" field instead of "uuid".
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index c250704..3339ba1 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -25,6 +25,10 @@ if (QT_VERSION_MINOR GREATER 5)
+   endif(QT_VERSION_MINOR GREATER 7)
+ endif(QT_VERSION_MINOR GREATER 5)
+ 
++if(ENABLE_IMOBILEDEVICE AND IMOBILEDEVICE_VERSION VERSION_GREATER 1.1.1)
++  set(IMOBILEDEVICE_USES_UDIDS ON)
++endif()
++
+ include_directories(${CMAKE_BINARY_DIR})
+ include_directories(${GLIB_INCLUDE_DIRS})
+ include_directories(${LIBXML_INCLUDE_DIRS})
+@@ -1079,6 +1083,7 @@ if(HAVE_IMOBILEDEVICE)
+     ${USBMUXD_LIBRARIES}
+     gstafcsrc
+   )
++  link_directories(${IMOBILEDEVICE_LIBRARY_DIRS})
+   link_directories(${USBMUXD_LIBRARY_DIRS})
+ endif(HAVE_IMOBILEDEVICE)
+ 
+diff --git a/src/config.h.in b/src/config.h.in
+index aae8b77..e2b1ce5 100644
+--- a/src/config.h.in
++++ b/src/config.h.in
+@@ -39,6 +39,7 @@
+ #cmakedefine HAVE_SPOTIFY
+ #cmakedefine HAVE_STATIC_SQLITE
+ #cmakedefine HAVE_WIIMOTEDEV
++#cmakedefine IMOBILEDEVICE_USES_UDIDS
+ #cmakedefine LEOPARD
+ #cmakedefine SNOW_LEOPARD
+ #cmakedefine USE_INSTALL_PREFIX
+diff --git a/src/devices/ilister.cpp b/src/devices/ilister.cpp
+index c0140d9..a27f37b 100644
+--- a/src/devices/ilister.cpp
++++ b/src/devices/ilister.cpp
+@@ -1,3 +1,4 @@
++#include "config.h"
+ #include "ilister.h"
+ #include "imobiledeviceconnection.h"
+ 
+@@ -17,7 +18,11 @@ void iLister::Init() {
+ void iLister::EventCallback(const idevice_event_t* event, void* context) {
+   iLister* me = reinterpret_cast<iLister*>(context);
+ 
++#ifdef IMOBILEDEVICE_USES_UDIDS
++  const char* uuid = event->udid;
++#else
+   const char* uuid = event->uuid;
++#endif
+ 
+   switch (event->event) {
+     case IDEVICE_DEVICE_ADD:
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/clementine/clementine.spec?r1=1.46&r2=1.47



More information about the pld-cvs-commit mailing list