Separate bluez-test package into tests and tools 62/298062/3 accepted/tizen/8.0/unified/20231005.094642 accepted/tizen/unified/20230901.031830
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Fri, 25 Nov 2022 06:03:11 +0000 (15:03 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 31 Aug 2023 01:31:51 +0000 (10:31 +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 193160b..523170d 100755 (executable)
@@ -97,6 +97,18 @@ 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}
@@ -531,23 +543,25 @@ 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
 %defattr(-,root,root)
 %{_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}/isotest
 %{_bindir}/avtest
 #%{_bindir}/btattach