5.79
All checks were successful
Run CI/CD... / main (push) Successful in 18m40s

This commit is contained in:
Your Name 2025-02-28 15:24:09 +00:00
parent 0f643f74b4
commit 08350e97d0

View file

@ -4,6 +4,9 @@
%define with_mesh 1
%global _compress xz -0f
%global optflags %(echo %{optflags} | sed -e 's/-ffat-lto-objects//g' -e 's/-fvar-tracking-assignments//g' -e 's/-Wa,--compress-debug-sections//g')
Summary: Official Linux Bluetooth protocol stack
Name: bluez
Version: 5.79
@ -27,6 +30,7 @@ Patch1: 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
Patch2: 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
Patch3: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
Patch4: 0004-agent-Assert-possible-infinite-loop.patch
BuildRequires: xz
BuildRequires: bison
BuildRequires: flex
BuildRequires: cups-devel
@ -47,6 +51,8 @@ BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev) >= 186
BuildRequires: pkgconfig(json-c) >= 0.13
BuildRequires: llvm17
Obsoletes: bluez-alsa < 5.0
Obsoletes: bluez-gstreamer < 5.0
@ -187,8 +193,11 @@ Bluetooth MESH
%{_unitdir}/bluetooth-mesh.service
%{_bindir}/mesh-cfgclient
%{_bindir}/meshctl
%{_bindir}/mesh-cfgtest
%{_libdir}/bluetooth/bluetooth-meshd
%{_datadir}/dbus-1/system-services/org.bluez.mesh.service
%{_datadir}/dbus-1/system.d/bluetooth-mesh.conf
%endif
@ -256,8 +265,15 @@ Docs Bluethooth
%build
export CC=/opt/llvm17/bin/clang
export CXX=/opt/llvm17/bin/clang++
libtoolize -f -c
autoreconf -fi
#configure2_5x --help
#exit 1
%configure2_5x \
--with-systemdsystemunitdir=%{_unitdir} \
--with-systemduserunitdir=%{_userunitdir} \
@ -281,12 +297,23 @@ autoreconf -fi
--enable-health \
--enable-midi \
--enable-avrcp \
--enable-sap \
--enable-avrcp \
--enable-bap \
--enable-bass \
--enable-mcp \
--enable-ccp \
--enable-vcp \
--enable-micp \
--enable-csip \
--enable-asha \
--enable-network \
--enable-hid \
--enable-hog \
--enable-experimental \
--disable-deprecated \
--enable-deprecated \
--enable-testing \
--disable-btpclient \
%if %{with_mesh}
--enable-mesh \
%else
@ -313,7 +340,7 @@ cp test/test-* %{buildroot}%{_bindir}
cp test/simple-agent %{buildroot}%{_bindir}/simple-agent
rm %{buildroot}%{_sysconfdir}/udev/rules.d/*.rules
install -p -m644 tools/hid2hci.rules -D %{buildroot}/lib/udev/rules.d/97-hid2hci.rules
install -p -m644 tools/hid2hci.rules -D %{buildroot}%{_udevrulesdir}/97-hid2hci.rules
install -m644 %{SOURCE5} -D %{buildroot}%{_udevrulesdir}/97-bluetooth.rules
sed s,"/usr/bin/bluetoothd","%{_libexecdir}/bluetooth/bluetoothd",g -i %{buildroot}%{_udevrulesdir}/97-bluetooth.rules
sed s,"@libexecdir@","%{_libexecdir}/bluetooth",g -i %{buildroot}%{_datadir}/dbus-1/services/org.bluez.obex.service