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