2008-09-15 10:31:24 +02:00
|
|
|
#
|
2011-01-24 16:07:41 +01:00
|
|
|
# spec file for package bluez
|
2008-09-15 10:31:24 +02:00
|
|
|
#
|
2023-08-11 04:05:50 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-03-21 10:00:30 +01:00
|
|
|
# Copyright (c) 2010-2020 B1 Systems GmbH, Vohburg, Germany
|
2008-09-15 10:31:24 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-10 20:18:07 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-15 10:31:24 +02:00
|
|
|
#
|
|
|
|
|
2012-01-27 18:50:18 +01:00
|
|
|
|
2019-11-22 09:52:46 +01:00
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
|
|
|
|
%bcond_without mesh
|
|
|
|
%else
|
|
|
|
%bcond_with mesh
|
|
|
|
%endif
|
2019-12-17 09:38:02 +01:00
|
|
|
%bcond_without bluez_deprecated
|
2022-03-07 23:17:00 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150300
|
|
|
|
# systemd-rpm-macros is wrong in 15.3 and below
|
|
|
|
%global _modprobedir /lib/modprobe.d
|
|
|
|
%endif
|
|
|
|
%global modprobe_d_files 50-bluetooth.conf
|
|
|
|
|
2023-08-21 06:11:51 +02:00
|
|
|
%if %{undefined _firmwaredir}
|
|
|
|
%define _firmwaredir /lib/firmware
|
|
|
|
%endif
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
Name: bluez
|
2023-11-06 22:22:12 +01:00
|
|
|
Version: 5.70
|
2011-12-27 13:50:19 +01:00
|
|
|
Release: 0
|
2008-09-15 10:31:24 +02:00
|
|
|
Summary: Bluetooth Stack for Linux
|
2018-03-14 19:50:47 +01:00
|
|
|
License: GPL-2.0-or-later
|
2008-09-15 10:31:24 +02:00
|
|
|
Group: Hardware/Mobile
|
2019-11-22 09:52:46 +01:00
|
|
|
URL: http://www.bluez.org
|
2022-08-17 22:39:29 +02:00
|
|
|
Source: https://www.kernel.org/pub/linux/bluetooth/bluez-%{version}.tar.xz
|
2019-12-17 09:38:02 +01:00
|
|
|
# we still want debuginfo
|
|
|
|
#KEEP NOSOURCE DEBUGINFO
|
2011-06-23 04:42:33 +02:00
|
|
|
Source5: baselibs.conf
|
2009-01-08 17:55:14 +01:00
|
|
|
Source7: bluetooth.modprobe
|
2022-10-04 05:40:14 +02:00
|
|
|
Source9: bluez.changes.sle
|
2019-10-21 14:23:56 +02:00
|
|
|
# fix some logitech HID devices, bnc#681049, bnc#850478 --seife+obs@b1-systems.com
|
|
|
|
Patch1: bluez-5.11-logitech-hid2hci.patch
|
|
|
|
Patch2: bluez-sdp-unix-path.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: find the cups dir in libexec not in libdir
|
|
|
|
Patch3: bluez-cups-libexec.patch
|
|
|
|
# workaround for broken tests (reported upstream but not yet fixed)
|
|
|
|
Patch4: bluez-disable-broken-tests.diff
|
2023-11-06 22:22:12 +01:00
|
|
|
# PATCH-FIX-UPSTREAM: fix regression in pairing gamepads -- https://github.com/bluez/bluez/issues/614
|
|
|
|
Patch5: Fix-.device_probe-failing-if-SDP-record-is-not.patch
|
2022-09-19 09:10:32 +02:00
|
|
|
# disable tests for bypass boo#1078285
|
|
|
|
Patch12: disable_some_obex_tests.patch
|
|
|
|
# get rid of python2. WARNING: this is autogenerated by 2to3 and might not work
|
|
|
|
Patch13: bluez-test-2to3.diff
|
|
|
|
# bsc#1013708 CVE-2016-9797
|
|
|
|
Patch14: hcidump-Add-assoc-dump-function-assoc-date-length-ch.patch
|
|
|
|
# bsc#1015171 CVE-2016-9917
|
|
|
|
Patch15: hcidump-Fix-memory-leak-with-malformed-packet.patch
|
|
|
|
# bsc#1013712 CVE-2016-9798
|
|
|
|
Patch16: hcidump-Fixed-malformed-segment-frame-length.patch
|
2019-10-21 14:23:56 +02:00
|
|
|
# Upstream suggests to use btmon instead of hcidump and does not want those patches
|
|
|
|
# => PATCH-FIX-OPENSUSE for those two :-)
|
|
|
|
# fix some memory leak with malformed packet (reported upstream but not yet fixed)
|
|
|
|
Patch101: CVE-2016-9800-tool-hcidump-Fix-memory-leak-with-malformed-packet.patch
|
|
|
|
Patch102: CVE-2016-9804-tool-hcidump-Fix-memory-leak-with-malformed-packet.patch
|
2022-09-19 09:10:32 +02:00
|
|
|
# Move 43xx firmware path for RPi3 bluetooth support bsc#1140688 bsc#995059 bsc#1094902
|
|
|
|
Patch201: 0001-rpi3-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
|
2021-06-25 20:09:12 +02:00
|
|
|
# mesh-cfgtest only compiles with gcc8 or newer, Leap 15 has gcc7.5.0 as default
|
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
BuildRequires: gcc8
|
|
|
|
%endif
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: automake
|
2017-03-01 21:50:58 +01:00
|
|
|
BuildRequires: flex
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: libtool
|
2017-03-01 21:50:58 +01:00
|
|
|
BuildRequires: pkgconfig
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: readline-devel
|
2017-03-01 21:50:58 +01:00
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(check)
|
|
|
|
BuildRequires: pkgconfig(dbus-1) >= 1.6
|
2013-01-25 08:57:16 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.28
|
2017-03-01 21:50:58 +01:00
|
|
|
BuildRequires: pkgconfig(libcap-ng)
|
|
|
|
BuildRequires: pkgconfig(libical)
|
|
|
|
BuildRequires: pkgconfig(libudev)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2021-06-25 20:09:12 +02:00
|
|
|
# for rst2man
|
|
|
|
BuildRequires: python3-docutils
|
2020-09-10 08:23:18 +02:00
|
|
|
# libgio-2_0-0 has a runtime dependency on shared-mime-info, which is not
|
|
|
|
# required for building here, but causes a build loop
|
|
|
|
#!BuildIgnore: shared-mime-info
|
2017-12-12 09:24:25 +01:00
|
|
|
Requires(post): systemd
|
2013-01-25 08:57:16 +01:00
|
|
|
Recommends: sbc
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-utils = 3.36
|
2022-05-05 13:07:45 +02:00
|
|
|
Obsoletes: bluez-utils < 3.36
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-audio = 3.36
|
2022-05-05 13:07:45 +02:00
|
|
|
Obsoletes: bluez-audio < 3.36
|
2013-09-09 11:07:05 +02:00
|
|
|
Obsoletes: bluez-hcidump < 5.0
|
|
|
|
Provides: bluez-hcidump = %{version}
|
|
|
|
Obsoletes: obexd-client < 5.0
|
|
|
|
Provides: obexd-client = %{version}
|
2017-03-01 21:50:58 +01:00
|
|
|
%{?systemd_requires}
|
2020-09-10 08:23:18 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2021-04-07 10:04:28 +02:00
|
|
|
BuildRequires: pkgconfig(ell) >= 0.39
|
2020-09-10 08:23:18 +02:00
|
|
|
%endif
|
|
|
|
%if %{with mesh}
|
|
|
|
# json-c is needed for --enable-mesh
|
|
|
|
BuildRequires: pkgconfig(json-c)
|
|
|
|
%endif
|
2016-07-31 17:46:40 +02:00
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%description
|
2016-08-02 19:27:10 +02:00
|
|
|
BlueZ provides support for the core Bluetooth layers and protocols.
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Files needed for BlueZ development
|
2018-03-14 19:50:47 +01:00
|
|
|
License: GPL-2.0-or-later
|
2016-08-02 19:27:10 +02:00
|
|
|
Group: Development/Languages/C and C++
|
2008-09-15 17:50:20 +02:00
|
|
|
Requires: libbluetooth3 = %{version}
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files needed to develop applications for the BlueZ Bluetooth protocol
|
|
|
|
stack.
|
|
|
|
|
|
|
|
%package -n libbluetooth3
|
|
|
|
Summary: Bluetooth Libraries
|
2018-03-14 19:50:47 +01:00
|
|
|
License: GPL-2.0-or-later
|
2016-08-02 19:27:10 +02:00
|
|
|
Group: System/Libraries
|
2008-09-24 15:04:20 +02:00
|
|
|
Provides: bluez-libs = 3.36
|
2022-05-05 13:07:45 +02:00
|
|
|
Obsoletes: bluez-libs < 3.36
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description -n libbluetooth3
|
2016-08-02 19:27:10 +02:00
|
|
|
BlueZ provides support for the core Bluetooth layers and protocols.
|
|
|
|
It is uses a modular implementation. It has many interesting features:
|
|
|
|
|
|
|
|
* Multithreaded data processing
|
|
|
|
* Support for multiple Bluetooth devices
|
|
|
|
* Real hardware abstraction
|
|
|
|
* Standard socket interface to all layers
|
|
|
|
* Device and service level security support
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%package cups
|
|
|
|
Summary: CUPS Driver for Bluetooth Printers
|
2018-03-14 19:50:47 +01:00
|
|
|
License: GPL-2.0-or-later
|
2011-12-27 13:50:19 +01:00
|
|
|
Group: Hardware/Printing
|
2022-05-05 13:07:45 +02:00
|
|
|
Requires: %{name}
|
2022-08-17 22:39:29 +02:00
|
|
|
Requires: cups
|
2022-05-05 13:07:45 +02:00
|
|
|
Supplements: (%{name} and cups)
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description cups
|
|
|
|
Contains the files required by CUPS for printing to Bluetooth-connected
|
|
|
|
printers.
|
|
|
|
|
|
|
|
%package test
|
|
|
|
Summary: Tools for testing of various Bluetooth-functions
|
2018-03-14 19:50:47 +01:00
|
|
|
License: GPL-2.0-or-later AND MIT
|
2011-12-27 13:50:19 +01:00
|
|
|
Group: Development/Tools/Debuggers
|
2020-04-16 19:28:42 +02:00
|
|
|
Requires: python3-dbus-python
|
2022-05-09 08:01:18 +02:00
|
|
|
Requires: python3-gobject
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%description test
|
|
|
|
Contains a few tools for testing various bluetooth functions. The
|
|
|
|
BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
|
|
|
|
|
2017-06-08 13:26:04 +02:00
|
|
|
%package auto-enable-devices
|
|
|
|
Summary: Configuration that automatically enables all bluetooth devices
|
2018-03-14 19:50:47 +01:00
|
|
|
License: GPL-2.0-or-later
|
2017-06-08 13:26:04 +02:00
|
|
|
Group: Hardware/Mobile
|
|
|
|
BuildArch: noarch
|
2022-04-26 19:59:44 +02:00
|
|
|
Requires(post): systemd
|
2017-06-08 13:26:04 +02:00
|
|
|
|
|
|
|
%description auto-enable-devices
|
|
|
|
Contains configuration that automatically enables all bluetooth devices
|
|
|
|
that are connected to the system if no other tool is handling them (e.g.
|
|
|
|
desktop specific applets like blueman or GNOME or KDE applets).
|
|
|
|
|
2017-07-07 21:15:52 +02:00
|
|
|
%post auto-enable-devices
|
|
|
|
{ systemctl status -n0 bluetooth.service > /dev/null && systemctl restart bluetooth.service ; } ||:
|
|
|
|
|
|
|
|
%postun auto-enable-devices
|
|
|
|
{ systemctl status -n0 bluetooth.service > /dev/null && systemctl restart bluetooth.service ; } ||:
|
|
|
|
|
2019-12-17 09:38:02 +01:00
|
|
|
%if %{with bluez_deprecated}
|
|
|
|
%package deprecated
|
|
|
|
Summary: Bluez tools that upstream considers obsolete
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
|
|
|
|
%description deprecated
|
|
|
|
This package contains tools from the bluez package that are only built
|
|
|
|
if the "--enable-deprecated" switch is used. These are considered obsolete
|
|
|
|
by the upstream developers and might contain serious issues, even security
|
|
|
|
bugs. Use at your own risk.
|
|
|
|
|
|
|
|
Note that this package will go away before end of 2020, change your code
|
|
|
|
to use the modern tools instead.
|
|
|
|
%endif
|
|
|
|
|
2021-11-23 12:05:54 +01:00
|
|
|
%package obexd
|
|
|
|
Summary: Object Exchange daemon for sharing content
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Hardware/Mobile
|
|
|
|
Requires: bluez = %{version}
|
|
|
|
|
|
|
|
%description obexd
|
|
|
|
Object Exchange daemon for sharing content.
|
|
|
|
|
2022-05-05 13:07:45 +02:00
|
|
|
%package zsh-completion
|
|
|
|
Summary: Zsh completion for bluez
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name}
|
2022-08-17 22:39:29 +02:00
|
|
|
Requires: zsh
|
2022-05-05 13:07:45 +02:00
|
|
|
Supplements: (%{name} and zsh)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
This package contain the zsh completion command for the Bluetooth Stack for Linux.
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%prep
|
2022-08-17 22:39:29 +02:00
|
|
|
%autosetup -p1
|
2008-11-17 16:42:21 +01:00
|
|
|
mkdir dbus-apis
|
|
|
|
cp -a doc/*.txt dbus-apis/
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2017-06-08 13:26:04 +02:00
|
|
|
# for auto-enable subpackage
|
2021-08-10 09:26:46 +02:00
|
|
|
sed -i '/^#AutoEnable=false/aAutoEnable=true' src/main.conf
|
2017-06-08 13:26:04 +02:00
|
|
|
|
2021-01-27 11:56:24 +01:00
|
|
|
# 2to3 does not fix the #! line
|
|
|
|
sed -i '1s#/usr/bin/python$#/usr/bin/python3#' test/*
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%build
|
2021-06-25 20:09:12 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
echo 0%{?suse_version}
|
|
|
|
export CC=gcc-8
|
|
|
|
%endif
|
2022-11-16 16:32:39 +01:00
|
|
|
# header file has "#ifndef FIRMWARE_DIR...#define FIRMWARE_DIR /etc/firmare"
|
|
|
|
# instead of patching, just supply FIRMWARE_DIR on compiler's command line
|
2023-08-21 06:11:51 +02:00
|
|
|
export CPPFLAGS="$CPPFLAGS -DFIRMWARE_DIR='\"%{_firmwaredir}\"'"
|
2017-05-26 23:27:55 +02:00
|
|
|
# because of patch4...
|
|
|
|
autoreconf -fi
|
2015-12-28 15:35:08 +01:00
|
|
|
# --enable-experimental is needed or btattach does not build (bug?)
|
2016-08-02 19:27:10 +02:00
|
|
|
%configure \
|
2017-03-01 21:50:58 +01:00
|
|
|
--disable-silent-rules \
|
2013-09-09 11:07:05 +02:00
|
|
|
--enable-pie \
|
|
|
|
--enable-library \
|
|
|
|
--enable-tools \
|
|
|
|
--enable-cups \
|
2020-09-10 08:23:18 +02:00
|
|
|
--enable-hid2hci \
|
2021-08-26 13:32:01 +02:00
|
|
|
--enable-admin \
|
2019-11-22 09:52:46 +01:00
|
|
|
%if %{with mesh}
|
2017-09-19 20:25:35 +02:00
|
|
|
--enable-mesh \
|
2019-06-30 14:53:42 +02:00
|
|
|
%endif
|
2017-03-02 13:30:53 +01:00
|
|
|
--enable-midi \
|
2013-09-09 11:07:05 +02:00
|
|
|
--enable-test \
|
2015-12-28 15:35:08 +01:00
|
|
|
--enable-experimental \
|
2019-12-17 09:38:02 +01:00
|
|
|
%if %{with bluez_deprecated}
|
2017-03-02 13:30:53 +01:00
|
|
|
--enable-deprecated \
|
2019-12-17 09:38:02 +01:00
|
|
|
%endif
|
2016-06-07 17:11:33 +02:00
|
|
|
--enable-datafiles \
|
2017-07-09 12:31:17 +02:00
|
|
|
--enable-sixaxis \
|
2022-05-05 13:07:45 +02:00
|
|
|
--with-dbusconfdir=%{_datadir} \
|
2020-06-19 10:48:30 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
--enable-external-ell \
|
|
|
|
%endif
|
2016-06-07 17:11:33 +02:00
|
|
|
--with-systemdsystemunitdir=%{_unitdir} \
|
|
|
|
--with-systemduserunitdir=%{_userunitdir}
|
2012-07-11 08:36:38 +02:00
|
|
|
|
2020-09-10 08:23:18 +02:00
|
|
|
%make_build all
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%install
|
2013-01-25 08:57:16 +01:00
|
|
|
%make_install
|
2017-03-01 21:50:58 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2022-03-07 23:17:00 +01:00
|
|
|
install --mode=0644 -D %{SOURCE7} %{buildroot}/%{_modprobedir}/50-bluetooth.conf
|
2012-04-28 08:41:54 +02:00
|
|
|
# no idea why this is suddenly necessary...
|
2013-01-25 08:57:16 +01:00
|
|
|
install --mode 0755 -d %{buildroot}%{_localstatedir}/lib/bluetooth
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2016-04-10 11:53:17 +02:00
|
|
|
## same as in fedora...
|
|
|
|
# "make install" fails to install gatttool, used with Bluetooth Low Energy
|
2019-02-02 10:10:23 +01:00
|
|
|
# boo#970628
|
2019-12-17 09:38:02 +01:00
|
|
|
%if %{with bluez_deprecated}
|
2016-04-10 11:53:17 +02:00
|
|
|
install -m0755 attrib/gatttool %{buildroot}%{_bindir}
|
2019-12-17 09:38:02 +01:00
|
|
|
%endif
|
2016-04-10 11:53:17 +02:00
|
|
|
|
2019-02-02 10:10:23 +01:00
|
|
|
## install btgatt-client for -test package, see
|
|
|
|
## https://www.spinics.net/lists/linux-bluetooth/msg63258.html
|
|
|
|
install -m0755 tools/btgatt-client %{buildroot}%{_bindir}
|
2019-02-20 22:10:26 +01:00
|
|
|
# btmgmt can be useful
|
|
|
|
install -m0755 tools/btmgmt %{buildroot}%{_bindir}
|
2019-06-30 14:53:42 +02:00
|
|
|
# avinfo can be useful for debugging
|
2020-09-10 08:23:18 +02:00
|
|
|
install -m0755 tools/avinfo %{buildroot}%{_bindir}
|
2019-02-02 10:10:23 +01:00
|
|
|
|
2017-06-08 13:26:04 +02:00
|
|
|
# for auto-enable subpackage
|
|
|
|
find . -name main.conf
|
|
|
|
install --mode 0644 -D src/main.conf %{buildroot}/%{_sysconfdir}/bluetooth/main.conf
|
|
|
|
|
2014-02-24 17:31:35 +01:00
|
|
|
# rpmlint warnings...
|
|
|
|
cd %{buildroot}%{_libdir}/bluez/test
|
|
|
|
chmod 0644 *.py *.xml *.dtd
|
|
|
|
|
2018-02-12 08:35:21 +01:00
|
|
|
# fix python shebang
|
2019-10-02 11:05:02 +02:00
|
|
|
sed -i -e '1s/env p/p/' %{buildroot}%{_libdir}/bluez/test/{example-gatt-{client,server},test-mesh}
|
|
|
|
|
2022-10-04 05:40:14 +02:00
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
cp %{SOURCE9} %{buildroot}%{_defaultdocdir}/%{name}
|
2019-11-22 09:52:46 +01:00
|
|
|
%if %{with mesh}
|
2019-10-02 11:05:02 +02:00
|
|
|
# boo#1151518
|
2022-05-05 13:07:45 +02:00
|
|
|
mv %{buildroot}%{_datadir}/dbus-1/system.d/bluetooth-mesh.conf %{buildroot}%{_defaultdocdir}/%{name}
|
2019-10-02 11:05:02 +02:00
|
|
|
mv %{buildroot}%{_datadir}/dbus-1/system-services/org.bluez.mesh.service %{buildroot}%{_defaultdocdir}/%{name}
|
|
|
|
cat > %{buildroot}%{_defaultdocdir}/%{name}/README-mesh.SUSE << EOF
|
|
|
|
The bluetooth-mesh dbus system config has been disabled due to security
|
|
|
|
concerns. See https://bugzilla.opensuse.org/show_bug.cgi?id=1151518 for
|
|
|
|
details.
|
|
|
|
|
|
|
|
If you want to use this feature anyway, copy
|
|
|
|
bluetooth-mesh.conf to %{_sysconfdir}/dbus-1/systemd.d/ and
|
2022-05-05 13:07:45 +02:00
|
|
|
org.bluez.mesh.service to %{_sysconfdir}/dbus-1/system-services/,
|
2019-10-02 11:05:02 +02:00
|
|
|
then reboot.
|
|
|
|
EOF
|
|
|
|
touch -r %{SOURCE0} %{buildroot}%{_defaultdocdir}/%{name}/README-mesh.SUSE
|
2019-11-22 09:52:46 +01:00
|
|
|
%endif
|
2018-02-12 08:35:21 +01:00
|
|
|
|
2011-12-27 13:50:19 +01:00
|
|
|
%check
|
2013-08-15 09:18:33 +02:00
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2017-03-03 10:36:57 +01:00
|
|
|
##make %%{?_smp_mflags} check
|
2017-05-26 23:27:55 +02:00
|
|
|
# deliberately not running parallel, as the test suite has spurious failures otherwise
|
2020-09-10 08:23:18 +02:00
|
|
|
%make_build check V=0
|
2013-08-15 09:18:33 +02:00
|
|
|
%endif
|
2011-12-27 13:50:19 +01:00
|
|
|
|
2011-12-18 21:30:51 +01:00
|
|
|
%pre
|
2019-10-04 14:40:17 +02:00
|
|
|
%service_add_pre bluetooth.service bluetooth-mesh.service
|
2022-03-07 23:17:00 +01:00
|
|
|
# Avoid restoring outdated stuff in posttrans
|
|
|
|
for _f in %{?modprobe_d_files}; do
|
|
|
|
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
|
|
|
|
mv -f "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}.rpmsave.old" || :
|
|
|
|
done
|
2011-12-18 21:30:51 +01:00
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%post
|
2013-11-27 10:08:38 +01:00
|
|
|
%{?udev_rules_update:%udev_rules_update}
|
2013-01-21 11:30:56 +01:00
|
|
|
# todo: check if this is still obeyed / needed with systemd
|
2008-09-15 10:31:24 +02:00
|
|
|
%{fillup_only -n bluetooth}
|
2013-01-25 08:57:16 +01:00
|
|
|
# We need the bluez systemd service enabled at any time. It won't start up
|
2019-10-04 14:40:17 +02:00
|
|
|
# on its own, as it is triggered by udev in the end (bnc#796671)
|
2020-09-10 08:23:18 +02:00
|
|
|
%{_bindir}/systemctl enable bluetooth.service 2>&1 || :
|
|
|
|
%{_bindir}/systemctl daemon-reload >/dev/null 2>&1 || :
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%preun
|
2019-10-04 14:40:17 +02:00
|
|
|
%service_del_preun bluetooth.service bluetooth-mesh.service
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%postun
|
2019-10-04 14:40:17 +02:00
|
|
|
%service_del_postun bluetooth.service bluetooth-mesh.service
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2022-03-07 23:17:00 +01:00
|
|
|
%posttrans
|
|
|
|
# Migration of modprobe.conf files to _modprobedir
|
|
|
|
for _f in %{?modprobe_d_files}; do
|
|
|
|
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
|
|
|
|
mv -fv "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}" || :
|
|
|
|
done
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%post -n libbluetooth3 -p /sbin/ldconfig
|
|
|
|
%postun -n libbluetooth3 -p /sbin/ldconfig
|
|
|
|
|
2021-11-23 12:05:54 +01:00
|
|
|
%pre obexd
|
|
|
|
%systemd_user_pre obex.service
|
|
|
|
|
|
|
|
%post obexd
|
|
|
|
%systemd_user_post obex.service
|
|
|
|
|
|
|
|
%preun obexd
|
|
|
|
%systemd_user_preun obex.service
|
|
|
|
|
|
|
|
%postun obexd
|
|
|
|
%systemd_user_postun obex.service
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%files
|
2019-04-09 21:28:33 +02:00
|
|
|
%doc AUTHORS ChangeLog README dbus-apis src/main.conf
|
2019-11-22 09:52:46 +01:00
|
|
|
%if %{with mesh}
|
2019-10-02 11:05:02 +02:00
|
|
|
%doc %{_defaultdocdir}/%{name}/*
|
2019-11-22 09:52:46 +01:00
|
|
|
%endif
|
2018-06-11 09:26:20 +02:00
|
|
|
%license COPYING
|
2014-02-24 17:31:35 +01:00
|
|
|
%{_bindir}/bluemoon
|
2015-12-28 15:35:08 +01:00
|
|
|
%{_bindir}/btattach
|
2023-10-04 17:37:55 +02:00
|
|
|
%{_bindir}/btmgmt
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_bindir}/l2ping
|
2015-02-05 19:27:06 +01:00
|
|
|
%{_bindir}/hex2hcd
|
2022-08-17 22:39:29 +02:00
|
|
|
%{_bindir}/isotest
|
2014-08-21 15:09:49 +02:00
|
|
|
%{_bindir}/mpris-proxy
|
2017-07-09 12:31:17 +02:00
|
|
|
%dir %{_libdir}/bluetooth
|
|
|
|
%dir %{_libdir}/bluetooth/plugins
|
|
|
|
%{_libdir}/bluetooth/plugins/sixaxis.so
|
2017-03-01 21:50:58 +01:00
|
|
|
%dir %{_libexecdir}/bluetooth
|
|
|
|
%{_libexecdir}/bluetooth/bluetoothd
|
2019-11-22 09:52:46 +01:00
|
|
|
%if %{with mesh}
|
2019-09-20 22:37:21 +02:00
|
|
|
%{_libexecdir}/bluetooth/bluetooth-meshd
|
2021-06-25 20:09:12 +02:00
|
|
|
%{_bindir}/mesh-cfgtest
|
|
|
|
%{_mandir}/man8/bluetooth-meshd.8%{?ext_man}
|
2019-11-22 09:52:46 +01:00
|
|
|
%endif
|
2013-09-09 11:07:05 +02:00
|
|
|
%{_bindir}/bluetoothctl
|
|
|
|
%{_bindir}/btmon
|
2019-11-22 09:52:46 +01:00
|
|
|
%if %{with mesh}
|
2017-09-19 20:25:35 +02:00
|
|
|
%{_bindir}/meshctl
|
2020-03-21 10:00:30 +01:00
|
|
|
%{_bindir}/mesh-cfgclient
|
2019-06-30 14:53:42 +02:00
|
|
|
%endif
|
2019-11-07 12:23:27 +01:00
|
|
|
%{_prefix}/lib/udev/
|
2020-09-10 08:23:18 +02:00
|
|
|
%{_mandir}/man1/btattach.1%{?ext_man}
|
2021-06-25 20:09:12 +02:00
|
|
|
%{_mandir}/man1/btmon.1%{?ext_man}
|
2022-08-17 22:39:29 +02:00
|
|
|
%{_mandir}/man1/isotest.1%{?ext_man}
|
2020-09-10 08:23:18 +02:00
|
|
|
%{_mandir}/man8/bluetoothd.8%{?ext_man}
|
|
|
|
%{_mandir}/man1/hid2hci.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/l2ping.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/rctest.1%{?ext_man}
|
2023-09-04 09:51:48 +02:00
|
|
|
%{_mandir}/man1/bluetoothctl-mgmt.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bluetoothctl-monitor.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/btmgmt.1%{?ext_man}
|
2022-05-05 13:07:45 +02:00
|
|
|
%{_datadir}/dbus-1/system.d/bluetooth.conf
|
2019-10-02 11:05:02 +02:00
|
|
|
# not packaged, boo#1151518
|
2022-05-05 13:07:45 +02:00
|
|
|
###%%{_datadir}/dbus-1/system.d/bluetooth-mesh.conf
|
2013-01-25 08:57:16 +01:00
|
|
|
%dir %{_localstatedir}/lib/bluetooth
|
2022-03-07 23:17:00 +01:00
|
|
|
%dir %{_modprobedir}
|
|
|
|
%{_modprobedir}/50-bluetooth.conf
|
2011-12-18 21:30:51 +01:00
|
|
|
%{_unitdir}/bluetooth.service
|
2019-11-22 09:52:46 +01:00
|
|
|
%if %{with mesh}
|
2019-09-20 22:37:21 +02:00
|
|
|
%{_unitdir}/bluetooth-mesh.service
|
2019-11-22 09:52:46 +01:00
|
|
|
%endif
|
2012-07-11 08:36:38 +02:00
|
|
|
%{_datadir}/dbus-1/system-services/org.bluez.service
|
2019-10-02 11:05:02 +02:00
|
|
|
# not packaged, boo#1151518
|
|
|
|
###%%{_datadir}/dbus-1/system-services/org.bluez.mesh.service
|
2008-09-15 10:31:24 +02:00
|
|
|
|
2021-11-23 12:05:54 +01:00
|
|
|
%files obexd
|
|
|
|
%{_libexecdir}/bluetooth/obexd
|
|
|
|
%{_datadir}/dbus-1/services/org.bluez.obex.service
|
|
|
|
%{_userunitdir}/obex.service
|
|
|
|
|
2019-12-17 09:38:02 +01:00
|
|
|
%if %{with bluez_deprecated}
|
|
|
|
%files deprecated
|
|
|
|
%{_bindir}/gatttool
|
|
|
|
%{_bindir}/hcitool
|
|
|
|
%{_bindir}/rfcomm
|
|
|
|
%{_bindir}/sdptool
|
|
|
|
%{_bindir}/ciptool
|
|
|
|
%{_bindir}/hciattach
|
|
|
|
%{_bindir}/hciconfig
|
|
|
|
%{_bindir}/hcidump
|
2020-09-10 08:23:18 +02:00
|
|
|
%{_mandir}/man1/hcidump.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/hciattach.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/hciconfig.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/hcitool.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/sdptool.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/ciptool.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/rfcomm.1%{?ext_man}
|
2019-12-17 09:38:02 +01:00
|
|
|
%endif
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%files devel
|
2013-01-25 08:57:16 +01:00
|
|
|
%{_includedir}/bluetooth
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_libdir}/libbluetooth.so
|
|
|
|
%{_libdir}/pkgconfig/bluez.pc
|
|
|
|
|
|
|
|
%files -n libbluetooth3
|
|
|
|
%{_libdir}/libbluetooth.so.*
|
2018-06-11 09:26:20 +02:00
|
|
|
%doc AUTHORS ChangeLog README
|
|
|
|
%license COPYING
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%files cups
|
2022-02-27 17:52:31 +01:00
|
|
|
%dir %{_prefix}/lib/cups
|
|
|
|
%dir %{_prefix}/lib/cups/backend
|
|
|
|
%{_prefix}/lib/cups/backend/bluetooth
|
2008-09-15 10:31:24 +02:00
|
|
|
|
|
|
|
%files test
|
2019-06-30 14:53:42 +02:00
|
|
|
%{_bindir}/avinfo
|
2013-09-09 11:07:05 +02:00
|
|
|
#{_bindir}/hciemu
|
2008-09-15 10:31:24 +02:00
|
|
|
%{_bindir}/l2test
|
|
|
|
%{_bindir}/rctest
|
2019-02-02 10:10:23 +01:00
|
|
|
%{_bindir}/btgatt-client
|
2013-09-09 11:07:05 +02:00
|
|
|
%dir %{_libdir}/bluez
|
|
|
|
%{_libdir}/bluez/test
|
2008-11-17 16:42:21 +01:00
|
|
|
|
2017-06-08 13:26:04 +02:00
|
|
|
%files auto-enable-devices
|
|
|
|
%dir %{_sysconfdir}/bluetooth
|
|
|
|
%config(noreplace) %{_sysconfdir}/bluetooth/main.conf
|
|
|
|
|
2022-05-05 13:07:45 +02:00
|
|
|
%files zsh-completion
|
|
|
|
%{_datadir}/zsh/site-functions/_bluetoothctl
|
|
|
|
|
2008-09-15 10:31:24 +02:00
|
|
|
%changelog
|