From d22a0919ebfda5467cbcbc24ecb004826d4e7dc6 Mon Sep 17 00:00:00 2001 From: VictorR2007 Date: Fri, 27 Sep 2019 14:46:23 +0300 Subject: [PATCH] Updated to 5.51 --- ...d-without-systemd-in-the-user-sessio.patch | 34 ------------------- ...d-without-systemd-in-the-user-sessio.patch | 34 +++++++++++++++++++ bluez.spec | 14 ++++++-- 3 files changed, 45 insertions(+), 37 deletions(-) delete mode 100644 bluez-5.50-allow-using-obexd-without-systemd-in-the-user-sessio.patch create mode 100644 bluez-5.51-allow-using-obexd-without-systemd-in-the-user-sessio.patch diff --git a/bluez-5.50-allow-using-obexd-without-systemd-in-the-user-sessio.patch b/bluez-5.50-allow-using-obexd-without-systemd-in-the-user-sessio.patch deleted file mode 100644 index e52d12c..0000000 --- a/bluez-5.50-allow-using-obexd-without-systemd-in-the-user-sessio.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -urN bluez-5.50/Makefile.obexd bluez-5.50-patched/Makefile.obexd ---- bluez-5.50/Makefile.obexd 2018-06-01 11:37:35.000000000 +0300 -+++ bluez-5.50-patched/Makefile.obexd 2018-06-05 09:28:26.537699230 +0300 -@@ -1,12 +1,12 @@ - if SYSTEMD - systemduserunitdir = @SYSTEMD_USERUNITDIR@ - systemduserunit_DATA = obexd/src/obex.service -+endif - - dbussessionbusdir = @DBUS_SESSIONBUSDIR@ - dbussessionbus_DATA = obexd/src/org.bluez.obex.service --endif - --EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service -+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in - - if OBEX - -diff -urN bluez-5.50/obexd/src/org.bluez.obex.service bluez-5.50-patched/obexd/src/org.bluez.obex.service ---- bluez-5.50/obexd/src/org.bluez.obex.service 2012-12-24 21:46:55.000000000 +0400 -+++ bluez-5.50-patched/obexd/src/org.bluez.obex.service 1970-01-01 03:00:00.000000000 +0300 -@@ -1,4 +0,0 @@ --[D-BUS Service] --Name=org.bluez.obex --Exec=/bin/false --SystemdService=dbus-org.bluez.obex.service -diff -urN bluez-5.50/obexd/src/org.bluez.obex.service.in bluez-5.50-patched/obexd/src/org.bluez.obex.service.in ---- bluez-5.50/obexd/src/org.bluez.obex.service.in 1970-01-01 03:00:00.000000000 +0300 -+++ bluez-5.50-patched/obexd/src/org.bluez.obex.service.in 2018-06-05 09:30:29.454367592 +0300 -@@ -0,0 +1,4 @@ -+[D-BUS Service] -+Name=org.bluez.obex -+Exec=@libexecdir@/obexd -+SystemdService=dbus-org.bluez.obex.service diff --git a/bluez-5.51-allow-using-obexd-without-systemd-in-the-user-sessio.patch b/bluez-5.51-allow-using-obexd-without-systemd-in-the-user-sessio.patch new file mode 100644 index 0000000..c452bb3 --- /dev/null +++ b/bluez-5.51-allow-using-obexd-without-systemd-in-the-user-sessio.patch @@ -0,0 +1,34 @@ +diff -urN bluez-5.51/Makefile.obexd bluez-5.51-patched/Makefile.obexd +--- bluez-5.51/Makefile.obexd 2019-09-19 21:51:02.000000000 +0300 ++++ bluez-5.51-patched/Makefile.obexd 2019-09-27 13:42:04.437366618 +0300 +@@ -1,12 +1,12 @@ + if SYSTEMD + systemduserunitdir = $(SYSTEMD_USERUNITDIR) + systemduserunit_DATA = obexd/src/obex.service ++endif + + dbussessionbusdir = $(DBUS_SESSIONBUSDIR) + dbussessionbus_DATA = obexd/src/org.bluez.obex.service +-endif + +-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service ++EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in + + if OBEX + +diff -urN bluez-5.51/obexd/src/org.bluez.obex.service bluez-5.51-patched/obexd/src/org.bluez.obex.service +--- bluez-5.51/obexd/src/org.bluez.obex.service 2012-12-24 21:46:55.000000000 +0400 ++++ bluez-5.51-patched/obexd/src/org.bluez.obex.service 1970-01-01 03:00:00.000000000 +0300 +@@ -1,4 +0,0 @@ +-[D-BUS Service] +-Name=org.bluez.obex +-Exec=/bin/false +-SystemdService=dbus-org.bluez.obex.service +diff -urN bluez-5.51/obexd/src/org.bluez.obex.service.in bluez-5.51-patched/obexd/src/org.bluez.obex.service.in +--- bluez-5.51/obexd/src/org.bluez.obex.service.in 1970-01-01 03:00:00.000000000 +0300 ++++ bluez-5.51-patched/obexd/src/org.bluez.obex.service.in 2019-09-27 13:43:58.700696733 +0300 +@@ -0,0 +1,4 @@ ++[D-BUS Service] ++Name=org.bluez.obex ++Exec=@libexecdir@/obexd ++SystemdService=dbus-org.bluez.obex.service diff --git a/bluez.spec b/bluez.spec index 28b5058..796cf51 100644 --- a/bluez.spec +++ b/bluez.spec @@ -4,8 +4,8 @@ Summary: Official Linux Bluetooth protocol stack Name: bluez -Version: 5.50 -Release: 7 +Version: 5.51 +Release: 1 License: GPLv2+ Group: Communications Url: http://www.bluez.org/ @@ -21,7 +21,7 @@ Patch0: bluez-5.36-systemd-conditional.patch ## Ubuntu patches Patch1: 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch # Non-upstream -Patch2: bluez-5.50-allow-using-obexd-without-systemd-in-the-user-sessio.patch +Patch2: bluez-5.51-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: bison @@ -31,6 +31,7 @@ BuildRequires: elfutils-devel BuildRequires: readline-devel BuildRequires: sbc-devel BuildRequires: speexdsp-devel +BuildRequires: json-c-devel BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(expat) @@ -62,12 +63,14 @@ These are the official Bluetooth communication libraries for Linux. %{_bindir}/hcitool %{_bindir}/hex2hcd %{_bindir}/l2ping +%{_bindir}/meshctl %{_bindir}/mpris-proxy %{_bindir}/rfcomm %{_bindir}/sdptool %{_libexecdir}/bluetooth/bluetoothd %{_libexecdir}/bluetooth/obexd %{_unitdir}/bluetooth-logger.service +%{_unitdir}/bluetooth-mesh.service %{_unitdir}/bluetooth.service %{_unitdir}/dbus-org.bluez.service %{_userunitdir}/obex.service @@ -87,10 +90,13 @@ These are the official Bluetooth communication libraries for Linux. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf %config(noreplace) %{_sysconfdir}/bluetooth %{_datadir}/dbus-1/system-services/org.bluez.service +%{_datadir}/dbus-1/system-services/org.bluez.mesh.service %{_datadir}/dbus-1/services/org.bluez.obex.service +%{_datadir}/zsh/site-functions/_bluetoothctl %{_localstatedir}/lib/bluetooth %dir %{_libdir}/bluetooth %{_libdir}/bluetooth/btmon-logger +%{_libdir}/bluetooth/bluetooth-meshd %dir %{_libdir}/bluetooth/plugins %{_libdir}/bluetooth/plugins/sixaxis.so %{_udevrulesdir}/97-bluetooth.rules @@ -230,6 +236,8 @@ autoreconf -fi --enable-obex \ --enable-client \ --enable-systemd \ + --enable-mesh \ + --enable-btpclient \ --with-systemdsystemunitdir=%{_unitdir} \ --with-systemduserunitdir=%{_userunitdir} \ --with-udevdir=/lib/udev \