2019-09-30 10:32:36 -04:00
|
|
|
Name: bluez
|
|
|
|
|
Summary: Bluetooth utilities
|
2024-01-22 06:31:46 +00:00
|
|
|
Version: 5.71
|
|
|
|
|
Release: 1
|
2019-09-30 10:32:36 -04:00
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://www.bluez.org/
|
|
|
|
|
Source0: http://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
|
|
|
|
|
# The following sources all come from upstream
|
|
|
|
|
Source1: bluez.gitignore
|
|
|
|
|
Source2: 69-btattach-bcm.rules
|
|
|
|
|
Source3: btattach-bcm@.service
|
|
|
|
|
Source4: btattach-bcm-service.sh
|
|
|
|
|
|
2021-06-28 17:40:20 +08:00
|
|
|
# workaround for broken tests (reported upstream but not yet fixed)
|
|
|
|
|
# upstream:https://github.com/bluez/bluez/commit/5fc60b2ce7c4370ff8d9bc3d3c3434b212465f40
|
2024-01-22 06:31:46 +00:00
|
|
|
Patch6000: backport-bluez-disable-test-mesh-crypto.patch
|
2022-12-08 16:40:22 +08:00
|
|
|
%ifarch sw_64
|
|
|
|
|
Patch6013: bluez-5.54-sw.patch
|
|
|
|
|
%endif
|
2020-07-22 21:00:47 +08:00
|
|
|
|
|
|
|
|
BuildRequires: dbus-devel >= 1.6 libell-devel >= 0.28 autoconf
|
2021-07-30 22:24:20 +08:00
|
|
|
BuildRequires: glib2-devel libical-devel readline-devel
|
2024-01-22 06:31:46 +00:00
|
|
|
BuildRequires: json-c-devel systemd-devel cups-devel libtool automake python3-docutils
|
2020-02-17 15:40:00 +08:00
|
|
|
Requires: dbus >= 1.6 %{name}-libs = %{version}-%{release}
|
2019-09-30 10:32:36 -04:00
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
2020-07-22 21:00:47 +08:00
|
|
|
Provides: bluez-hid2hci = %{version}-%{release}
|
|
|
|
|
Provides: bluez-obexd = %{version}-%{release}
|
|
|
|
|
Provides: bluez-mesh = %{version}-%{release}
|
|
|
|
|
Obsoletes: bluez-hid2hci < %{version}-%{release}
|
|
|
|
|
Obsoletes: bluez-obexd < %{version}-%{release}
|
|
|
|
|
Obsoletes: bluez-mesh < %{version}-%{release}
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides all utilities for use in Bluetooth applications.
|
|
|
|
|
The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
|
|
|
|
|
|
2020-02-17 15:40:00 +08:00
|
|
|
%package libs
|
|
|
|
|
Summary: Libraries for bluez
|
|
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
|
Libraries forbluez.
|
|
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development libraries for Bluetooth applications
|
2020-02-17 15:40:00 +08:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
2020-07-22 21:00:47 +08:00
|
|
|
Provides: bluez-libs-devel = %{version}-%{release}
|
|
|
|
|
Obsoletes: bluez-libs-devel < %{version}-%{release}
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package provides development libraries and headers for Bluetooth related
|
|
|
|
|
applications.
|
|
|
|
|
|
2020-07-22 21:00:47 +08:00
|
|
|
%package_help
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%package cups
|
|
|
|
|
Summary: CUPS printer backend for Bluetooth printers
|
|
|
|
|
Requires: bluez%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: cups
|
|
|
|
|
|
|
|
|
|
%description cups
|
|
|
|
|
This package contains the CUPS backend
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-07-30 22:24:20 +08:00
|
|
|
%autosetup -p1
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
libtoolize -f
|
|
|
|
|
autoreconf -f -i
|
|
|
|
|
%configure --enable-tools --enable-library --enable-deprecated \
|
|
|
|
|
--enable-sixaxis --enable-cups --enable-nfc --enable-mesh \
|
2024-01-22 06:31:46 +00:00
|
|
|
--enable-hid2hci --enable-testing \
|
2019-09-30 10:32:36 -04:00
|
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
|
|
|
|
--with-systemduserunitdir=%{_userunitdir}
|
|
|
|
|
%make_build V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
install -m0755 attrib/gatttool $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
|
2020-07-22 21:00:47 +08:00
|
|
|
%delete_la
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
# Remove the cups backend from libdir, and install it in new default CUPS binary directory
|
|
|
|
|
if test -d ${RPM_BUILD_ROOT}/usr/lib64/cups ; then
|
|
|
|
|
install -D -m0755 ${RPM_BUILD_ROOT}/usr/lib64/cups/backend/bluetooth ${RPM_BUILD_ROOT}%_cups_serverbin/backend/bluetooth
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}%{_libdir}/cups
|
|
|
|
|
fi
|
|
|
|
|
|
2020-07-22 21:00:47 +08:00
|
|
|
rm -f %{buildroot}/%{_sysconfdir}/udev/*.rules %{buildroot}/usr/lib/udev/rules.d/*.rules
|
|
|
|
|
install -D -p -m 0644 tools/hid2hci.rules %{buildroot}/%{_udevrulesdir}/97-hid2hci.rules
|
|
|
|
|
install -d -m 0755 %{buildroot}/%{_localstatedir}/lib/bluetooth
|
|
|
|
|
install -d -m 0755 %{buildroot}/%{_localstatedir}/lib/bluetooth/mesh
|
|
|
|
|
install -d %{buildroot}/%{_libdir}/bluetooth/
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
# Copy bluetooth config file
|
2020-07-22 21:00:47 +08:00
|
|
|
install -D -p -m0644 src/main.conf %{buildroot}/etc/bluetooth/main.conf
|
|
|
|
|
install -D -p -m0644 mesh/mesh-main.conf %{buildroot}/etc/bluetooth/mesh-main.conf
|
|
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
# Setup auto enable
|
|
|
|
|
sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' ${RPM_BUILD_ROOT}/%{_sysconfdir}/bluetooth/main.conf
|
|
|
|
|
|
|
|
|
|
# Serial port connected Broadcom HCIs scripts
|
|
|
|
|
install -D -p -m0644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_udevrulesdir}/
|
|
|
|
|
install -D -p -m0644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_unitdir}/
|
|
|
|
|
install -D -p -m0755 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
|
|
|
|
|
|
2020-07-22 21:00:47 +08:00
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets libs
|
|
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
%preun
|
|
|
|
|
%systemd_preun bluetooth.service
|
|
|
|
|
%systemd_user_preun obex.service
|
2022-01-13 15:35:47 +08:00
|
|
|
%systemd_preun bluetooth-mesh.service
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post bluetooth.service
|
|
|
|
|
/sbin/udevadm trigger --subsystem-match=usb
|
|
|
|
|
%systemd_user_post obex.service
|
2022-01-13 15:35:47 +08:00
|
|
|
%systemd_post bluetooth-mesh.service
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart bluetooth.service
|
2020-02-17 15:40:00 +08:00
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
|
|
|
|
|
%files
|
2020-07-22 21:00:47 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:32:36 -04:00
|
|
|
%doc AUTHORS ChangeLog
|
2020-07-22 21:00:47 +08:00
|
|
|
%license COPYING
|
2019-09-30 10:32:36 -04:00
|
|
|
%config %{_sysconfdir}/bluetooth/main.conf
|
2020-07-22 21:00:47 +08:00
|
|
|
%config %{_sysconfdir}/bluetooth/mesh-main.conf
|
2024-01-22 06:31:46 +00:00
|
|
|
%{_datadir}/dbus-1/system.d/bluetooth.conf
|
|
|
|
|
%{_datadir}/dbus-1/system.d/bluetooth-mesh.conf
|
2019-09-30 10:32:36 -04:00
|
|
|
%{_bindir}/*
|
2020-07-22 21:00:47 +08:00
|
|
|
%{_libdir}/bluetooth/
|
|
|
|
|
%{_prefix}/lib/udev/hid2hci
|
|
|
|
|
%{_libexecdir}/bluetooth/obexd
|
2019-09-30 10:32:36 -04:00
|
|
|
%{_libexecdir}/bluetooth/bluetoothd
|
2020-07-22 21:00:47 +08:00
|
|
|
%{_libexecdir}/bluetooth/bluetooth-meshd
|
2019-09-30 10:32:36 -04:00
|
|
|
%{_libexecdir}/bluetooth/btattach-bcm-service.sh
|
|
|
|
|
%{_localstatedir}/lib/bluetooth
|
|
|
|
|
%{_unitdir}/bluetooth.service
|
|
|
|
|
%{_unitdir}/btattach-bcm@.service
|
2020-07-22 21:00:47 +08:00
|
|
|
%{_unitdir}/bluetooth-mesh.service
|
|
|
|
|
%{_datadir}/zsh/site-functions/_bluetoothctl
|
|
|
|
|
%{_datadir}/dbus-1/services/org.bluez.obex.service
|
|
|
|
|
%{_datadir}/dbus-1/system-services/org.bluez.service
|
|
|
|
|
%{_datadir}/dbus-1/system-services/org.bluez.mesh.service
|
2019-09-30 10:32:36 -04:00
|
|
|
%{_userunitdir}/obex.service
|
2020-07-22 21:00:47 +08:00
|
|
|
%{_udevrulesdir}/97-hid2hci.rules
|
|
|
|
|
%{_udevrulesdir}/69-btattach-bcm.rules
|
2019-09-30 10:32:36 -04:00
|
|
|
|
2020-02-17 15:40:00 +08:00
|
|
|
%files libs
|
2020-07-22 21:00:47 +08:00
|
|
|
%defattr(-,root,root)
|
2020-02-17 15:40:00 +08:00
|
|
|
%{_libdir}/libbluetooth.so.*
|
|
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
%files devel
|
2020-07-22 21:00:47 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:32:36 -04:00
|
|
|
%doc doc/*txt
|
|
|
|
|
%{_libdir}/libbluetooth.so
|
|
|
|
|
%{_includedir}/bluetooth
|
|
|
|
|
%{_libdir}/pkgconfig/bluez.pc
|
|
|
|
|
|
|
|
|
|
%files cups
|
2020-07-22 21:00:47 +08:00
|
|
|
%defattr(-,root,root)
|
2019-09-30 10:32:36 -04:00
|
|
|
%_cups_serverbin/backend/bluetooth
|
|
|
|
|
|
2020-07-22 21:00:47 +08:00
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man1/*
|
2024-01-22 06:31:46 +00:00
|
|
|
%{_mandir}/man5/*
|
2020-07-22 21:00:47 +08:00
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
%changelog
|
2024-01-22 06:31:46 +00:00
|
|
|
* Tue Jan 23 2024 zhangpan <zhangpan103@h-partners.com> - 5.71-1
|
|
|
|
|
- update to 5.71
|
|
|
|
|
|
2023-12-22 09:32:15 +00:00
|
|
|
* Fri Dec 22 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 5.54-19
|
|
|
|
|
- fix CVE-2023-50229,CVE-2023-50230
|
|
|
|
|
|
2023-12-08 07:16:24 +00:00
|
|
|
* Fri Dec 08 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 5.54-18
|
|
|
|
|
- fix CVE-2023-45866
|
|
|
|
|
|
2023-04-18 10:53:40 +00:00
|
|
|
* Tue Apr 18 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 5.54-17
|
|
|
|
|
- DESC:fix CVE-2023-27349
|
|
|
|
|
|
2022-12-08 16:40:22 +08:00
|
|
|
* Thu Dec 08 2022 zhangzhixin <zhixin.zhang@i-soft.com.cn> - 5.54-16
|
|
|
|
|
- add sw64 patch
|
|
|
|
|
|
2022-09-07 10:11:02 +08:00
|
|
|
* Wed Sep 07 2022 wangkerong <wangkerong@h-partners.com> - 5.54-15
|
|
|
|
|
- DESC:fix CVE-2022-39176,CVE-2022-39177
|
|
|
|
|
|
2022-07-13 15:48:02 +08:00
|
|
|
* Wed Jul 13 2022 wangkerong <wangkerong@h-partners.com> - 5.54-14
|
|
|
|
|
- DESC:fix CVE-2021-41229
|
|
|
|
|
|
|
|
|
|
* Fri Mar 18 2022 xingxing <xingxing9@h-partners.com> - 5.54-13
|
2022-03-18 17:23:42 +08:00
|
|
|
- Type:CVE
|
|
|
|
|
- CVE:CVE-2022-0204
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2022-0204 and add prefix for CVE-2021-0129
|
|
|
|
|
|
2022-03-01 18:16:01 +08:00
|
|
|
* Tue Mar 1 2022 xingxing <xingxing9@h-partners.com> - 5.54-12
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- CVE:CVE-2021-0129
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2021-0129
|
|
|
|
|
|
2022-02-11 15:35:10 +08:00
|
|
|
* Fri Feb 11 2022 xingxing <xingxing9@h-partners.com> - 5.54-11
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- CVE:CVE-2021-43400
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2021-43400
|
|
|
|
|
|
2022-01-13 15:35:47 +08:00
|
|
|
* Thu Jan 13 2022 wangkerong <wangkerong@huawei.com> - 5.54-10
|
|
|
|
|
- DESC:fix an error in logs during bluez installation or uninstallation
|
|
|
|
|
|
2021-04-18 09:11:33 -04:00
|
|
|
* Fri Sep 24 2021 yanan <yanan@huawei.com> - 5.54-9
|
|
|
|
|
- DESC:fix CVE-2021-3658
|
|
|
|
|
|
2021-08-10 20:29:16 +08:00
|
|
|
* Tue Aug 10 2021 zhanzhimin <zhanzhimin@huawei.com> - 5.54-8
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- ID:CVE-2020-27153
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2020-27153
|
|
|
|
|
|
2021-08-10 10:21:36 +08:00
|
|
|
* Tue Aug 10 2021 yanan <yanan@huawei.com> - 5.54-7
|
|
|
|
|
- DESC: fix conflict with unistd.h
|
|
|
|
|
|
2021-07-30 22:24:20 +08:00
|
|
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 5.54-6
|
|
|
|
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git-core
|
|
|
|
|
|
2021-06-28 17:40:20 +08:00
|
|
|
* Mon Jun 28 2021 hanhui <hanhui15@huawei.com> - 5.54-5
|
|
|
|
|
- DESC:disable test-mesh-crypto
|
|
|
|
|
|
2021-06-26 15:27:03 +08:00
|
|
|
* Sat Jun 26 2021 zhanzhimin <zhanzhimin@huawei.com> - 5.54-4
|
|
|
|
|
- Type:CVE
|
|
|
|
|
- ID:CVE-2021-3588
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2021-3588
|
|
|
|
|
|
2020-09-16 10:44:42 +08:00
|
|
|
* Wed Sep 16 2020 orange-snn <songnannan2@huawei.com> - 5.54-3
|
|
|
|
|
- bugfix test-mesh-crypto faild
|
|
|
|
|
|
2020-08-10 16:12:50 +08:00
|
|
|
* Mon Aug 10 2020 shixuantong <shixuantong@huawei.com> - 5.54-2
|
|
|
|
|
- update yaml file
|
|
|
|
|
|
2020-07-22 21:00:47 +08:00
|
|
|
* Wed Jul 22 2020 songnannan <songnannan2@huawei.com> - 5.54-1
|
|
|
|
|
- update to 5.54
|
|
|
|
|
|
2020-05-20 09:37:24 +08:00
|
|
|
* Wed May 20 2020 songnannan <songnannan2@huawei.com> - 5.50-9
|
|
|
|
|
- delete the check temporarily
|
|
|
|
|
|
2020-04-22 10:24:45 +08:00
|
|
|
* Wed Apr 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.50-8
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2020-0556
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2020-0556
|
|
|
|
|
|
2020-03-18 16:18:47 +08:00
|
|
|
* Wed Mar 18 2020 chenzhen <chenzhen44@huawei.com> - 5.50-7
|
|
|
|
|
- Type:cves
|
|
|
|
|
- ID:CVE-2018-10910
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix CVE-2018-10910
|
|
|
|
|
|
2020-02-17 15:40:00 +08:00
|
|
|
* Mon Feb 17 2020 hexiujun <hexiujun1@huawei.com> - 5.50-6
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:unpack libs subpackage
|
|
|
|
|
|
2020-01-11 10:16:08 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.50-5
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC: delete patches
|
|
|
|
|
|
2019-09-30 10:32:36 -04:00
|
|
|
* Tue Sep 17 2019 Alex Chao <zhaolei746@huawei.com> - 5.50-4
|
|
|
|
|
- Package init
|