unpack libs subpackage

This commit is contained in:
h00465007 2020-02-17 15:40:00 +08:00
parent d8ce38cc33
commit 36f779f5f7

View File

@ -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 <hexiujun1@huawei.com> - 5.50-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:unpack libs subpackage
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.50-5
- Type:enhancement
- ID:NA