Separate bluez-test package into tests and tools 56/284756/2 accepted/tizen/7.0/unified/20221130.171517
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Fri, 25 Nov 2022 06:03:11 +0000 (15:03 +0900)
committerJonghwa Lee <jonghwa3.lee@samsung.com>
Mon, 28 Nov 2022 06:15:06 +0000 (15:15 +0900)
Currently, bluez-test package contains both test programs
and bluez's configuration tools. Because of test scripts
in the pacakge, it has a dependancy to 'dbus-python' which
is not neeeded for other tools in the same package.
By separating of tools from the package, it can become more
deployable.

Change-Id: Id2edb654e2c963a1ba5fc2248acace8d32a732e9
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
packaging/bluez.spec

index 933e669..d23bbb0 100755 (executable)
@@ -97,6 +97,19 @@ Requires:       python-gobject
 Contains a few tools for testing various bluetooth functions. The
 BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
 
+
+%package tools
+Summary:        Bluez configuration tools
+License:        GPL-2.0+
+Group:          Development/Tools
+
+%description tools
+# !!! WARNING !!!
+# Using any tool in this package results direct access to bluez stack,
+# so the result of the tool won't be applied to Tizen system properly.
+# Recommend to use it cautiously and only in development phase.
+Bluez tools to manipulate bluetooth devices and configuartion.
+
 %package profile_common
 Summary:       Modified bluez for mobile/common profile
 Provides:      %{name}-compat = %{version}-%{release}
@@ -516,6 +529,15 @@ popd
 #%{_bindir}/obex-root-setup
 #%{_bindir}/obex.sh
 
+%files tools
+%{_bindir}/bluetoothctl
+%{_bindir}/btmgmt
+%{_bindir}/gatttool
+%{_bindir}/bluemoon
+%{_bindir}/hex2hcd
+%{_bindir}/meshctl
+%{_bindir}/mesh-cfgclient
+%{_bindir}/bluetooth-player
 
 %files test
 %manifest %{name}.manifest
@@ -523,17 +545,9 @@ popd
 %{_libdir}/bluez/test/*
 %{_bindir}/l2test
 %{_bindir}/rctest
-%{_bindir}/bluetoothctl
-%{_bindir}/meshctl
-%{_bindir}/mesh-cfgclient
 %{_bindir}/btiotest
 #%{_bindir}/mpris-player
-%{_bindir}/bluetooth-player
-%{_bindir}/btmgmt
 %{_bindir}/scotest
-%{_bindir}/bluemoon
-%{_bindir}/gatttool
-%{_bindir}/hex2hcd
 %{_bindir}/avtest
 #%{_bindir}/btattach
 %exclude /usr/lib/debug/*