]> git.pld-linux.org Git - packages/clementine.git/commitdiff
- libimobiledevice-1.1.2.patch auto/th/clementine-1_0_1-3
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 6 Apr 2012 19:20:48 +0000 (19:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clementine.spec -> 1.47
    libimobiledevice-1.1.2.patch -> 1.1

clementine.spec
libimobiledevice-1.1.2.patch [new file with mode: 0644]

index 164762e8700b34b5cddfe0429695b5fbcade7744..5afaa41f1c1889b99ac254f86307f053186f38af 100644 (file)
@@ -11,7 +11,7 @@ Summary:      A music player and library organiser
 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/
@@ -19,6 +19,7 @@ Source0:      http://clementine-player.googlecode.com/files/%{name}-%{version}.tar.gz
 # 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}
@@ -86,6 +87,7 @@ a Qt4 előnyeit.
 %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
diff --git a/libimobiledevice-1.1.2.patch b/libimobiledevice-1.1.2.patch
new file mode 100644 (file)
index 0000000..551d1a5
--- /dev/null
@@ -0,0 +1,62 @@
+commit 119c9c27ac74d4e0f2941a66143afde2b3c64870
+Author: David Sansome <me@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:
This page took 0.048391 seconds and 4 git commands to generate.