Hello community,

here is the log from the commit of package bluez-qt for openSUSE:Factory 
checked in at 2017-04-30 21:15:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bluez-qt (Old)
 and      /work/SRC/openSUSE:Factory/.bluez-qt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bluez-qt"

Sun Apr 30 21:15:14 2017 rev:25 rq:492034 version:5.33.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/bluez-qt/bluez-qt.changes        2017-03-28 
15:07:21.495896178 +0200
+++ /work/SRC/openSUSE:Factory/.bluez-qt.new/bluez-qt.changes   2017-04-30 
21:15:20.429093639 +0200
@@ -1,0 +2,12 @@
+Sat Apr 15 10:11:41 CEST 2017 - lbeltr...@kde.org
+
+- Update to 5.33.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/kde-frameworks-5.33.0.php
+- Changes since 5.32.0:
+  * Upgrade ECM and KF5 version requirements for 5.33.0 release.
+  * Provide device type for Low Energy devices
+  * Upgrade KF5 version to 5.33.0.
+
+-------------------------------------------------------------------

Old:
----
  bluez-qt-5.32.0.tar.xz

New:
----
  bluez-qt-5.33.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bluez-qt.spec ++++++
--- /var/tmp/diff_new_pack.t55I20/_old  2017-04-30 21:15:22.232839354 +0200
+++ /var/tmp/diff_new_pack.t55I20/_new  2017-04-30 21:15:22.236838789 +0200
@@ -18,9 +18,9 @@
 
 %define sonum   6
 %define _libname KF5BluezQt
-%define _tar_path 5.32
+%define _tar_path 5.33
 Name:           bluez-qt
-Version:        5.32.0
+Version:        5.33.0
 Release:        0
 Summary:        Async Bluez wrapper library
 License:        LGPL-2.1+

++++++ bluez-qt-5.32.0.tar.xz -> bluez-qt-5.33.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bluez-qt-5.32.0/CMakeLists.txt 
new/bluez-qt-5.33.0/CMakeLists.txt
--- old/bluez-qt-5.32.0/CMakeLists.txt  2017-03-03 13:38:41.000000000 +0100
+++ new/bluez-qt-5.33.0/CMakeLists.txt  2017-04-01 11:05:11.000000000 +0200
@@ -1,10 +1,10 @@
 cmake_minimum_required(VERSION 3.0)
 
-set(KF5_VERSION "5.32.0") # handled by release scripts
+set(KF5_VERSION "5.33.0") # handled by release scripts
 project(BluezQt VERSION ${KF5_VERSION})
 
 include(FeatureSummary)
-find_package(ECM 5.32.0 NO_MODULE)
+find_package(ECM 5.33.0 NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bluez-qt-5.32.0/src/device.cpp 
new/bluez-qt-5.33.0/src/device.cpp
--- old/bluez-qt-5.32.0/src/device.cpp  2017-03-03 13:38:41.000000000 +0100
+++ new/bluez-qt-5.33.0/src/device.cpp  2017-04-01 11:05:11.000000000 +0200
@@ -88,6 +88,10 @@
 
 Device::Type Device::type() const
 {
+    if (deviceClass() == 0) {
+        return appearanceToType(appearance());
+    }
+
     return classToType(d->m_deviceClass);
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bluez-qt-5.32.0/src/device.h 
new/bluez-qt-5.33.0/src/device.h
--- old/bluez-qt-5.32.0/src/device.h    2017-03-03 13:38:41.000000000 +0100
+++ new/bluez-qt-5.33.0/src/device.h    2017-04-01 11:05:11.000000000 +0200
@@ -190,9 +190,11 @@
     /**
      * Returns a type of the device.
      *
-     * Type of device is deduced from its class.
+     * Type of device is deduced from its class (for Bluetooth Classic devices)
+     * or its appearance (for Bluetooth Low Energy devices).
      *
      * @see deviceClass() const
+     * @see appearance() const
      *
      * @return type of device
      */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bluez-qt-5.32.0/src/utils.cpp 
new/bluez-qt-5.33.0/src/utils.cpp
--- old/bluez-qt-5.32.0/src/utils.cpp   2017-03-03 13:38:41.000000000 +0100
+++ new/bluez-qt-5.33.0/src/utils.cpp   2017-04-01 11:05:11.000000000 +0200
@@ -253,4 +253,38 @@
     }
 }
 
+Device::Type appearanceToType(quint16 appearance)
+{
+    switch ((appearance & 0xffc0) >> 6) {
+    case 0x00:
+        return Device::Uncategorized;
+    case 0x01:  // Generic Phone
+        return Device::Phone;
+    case 0x02:  // Generic Computer
+        return Device::Computer;
+    case 0x05:  // Generic Display
+        return Device::AudioVideo;
+    case 0x0a:  // Generic Media Player
+        return Device::AudioVideo;
+    case 0x0b:  // Generic Barcode Scanner
+        return Device::Peripheral;
+    case 0x0f: // Generic HID
+        switch (appearance & 0x3f) {
+        case 0x01:  // Keyboard
+            return Device::Keyboard;
+        case 0x02:  // Mouse
+            return Device::Mouse;
+        case 0x03:  // Joystick
+        case 0x04:  // Gamepad
+            return Device::Joypad;
+        case 0x05:  // Digitizer Tablet
+            return Device::Tablet;
+        case 0x08:  // Barcode Scanner
+            return Device::Peripheral;
+        }
+    default:
+        return Device::Uncategorized;
+    }
+}
+
 } // namespace BluezQt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bluez-qt-5.32.0/src/utils.h 
new/bluez-qt-5.33.0/src/utils.h
--- old/bluez-qt-5.32.0/src/utils.h     2017-03-03 13:38:41.000000000 +0100
+++ new/bluez-qt-5.33.0/src/utils.h     2017-04-01 11:05:11.000000000 +0200
@@ -72,6 +72,7 @@
 
 QStringList stringListToUpper(const QStringList &list);
 Device::Type classToType(quint32 classNum);
+Device::Type appearanceToType(quint16 appearance);
 
 } // namespace BluezQt
 


Reply via email to