Remove bluez-devel and libbluetooth rpm 45/238545/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20200716.214210 submit/tizen_5.0/20200715.054755
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 25 Jun 2020 01:10:21 +0000 (10:10 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 15 Jul 2020 02:20:36 +0000 (11:20 +0900)
Bluez testing tools only use libbluetooth.so. So we
don't need to provide it as the developement package.

Change-Id: I47960e8eb3c4bb8137ea4561458714d47ce6302f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluez.spec

index 81d4500..6045016 100755 (executable)
@@ -10,7 +10,7 @@
 Name:          bluez
 Summary:       Bluetooth Stack for Linux
 Version:       5.48
-Release:       1
+Release:       2
 Group:         Network & Connectivity/Bluetooth
 License:       GPL-2.0+ and LGPL-2.1+
 URL:           http://www.bluez.org/
@@ -61,16 +61,6 @@ Recommends:  %{name}-profile_common = %{version}-%{release}
 %description
 The Bluetooth stack for Linux.
 
-%package devel
-Summary:        Files needed for BlueZ development
-License:        GPL-2.0+
-Group:          Development/Libraries
-Requires:       libbluetooth = %{version}
-
-%description devel
-Files needed to develop applications for the BlueZ Bluetooth protocol
-stack.
-
 %package extension-bredr
 Summary:    Bluez extension for BREDR functionality
 Requires:  %{name} = %{version}-%{release}
@@ -85,14 +75,6 @@ Conflicts:  %{name}-extension-bredr = %{version}-%{release}
 %description extension-le
 Bluez extension for LE functionality
 
-%package -n libbluetooth
-Summary:        Bluetooth Libraries
-License:        GPL-2.0+
-Group:          Network & Connectivity/Bluetooth
-
-%description -n libbluetooth
-Bluetooth protocol stack libraries.
-
 %package -n obexd
 Summary:        OBEX Server A basic OBEX server implementation
 Group:          Network & Connectivity/Bluetooth
@@ -106,7 +88,6 @@ Summary:        Tools for testing of various Bluetooth-functions
 License:        GPL-2.0+
 Group:          Development/Tools
 Requires:       dbus-python
-Requires:       libbluetooth = %{version}
 Requires:       python-gobject
 
 %description test
@@ -375,8 +356,6 @@ install -D -m 0644 src/bluetooth.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
 #install -D -m 0644 profiles/network/network.conf %{buildroot}%{_sysconfdir}/bluetooth/network.conf
 
 #install -D -m 0644 COPYING %{buildroot}%{_datadir}/license/bluez
-#install -D -m 0644 COPYING %{buildroot}%{_datadir}/license/libbluetooth3
-#install -D -m 0644 COPYING %{buildroot}%{_datadir}/license/libbluetooth-devel
 
 #install -D -m 0755 %SOURCE101 %{buildroot}%{_bindir}/obex-root-setup
 #install -D -m 0755 %SOURCE102 %{buildroot}%{_sysconfdir}/obex/root-setup.d/000_create-symlinks
@@ -406,10 +385,6 @@ cp -f packaging/500.bluez_upgrade.sh %{buildroot}%{upgrade_script_path}
 #%post
 #ln -sf %{_libdir}/systemd/system/bluetooth.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
 
-%post -n libbluetooth -p /sbin/ldconfig
-
-%postun -n libbluetooth -p /sbin/ldconfig
-
 %post -n bluez-extension-bredr
 pushd %{_libexecdir}/bluetooth
 for FILE in bluetoothd.bredr; do mv "$FILE" "${FILE%.bredr}"; done
@@ -450,6 +425,8 @@ popd
 %dir /usr/lib/udev
 /usr/lib/udev/*
 %{upgrade_script_path}/500.bluez_upgrade.sh
+%exclude %{_includedir}/bluetooth/*
+%exclude %{_libdir}/pkgconfig/bluez.pc
 
 %files -n bluez-extension-bredr
 %manifest %{name}.manifest
@@ -471,19 +448,6 @@ popd
 %config(noreplace) %{_sysconfdir}/modprobe.d/50-bluetooth.conf
 
 
-%files devel
-%manifest %{name}.manifest
-%defattr(-, root, root)
-%{_includedir}/bluetooth/*
-%{_libdir}/libbluetooth.so
-%{_libdir}/pkgconfig/bluez.pc
-
-%files -n libbluetooth
-%manifest %{name}.manifest
-%defattr(-, root, root)
-%{_libdir}/libbluetooth.so.*
-%license COPYING
-
 %files -n obexd
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
@@ -515,6 +479,7 @@ popd
 %{_bindir}/hex2hcd
 %{_bindir}/btattach
 %exclude /usr/lib/debug/*
+%{_libdir}/libbluetooth.so*
 
 %docs_package