diff --git a/bluez.spec b/bluez.spec index 4da6660a86934f71ad34a48b3d4abfa14e6ded38..5ddce5fbcfa2daaf98b9b1f41b5fa0709289c63e 100644 --- a/bluez.spec +++ b/bluez.spec @@ -1,7 +1,7 @@ Name: bluez Summary: Bluetooth utilities Version: 5.50 -Release: 5 +Release: 6 License: GPLv2+ URL: http://www.bluez.org/ Source0: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz @@ -21,20 +21,26 @@ Patch0008: 0001-policy-Add-logic-to-connect-a-Sink.patch BuildRequires: dbus-devel >= 1.6 BuildRequires: git-core glib2-devel libical-devel readline-devel libell-devel BuildRequires: json-c-devel systemd-devel cups-devel libtool automake autoconf -Requires: dbus >= 1.6 +Requires: dbus >= 1.6 %{name}-libs = %{version}-%{release} Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -Provides: bluez-libs bluez-hid2hci bluez-obexd -Obsoletes: bluez-libs bluez-hid2hci bluez-obexd +Provides: bluez-hid2hci bluez-obexd +Obsoletes: bluez-hid2hci bluez-obexd %description This package provides all utilities for use in Bluetooth applications. The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A. +%package libs +Summary: Libraries for bluez + +%description libs +Libraries forbluez. + %package devel Summary: Development libraries for Bluetooth applications -Requires: %{name} = %{version}-%{release} +Requires: %{name}-libs = %{version}-%{release} Provides: bluez-libs-devel Obsoletes: bluez-libs-devel @@ -107,11 +113,11 @@ make check %systemd_post bluetooth.service /sbin/udevadm trigger --subsystem-match=usb %systemd_user_post obex.service -/sbin/ldconfig %postun %systemd_postun_with_restart bluetooth.service -/sbin/ldconfig + +%ldconfig_scriptlets libs %files %{!?_licensedir:%global license %%doc} @@ -125,8 +131,6 @@ make check # This is obexd relative file %{_libexecdir}/bluetooth/obexd %{_libdir}/bluetooth/ -# This is libs file -%{_libdir}/libbluetooth.so.* # This is hid2hci relative file %{_exec_prefix}/lib/udev/hid2hci %{_localstatedir}/lib/bluetooth @@ -141,6 +145,9 @@ make check # obexd relative files %{_userunitdir}/obex.service +%files libs +%{_libdir}/libbluetooth.so.* + %files help %{_mandir}/man1/* %{_mandir}/man8/* @@ -155,6 +162,12 @@ make check %_cups_serverbin/backend/bluetooth %changelog +* Mon Feb 17 2020 hexiujun - 5.50-6 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:unpack libs subpackage + * Sat Jan 11 2020 openEuler Buildteam - 5.50-5 - Type:enhancement - ID:NA